Re: Dynamic Message

2009-11-17 Thread vikrant S
Thanks buddy It is working -- View this message in context: http://old.nabble.com/Dynamic-Message-tp26373865p26388558.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr

Re: Dynamic Message

2009-11-17 Thread carl ballantyne
I think you want to try something like addActionMessage("Yay it worked") in the action. And then in the jsp use to display it. Quoting vikrant S : Hi All, I am using struts2 for my application. However I am stuck at a place. Guys Please Help me out. I have three buttons in my jsp page

Re: Dynamic Message

2009-11-17 Thread vikrant S
Hi All, I am using struts2 for my application. However I am stuck at a place. Guys Please Help me out. I have three buttons in my jsp page and I have defined separate action for each button and using my struts.xml I have mapped these actions to respective methods. Now my question is that when

Re: Dynamic Message

2009-11-16 Thread vikrant S
I already have defined three different actions for each button. The thing which I want is that when I click any of this button and the action class returns a success then there should be a dynamic message on the same page where the buttons are , that the action has been successfull. How can I do

Re: Dynamic Message

2009-11-16 Thread ben_979
Put each button in it's own form, and assign a hidden variable in each form with a different value for each button/form. In your action class, check the value of the parameter, set a generic message string based on the parameter value, then redisplay the page with the forms on it. -- View this m