I apologize if I was unable to putforth my point clearly.
1. <web-app>
2. <servlet>
3. <servlet-name>MyServlet</servlet-name>
4. <jsp-file>/Results.jsp</jsp-file>
5. </servlet>
6. <servlet-mapping>
7. <servlet-name>MyServlet</servlet-name>
8. <url-pattern>/go</url-pattern>
9. <servlet-mapping>
In the above case what if there is no servlet existing?
say there is only Results.jsp and I want to redirect to this jsp after hitting submit button on my HTML.
I will say action="Result.jsp" on my HTML, right?
But then what goes in web.xml?
or is it that instead of <servlet-class> I put in <jsp-file>?
or is it that I'm confusing between <jsp-file> and <jsp-config>?