Put the object in  session in your first servlet.

session.putValue("name",object);

U can retrieve the session object in your second servlet

session.getValue("name");

Kavitha



>From: Tim Stoop <[EMAIL PROTECTED]>
>Reply-To: "A mailing list for discussion about Sun Microsystem's Java
>        Servlet API Technology." <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: [Object Orientated] Passing an Object along to the next page
>Date: Sat, 7 Oct 2000 19:08:09 +0200
>
>Hi people,
>
>For an administration Servlet-package, I need to transfer a complete Object
>to the next page, after the admin made some changes to the Object using his
>browser.
>
>More complete: I have an Object (for instance, a user-profile) that, when
>instanciated, reads some records from some database and creates an Object
>from those parameters. I display that data in a admin-friendly form and let
>the admin make changes to it. But how can I pass these changes to the
>instanciated Object and into the next Servlet? Is it at all possible??
>
>Can someone please send me some sample code??
>
>Kind regards,
>Met vriendelijke groet,
>Tim Stoop
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at
http://profiles.msn.com.

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to