Guys,
Im new to
Servlets JSP's etc.., having some issues with the stuff below.
I have a servlet (just a
test one for now) that in its post method just forwards the requester to google ,
response.sendRedirect("http://www.google.com");
return;
The JSP that calls this is has the following
<form method="POST" action="../servlet/servlets.UploadServlet"/>
The web.xml has the following code (I modified after reading some of the postings)
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE web-app (View Source for full doctype...)>
- <web-app>
<display-name>mcaiyzm2 Web Application</display-name>
<description>mcaiyzm2 web application for JRun</description>
- <servlet>
<servlet-name>UploadServlet</servlet-name>
<servlet-class>UploadServlet</servlet-class>
</servlet>
- <servlet-mapping>
<servlet-name>UploadServlet</servlet-name>
<url-pattern>/servlets</url-pattern>
</servlet-mapping>
</web-app>
The servlet is stored in the directory structure /web-inf/classes/servlets
When i click the button, in the url, it says "The file that you requested could not be found on this server. "
What have I done wrong?
All the help that u can give me will be appreciated.
Thanks in advance
Zein