Hi Mark, You could probably do this:
<servlet> <servlet-name>MyOwnServlet</servlet-name> <servlet-class>myownpackage.MyOwnServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>MyOwnServlet</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping> So a declared welcome.do file would be redirected to the servlet. welcome.do would be the point of entry that you declare in the web.xml Cheers Kris On Fri, Feb 6, 2009 at 1:18 PM, Mark Shen <markshen2...@gmail.com> wrote: > Hi, > > hello2 project have two servlets(GreetingServlet.java and > ResponseServlet.java). > > I wonder how the application know which servlet first show when we run the > application. > > I check web.xml but I do not see any settings for this.Please help. > > > Mark > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---