multipart/form-data used with characters for access jsp

jens159753

New Member
Can Any Buddy Tell me that how to use characters of data with multipart/form-data in from attribute . i knows that multipart/form-data is used when forms that have a file upload control but i won't to use both characters and file upload control . when i use multipar i can't able to transfer my characters .
HOW I USE BOTH ???
In the Html page -\[code\]<form enctype="multipart/form-data" method=post action='upload.jsp'><select name="year"><option>Year 1</option><option>Year 2</option></select>Browes Your .xml File<input type='file' name='fname' accept='text/xml'><input type='submit' value='http://stackoverflow.com/questions/15600653/Upload'/>\[/code\]jsp page -\[code\]<%@page import="com.oreilly.servlet.MultipartRequest" %><% MultipartRequest mpr=new MultipartRequest(request,"C://upload"); request.getParameter("year"); // Return Null Here%>\[/code\]how i get the parameter value of year here ??
 
Back
Top