This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
i have created 2 jsp .one is login page it having separate actionform and action .After the user submit the page i have to diaplay the username in my second jsp.
How can i do that in struts .Can i get that formbean in my second jsp?Should i share the same formbean for both jsp(Struts.config.xml scop=session)
like this? is there amy other way to do this ?
Thanks in advance .
All search starts with beginner's luck and all search ends with victor's severly tested.
so in Action class you needed getters and setters for "fromDate". So automatically the action class takes the parameters from JSP.
Now to transfer to next page there are 2 ways
1) From there you can assign to some attributes and you can keep them in request or session.
2) Create a seprate action forms and assign this variables to new action form in Actionclass
Joined: Jul 23, 2009
Thanks David ,kartik
Actually i set that user-name in session and i get it in the next page.
Is there any other way to do that in struts 1?
if i set that bean as request/session in action scope attribute in struts-config will work?