Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JavaBean , Servlet and JSP

Status
Not open for further replies.

rmarkert

IS-IT--Management
May 2, 2001
11
BR
Hi,

I was thinking about.... Is it possible I retrieve a JavaBean information from JSP and send it to a Servlet?

Thanks...

Renata
 
Sure, why not? Here is one possible procedure.
In JSP:
Code:
- Create your JavaBean
- Do whatever
- Add JavaBean as an attribute of the HttpServletRequest object
- Forward control to the Servlet
In Servlet:
Code:
- Get JavaBean from the HttpServletRequest object
- Do whatever
BTW, most of the time you should be doing this in the other order... from Servlet to JSP.
 
It works!
Thank you very much!
Renata
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top