Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

problem with accessing form values with jsp

843838Jan 11 2006 — edited Jan 11 2006
hi guys

This is the code i am using in my jsp page to upload a file
<form  enctype="multipart/form-data"  method ="post" action ="process.jsp" name="uploadform">
 <input type=file size=20 name="fname">
  <textarea rows="2" name="comment" cols="20"> </textarea>
<input type="button" value= "submit"  name="upload" >
</form>
but when i try to get fname and comment value from request.getParameter() in process.jsp
it gives null could you please help me where i am wrong

my second question , is there any way to use value of str variable in
var str = document.forms[0].elements[0].value ;
uploadform.action="upload.jsp?fname=document.write(str)" ;
uploadform.method="POST" ;
 uploadform.submit() ;
in above code i want to pass value of str variable
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 8 2006
Added on Jan 11 2006
3 comments
218 views