• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

setting values for table cells in javascript

 
Ranch Hand
Posts: 336
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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???

 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
submit forms?

Eric
 
Pradeep Adibatla
Ranch Hand
Posts: 336
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am not clear, Eric.kindly elaborate...

should I pass those values to jsp 3 an how?

I didn't really understand submit forms!
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is basic web coding. You submit a form to the 2nd page. You read the response and either store the values in session or in hidden fields on the second page. On the second page to the third page. On the third page you read the new values in the form and you do what you need to do.

I am not sure how to explain forms to you, there are plenty of example out there on the net. Moving this to the JSP section.

Eric
 
Pradeep Adibatla
Ranch Hand
Posts: 336
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Eric,actually my application is in struts2 and yes,I have a form for all the 3 jsp's and move from one to the other on submit...

you mean to say when I move from jsp 1 --> jsp 2 ,onSubmit ,put a hidden field to store it .

Ok I did. But to to bring them into javascript?? I have no clue with this... Kindly clarify...

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic