- 
        1. Re: JSP Servlet errorjules_gosnell Jan 31, 2002 6:19 PM (in response to a_stannard)Post with more detail to jetty-discuss@yahoogroups.com. 
 It sounds to me like you have some security declared which is protecting the url you are trying to access.
 Tell them the url the submit posts to and the contents of yor web.xml,
 Jules
- 
        2. Re: JSP Servlet errora_stannard Feb 1, 2002 9:04 AM (in response to a_stannard)More info: 
 web.xml:
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <web-app>
 <display-name>Andy's Demo</display-name>
 <session-timeout>30</session-timeout>
 <servlet-name>ShoppingServlet</servlet-name>
 <servlet-class>servlets.ShoppingServlet</servlet-class>
 <load-on-startup>1</load-on-startup>
 <init-param>
 <param-name>name</param-name>
 <param-value>value</param-value>
 </init-param>
 </web-app>
 actual address of servlet
 C:\TempDemo\build\web\web-inf\classes\servlets\ShoppingServlet
 url address
 http://localhost:8080/servlets/web-inf/classes/servlets/ShoppingServlet
 actual address of jsp
 C:\TempDemo\build\web\EShop.jsp
 url address
 http://localhost:8080/servlets/EShop.jsp
 jsp servlet link address "web-inf/classes/servlets/ShoppingServlet"
 Andy
- 
        3. Re: JSP Servlet errortbfmicke Feb 1, 2002 2:18 PM (in response to a_stannard)You need to have a servlet mapping to find the 
 servlet via an URL, the package name is NOT used
 to find it.
 I.e.
 Add:
 <servlet-mapping>
 <servlet-name>ShoppingServlet</servlet-name>
 <url-pattern>/ShoppingServlet</url-pattern>
 </servlet-mapping>
 To the web.xml, after the declaration.
 Then change the URL in the JSP page to
 "/servlets/ShoppingServlet"
 (since it seems you use a web-app name of "servlets"
 which is a bit strange")
 or just
 ShoppingServlet
 should work too, if the jsp is in the "root" of
 the webapp.
 Regards
- 
        4. Re: JSP Servlet errora_stannard Feb 6, 2002 4:25 AM (in response to a_stannard)Excellent, thanks for everyones help! 
 Andy
 
     
    