• 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

jsp-servlet-jsp

 
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
could some help me? i'm making a program that access the database.
the first page(jsp) get all the user inputs. all the inputs will be pass to the second page(serlvets) that do all the processing. after it finish the all the transaction, the output will be passed to the third page which is another jsp.
i'm having problem on the second and third page. how would i pass the result in servlets to be displayed in the jsp(third page).
thanks.

raymond
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Encapsulate a bean with the result into request or session in the servlet, and then the jsp retrieves the result from the bean through the forwarded request or session.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
On ur first page save aal the inputs in a bean .On second page retreive from bean process it.Save all tha data in the bean again
while leaving from second page.
In ur third form again retreive from bean.
U can use sessions also.bean scope should be session scope
thanx
 
reply
    Bookmark Topic Watch Topic
  • New Topic