manucomp
July 22nd, 2008, 12:20 PM
Hi
I have written code for uploading attachment. For that I have created one jsp and a servlet. I have used multipart/form-data as encoding type in the form tag on the jsp page. There is one hidden field and a text field on that page. On submitting that form the request goes to the servlet. I am trying to retrieve these fields in the servlet class using getParameter() method. But i am unable to do that. Even when i am setting any attribute in the request object using method setAttribute() and retrieving it using getAttribute() in the servlet, I am not able to do. Although the file which i am attaching, i am able to upload.
Can anyone help me...
Thanks
Manucomp
I have written code for uploading attachment. For that I have created one jsp and a servlet. I have used multipart/form-data as encoding type in the form tag on the jsp page. There is one hidden field and a text field on that page. On submitting that form the request goes to the servlet. I am trying to retrieve these fields in the servlet class using getParameter() method. But i am unable to do that. Even when i am setting any attribute in the request object using method setAttribute() and retrieving it using getAttribute() in the servlet, I am not able to do. Although the file which i am attaching, i am able to upload.
Can anyone help me...
Thanks
Manucomp