• 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

transferring values

 
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 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...
 
Ranch Hand
Posts: 300
Eclipse IDE Oracle Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 336
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 336
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is it still difficuilt to interpret? kindly tell me if any clarifications need to be done but I am desperate for some drive!
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
reply
    Bookmark Topic Watch Topic
  • New Topic