You can't read the file upload parameter using request.getParameter(). You
will need to use a file upload library class such as Jason Hunter's found
on servlets.com. to read uploaded files. Having a file upload parameter in
your form is causing the problems with reading the other parameters too.
Guys,
Check the following code.
Collecting Three Parameters
Collecting Three Parameters
First Parameter:
Second Parameter:
Third Parameter:
The servlet code is
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class trial extends HttpServlet {
pu
---file1.jsp---
---file2.jsp---
<%= request.getParameter("description")%>
When I pass parameter from file1.jsp to file2.jsp and it's value is
"C/C++" in file2.jsp I got only "C/C". The plus signs are missing.
Even worse is when I put "&;" characters in value. I get
IllegalArgument