Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

setting values in jsp+struts2

 
Pradeep Adibatla
Ranch Hand
Posts: 336
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
Pradeep Adibatla
Ranch Hand
Posts: 336
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 336
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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??
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic