I have a class to upload files from my HTML page to a servlet. The problem is that on the HTML form, if i put an input text box along side the file input box, the servlet always returns null when i try to get the string parameter from the text input.
so i have a text input called empname on my file upload page and when i say String s=request.getParameter("empname"); it returns null. But when i remove the file input, it works. How can i resolve this? Cos i need both of them on the same page.
"Human beings can alter their lives by altering their state of mind" William James
nila, JavaRanch is a community of people from all over the world, many of who are not native English speakers. While using abbreviations like "u" instead of spelling out "you" is convenient when text messaging your friends on a cell phone or in a chat room, it presents an extra challenge to those that are already struggling with English. Additionally, such shortcuts may confound automated translation tools that patrons of the Ranch may be making use of.
I would like to ask for your help in making the content of JavaRanch a little easier to read for everybody that visits here by not using such abbreviations.