do a redirection

 <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
</welcome-file-list>

and write this code in the index.jsp

  <jsp:forward page="MyOwnJSP2.jsp"/>

may be help :D

On 31 Agu, 16:03, "alex....@googlemail.com" <alex....@googlemail.com>
wrote:
> Hi,
>
> Do you use an IDE for project development? I'd suggest to verify
> project properties, in Netbeans path to you servlet can be in section
> Run, there you can find field with relative URL which should be used
> to start app.
>
> WBR,
> Alex
>
> On Aug 31, 1:32 am, Dhwani Patel <swami.learningj...@gmail.com> wrote:
>
> > Hello all,
>
> > I need your help to figure out the problem for my first basic Web
> > application.
>
> > My web.xml file contains,
>
> > <?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/javaeehttp://java.sun.com/xml/ns/javaee/we...";>
>
> >    <servlet>
> >         <servlet-name>MyOwnServlet</servlet-name>
> >         <servlet-class>myownpackage.MyOwnServlet</servlet-class>
>
> >         </servlet>
> >     <servlet>
> >         <servlet-name>MyOwnServlet2</servlet-name>
> >         <servlet-class>MyOwnServlet2</servlet-class>
> >     </servlet>
> >     <servlet-mapping>
> >         <servlet-name>MyOwnServlet</servlet-name>
> >         <url-pattern>/MyOwnServlet</url-pattern>
> >     </servlet-mapping>
> >     <servlet-mapping>
> >         <servlet-name>MyOwnServlet2</servlet-name>
> >         <url-pattern>/MyOwnServlet2</url-pattern>
> >     </servlet-mapping>
> >     <session-config>
> >         <session-timeout>
> >             30
> >         </session-timeout>
> >     </session-config>
> >      <welcome-file-list>
> >         <welcome-file>MyOwnJSP2.jsp</welcome-file>
> >         </welcome-file-list>
>
> >     </web-app>
> > Evenif i am setting MyOwnJSP2.jsp as welcome file when i run my project it
> > leads me to MyOwnservlet instead of jsp page.
>
> > Can any1 tell me what could be the solution for this ? and why its happening
> > ?
>
> > I appreciate your time and response,
> > Thanks,
>
> > --
> > Dhwani Patel

--~--~---------~--~----~------------~-------~--~----~
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