hi mallik,
you can save some messages in action so that they can be accessed from jsp
ActionMessages errorMsgs = new ActionMessages();
errorMsgs.add("messageId", new
ActionMessage("message.Inserted_successfully"));
saveErrors(request, errorMsgs);

in jsp,
<html:messages id="messageFromAction" property="messageId" />
<bean:write name="messageFromAction"/>

----- Original Message ----- 
From: "Mallik" <[EMAIL PROTECTED]>
To: <user@struts.apache.org>
Sent: Thursday, October 26, 2006 1:17 PM
Subject: ActionMessages in Struts?


>
> HI friends
> i want to send some message from action class to view. that is like
> "Inserted successfully", after inserting data to database.
> how can i do this?
> help me please.......
>
> ur's
> Mallik
>
> -- 
> View this message in context:
http://www.nabble.com/ActionMessages-in-Struts--tf2512442.html#a7006628
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to