This has been cover on the JSP list you may want to check that archive,
the link has been provided

http://archives.java.sun.com/archives/jsp-interest.html



----- Original Message -----
From: Malla c <[EMAIL PROTECTED]>
Date: Wednesday, February 21, 2001 3:50 pm
Subject: Passing jsp session variables to Servlets.

> Hi,
>
>
> I am working upload and download application. I have jsp file  it
> gets the
> file name and content type.  I am want to pass this values to servlet.
>
>
> So I can I pass session jsp session variables to servlet.  Please
> give me
> some idia.
>
> Please help me some idia.. I will thankful to u.
>
> Thanks,
> Malla Reddy
>
>
> Here is the jsp code..
>
>
>
> <%
> if (rs.next()){
>
>                // Initialization
>                mySmartUpload.initialize(pageContext);
>
>                name = rs.getString("FILENAME");
>                contType = rs.getString("CONTENT_TYPE");
>
>
>                // Download field
>
> //mySmartUpload.downloadField(rs,"ATTACH_BLOB",contType, name);
>
>                // Field To File
>                mySmartUpload.fieldToFile(rs,"ATTACH_BLOB",
> "/demo/download/" + name);
>
>
>        }
>
>        rs.close();
>        stmt.close();
>        con.close();
>
> session.putValue("name",name);
> session.putValue("contType",contType);
> // Here I want to call servlet and I have to pass this session
> data to
> servlet.
>
>
> %>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
>
________________________________________________________________________
___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in
> the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http:
> Resources: http://java.sun.com/products/servlet/external-
> resources.htmlLISTSERV Help:
> http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
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