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: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets