Thank you so much for your suggestions and time, I got the solution. It worked for me by just deleting relative url under display browser on run - for run property of webapplication.
May be any1 else can use this solution if having same problem ! On Mon, Aug 31, 2009 at 11:39 AM, Schipper, Sid <sid.schip...@ga.com> wrote: > Recently I posted the following, it may or may not help you. > > > > In exercise II of the basic servlets HW if you have done Exercise I, > > and you are using the NetBeans IDE, then you > modified the Properties page of the Project to use a new Relative URL > that points to MyOwnServlet. So, when you modify the web.xml in > Exercise II to use MyOwnJSP.jsp as the welcome file, it will not work, > it will still display MyOwnServlet instead. It seems like to do > Exercise II correctly, you have to go back and undo what you did for > Exercise I. Did anyone else notice this? > > > > > > *From:* java-ee-j2ee-programming-with-passion@googlegroups.com [mailto: > java-ee-j2ee-programming-with-pass...@googlegroups.com] *On Behalf Of *Dhwani > Patel > *Sent:* Sunday, August 30, 2009 4:32 PM > *To:* java-ee-j2ee-programming-with-passion@googlegroups.com > *Subject:* [java ee programming] J2ee Webapplication default page > > > > 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/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> > <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 > > > > -- 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 -~----------~----~----~----~------~----~------~--~---