You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by someOne <th...@yahoo.com> on 2003/04/30 12:37:46 UTC

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.

Re: getAttribute

Posted by Micael <ca...@harbornet.com>.
You don't have a value for the PID name/value pair.

At 03:37 AM 4/30/03 -0700, you wrote:
>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.



LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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