I am getting message Thanks for registering: but not the value of the firstname. In old versions of struts it would be setting a Request attribute and getting value from it on the JSP page. I am not sure how it is done in STRUTS2
Please put your code inside code tags so it's legible.
Actions are instantiated per-request. If you don't save the user's name anywhere or pass it on to the next action there's no way for the next action to have that value. Not knowing how you've configured your result makes it harder to help.
shah rah
Ranch Hand
Joined: Jan 04, 2007
Posts: 124
posted
0
How to pass the firstname entered on the form to my success page.
In struts 2 examples. I haven't seen anyone using request.getParameter("firstname") to get form values or use request.setAttribute("fname",firstname) to pass values to another page.
can some one direct me on how to get form field values from my jsp page in STRUTS2?