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
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
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
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
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
5 matches
Mail list logo