aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes setting values for table cells in javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "setting values for table cells in javascript" Watch "setting values for table cells in javascript" New topic
Author

setting values for table cells in javascript

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???

Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
submit forms?

Eric
Pradeep Adibatla
Ranch Hand

Joined: Oct 27, 2009
Posts: 336
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
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
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

Joined: Oct 27, 2009
Posts: 336
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.
 
subject: setting values for table cells in javascript