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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Viewing Bean properties from JSP

Status
Not open for further replies.

jdaniels

Technical User
Apr 23, 2002
63
GB
Hi,

I have a problem whereby a servlet creates a bean, populates one of it's property variables with some data and then redirects the user to a JSP page. From there I use the bean (using <jsp:useBean ...> but when I try and get the property set in the servlet, it returns null whereas it should return the value set in the servlet ... shouldn't it?

The JSP page uses the bean at session level.

Regards,

Jonathan Daniels
 
Solved ... I didn't realise you had to add the bean to the session and access it via the session.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top