tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From graghupa...@aegonuk.co.uk
Subject RE: getAttribute
Date Wed, 30 Apr 2003 10:49:12 GMT
you should use the multipart class :)

-----Original Message-----
From: someOne [mailto:there_over@yahoo.com]
Sent: 30 April 2003 11:38
To: tomcat-user@jakarta.apache.org
Subject: getAttribute


Hi All,I'm using taglib ver. 1.6 for 'file uploading' and I have these lines
in my code:  <form method="post" enctype="multipart/form-data"
action="upload.jsp">
<p>Paper ID : <input type="text" name="PID"><p>
<p><INPUT TYPE="FILE" NAME="fileName1"></p>
<p><input type="submit" value="Upload"></p>
</FORM>  and in upload.jsp i have : Object
paperID=request.getAttribute("PID");
 System.out.println("paper id: "+paperID); But, it doesn't transfer the
value of text box (PID) properly and always prints NULL in output. and
request.getAttribute doesn't work :(Can anybody halp,please?Thnx 

---------------------------------
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message