Hello everyone,

  I followed all the steps in lab 4001, part 2.4, but when I run
MyFirstWebApp, it displays :

Servlet MyOwnServlet at /MyFirstWebApp

not MyOwnJSP.jsp content.

My web.xml looks like:

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";>
    <servlet>
        <servlet-name>MyOwnServlet</servlet-name>
        <servlet-class>myownpackage.MyOwnServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>MyOwnServlet</servlet-name>
        <url-pattern>/MyOwnServlet</url-pattern>
    </servlet-mapping>
    <session-config>
        <session-timeout>
            30
        </session-timeout>
    </session-config>
    <welcome-file-list>
        <welcome-file>MyOwnJSP.jsp</welcome-file>
    </welcome-file-list>
</web-app>


and the Properties/Run in MyFirstApp project points to relative url:
/MyOwnServlet


I use NetBeans IDE 6.8 on WIndows 7 Professional.

Best regards,
--
Adrian Militaru

-- 
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en

Reply via email to