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