You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "m.harig" <m....@gmail.com> on 2009/01/20 08:48:20 UTC

display a message

hello this is my code

<!-- UserAction.java -->

if (!isCancelled(request)) {
			//business logic 
			ActionMessages errorMsgs = new ActionMessages();
			errorMsgs.add("messageId", new ActionMessage("User","message.insert"));
			//saveErrors(request, errorMsgs);
			saveMessages(request, errorMsgs);

		}

struts-config.xml
<!-- Goto new-user page -->
		<action path="/createUser"
			type="org.apache.struts.actions.ForwardAction"
			parameter="/pages/admin/new_user.jsp" />

<!-- insert a new-user  -->
		<action path="/newUser" type="org.npedia.action.UserAction"
			name="UserForm" parameter="method" scope="request" validate="true"
			input="/pages/admin/new_user.jsp">
			<forward name="gotoCreateUserSuccess"
				path="/createUser" redirect="true" />
		</action>




<!-- jsp page -->

		<td valign="top" align="center" class="statusmsg"><html:form
action="/newUser" focus="username" method="get">
		<logic:messagesPresent message="true">
			<html:messages id="messageFromAction" property="messageId" />
				<bean:write name="messageFromAction"/> 
		</logic:messagesPresent>



am not getting my messages to display. where am i wrong . please anyone help
me out of this. please
-- 
View this message in context: http://www.nabble.com/display-a-message-tp21558466p21558466.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org