File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes transferring values 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 "transferring values" Watch "transferring values" New topic

transferring values

Pradeep Adibatla
Ranch Hand

Joined: Oct 27, 2009
Posts: 336

I have 2 jsp's...

JSP1 contains a table with 6 columns and button like this...

RName RAuthor RStartDate REndDate Condition Action
Row1: name1 auth1 xxx yyy
name2 auth2 xx yy
name3 auth3 x y
. ...........
.. .............

GOTOJSP2 (button)


In the above jsp1 it is observed that the last wo values of each row is empty and they are calculated and obtained from jsp2 .
The user selects any 1 of the rows and clicks on "GOTOJSP2" to proceed to next jsp....

suppose if the user selected row 1,he needs to obtain the condition and action for row 1 from jsp2

Jsp2 has a table ,an expression builder and a button "AddtoRow" like this.......

(1) RSName Condition Action
Name1 a+b*c=20 d=21

(2) Expression builder(to forn above expressions which is done by using Javascript and the above values are calculated in this expression bulder ,stored in
javascript variables and set to the cells of the row dynamically

(3) AddToRow (button)


Now on click of AddToROw button,the control should goto jsp1 and set the 2 values(condition and action seen above) to the emty cells(condition,action) of row1 of jsp1...

What are the ways to tranfer and set these values??? how should I pass the javascript values and set them in the previous jsp... kindly elaborate how to achieve this...
carina caoor
Ranch Hand

Joined: Jun 23, 2007
Posts: 300

Why do you want the jsp2 to build an expression and calculate the row value... Just call a function in jsp1 itself when the button is clicked.
Pradeep Adibatla
Ranch Hand

Joined: Oct 27, 2009
Posts: 336
Each row in jsp1 can have "1-n" (1000 say) conditions and actions...

so user needs to create all those in jsp2 and should be able to view them(in jsp2 table...he can also delete,change them before setting them in jsp1 (they are set as {if A and B and C and D so on in row of jsp1,where A,B,C,D are conditions created in jsp2}).

My basic question,how to transfer values(JS) ?? kindly provide inputs...
Pradeep Adibatla
Ranch Hand

Joined: Oct 27, 2009
Posts: 336
Is it still difficuilt to interpret? kindly tell me if any clarifications need to be done but I am desperate for some drive!
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63838

Sorry, but I can't make heads or tails out of what you are trying to accomplish. Maybe you can step back and describe it at a higher level -- it sounds like you've created something rather over-complicated.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: transferring values
It's not a secret anymore!