aspose file tools*
The moose likes Struts and the fly likes setting values in jsp+struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "setting values in jsp+struts2" Watch "setting values in jsp+struts2" New topic
Author

setting values in jsp+struts2

Pradeep Adibatla
Ranch Hand

Joined: Oct 27, 2009
Posts: 336
I have 3 jsp's.

first 2 jsp's have a table and a few rows!

The user proceeds to jsp2 by selecting a row jsp1 and clickin on button 'goto2' and subsequently to jsp3 by selecting a row in jsp2 and clicking on button 'goto3'.

In jsp3 the table should contain the row values such that the first cell value is the first cell value of row selected in jsp1 and 2nd cell value is the first cell value of row selected in jsp2.

So how to bring these values to jsp-3???
Lorand Komaromi
Ranch Hand

Joined: Oct 08, 2009
Posts: 276
Pradeep Adibatla wrote:
So how to bring these values to jsp-3???


Session, or hidden form field, if you're submitting forms when the goto buttons are clicked, or a GET parameter if they're simple links..


OCJP 6 (93%)
Pradeep Adibatla
Ranch Hand

Joined: Oct 27, 2009
Posts: 336
Hi.. think it is the case.Actually i need to put the two valuess from jsp1,2 in 3 when i move from jsp2--> jsp3 on click of "goto3".That means i should save value in jsp1 and jsp2

but i don't know how to put the ones you showed up! can you put a sample here... or some relavant example would be great !!! thank you
Pradeep Adibatla
Ranch Hand

Joined: Oct 27, 2009
Posts: 336
I know I can achieve it like this http://www.easywayserver.com/jsp/JSP-session.htm

but the value that should be passed is in an iterator like this...



now how will I pass this value to jsp2??
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: setting values in jsp+struts2