• 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
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

How can i pass the objects between two jsps

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How can i pass the objects between two jsps

My situtation:

I've two jsp's, One will display the total report from form and also having edit button for every row

Say for each person details one edit button (Id,FirstName,Add,Phone no, EDIT button)

If Click edit button, I dont wanna to go action class(im using struts)
I want the details to be displayed in second jsp, afterwords i can edit and i'll hit the database

Here i wanna to reduce database hitS,

hOW should I, please help me

Thankx in advance
 
Ranch Hand
Posts: 3852
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can pass it within request attributes.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by rathi ji:
You can pass it within request attributes.



Request attributes would probably not help the original poster in this case.
Once the inital page is drawn its request object is gone.
When the user clicks on on of the edit buttons a new request will be generated.
 
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When clicking the edit button, call the javascript function where you can pass the each values to next jsp page.

This will be suitable when no of passing values is less.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by vidya sagar:
When clicking the edit button, call the javascript function where you can pass the each values to next jsp page.
This will be suitable when no of passing values is less.



I'm at a total loss as to what this post means.
How is he to pass form values from one JSP to another with javascript?
 
Venkateswarlu Vadde
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi vidya s

Please explain how can you pass one person details(on clicking edit button) through java script, please provide some code or othewise

my email []

In which scope you are setting the values

Thankx
[ August 31, 2006: Message edited by: Ben Souther ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Venkateswarlu,
Please see:
http://faq.javaranch.com/view?UseTheForumNotEmail
to see why we prefer that technical conversations stay in the forums.

Thanks,
-Ben
 
Happily living in the valley of the dried frogs with a few tiny ads.
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic