Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: passing Objects from JSP to Servlets


Message #1 by "Wali Akthar" <wakthar@p...> on Fri, 15 Jun 2001 17:17:40
Hi,

Im instantiating a class using the tag
<jsp:useBean id="myClass" scope="session" class="theClass" />

Now in my jsp I'm going to set some properties of my object that Ive just 
created, but how can I pass this object onto a servlet that I forward 
(using RequestDispatcher) from this JSP to.

I know you can use the request.setAttribute("class", myClass)
but is there any other way ???

Cheers

  Return to Index