Easy ;)
If you look in the estore_war.xml (the WAR descriptor) you'll see these
lines:
<servlet>
<description>no description</description>
<display-name>centralJsp</display-name>
<servlet-name>webTierEntryPoint</servlet-name>
<jsp-file>Main.jsp</jsp-file>
<load-on-startup>-1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>webTierEntryPoint</servlet-name>
<url-pattern>/control/*</url-pattern>
</servlet-mapping>
You'll then also notice that ALL urls contain the /control/ directory.
Basically they've mapped main.jsp to the virtua directory /control/, then
main.jsp takes anything after the control/ as the path to process.
Hope this helps.
Cheers,
Mike
__
| | Director - The BookmarkBox P/L
| | http://www.bookmarkbox.com <http://www.bookmarkbox.com/>
|/\| Manage and share your bookmarks online!
Do you enjoy our service? Why not tell your friends about us?
http://www.bookmarkbox.com/email.cfm
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Bomberry Bill
> Sent: Thursday, 16 December 1999 5:24
> To: [EMAIL PROTECTED]
> Subject: FW: FW: J2EE Application Programming Model and JSP
>
>
> Thank you for answering but the question specifically relates to the J2EE
> Application Programming Model and the JSP pages that they used. If you
> review the sample application you will understand the question.
>
>
> > -----Original Message-----
> > From: Seann McCulloch [SMTP:[EMAIL PROTECTED]]
> > Sent: Wednesday, December 15, 1999 10:49 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: FW: J2EE Application Programming Model and JSP
> >
> > Hi there
> >
> > On a JSP-enabled web server, a JSP page is dynamically compiled ( on
> > first
> > access only ) and executed ( every access ) when it is accessed at a
> > URL in
> > a
> > browser. So the home page of your website would just point to the
> > "Main.jsp" file.
> >
> > There some tutorials on JSP at
> > http://java.sun.com/products/jsp/docs.html
> >
> > Hope that helps.
> >
> > Regards
> > Seann
> >
> > BOC HK wrote:
> >
> > > Hi Bill,
> > >
> > > You are not alone, I'm experiencing the same
> > > problem, don't know where and how the Main.jsp is
> > > invoked. Anybody out there can help us?
> > >
> > > --Lan
> > > --- Bomberry Bill <[EMAIL PROTECTED]>
> > > wrote:
> > > > I am sending this one last time in the hopes that
> > > > someone new to the group
> > > > has reviewed the J2EE Application Programming Model.
> > > >
> > > > FYI - Chapter 6 of the APM for J2EE has
> > > > recommendations on the use of JSP
> > > > with Servlets.
> > > >
> > > > Regards,
> > > > Bill Bomberry
> > > >
> > > >
> > > > > -----Original Message-----
> > > > > From: Bill Bomberry [SMTP:[EMAIL PROTECTED]]
> > > > > Sent: Wednesday, December 08, 1999 11:09 AM
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: J2EE Application Programming Model
> > > > and JSP
> > > > >
> > > > > Good morning! I have been reviewing the J2EE
> > > > Application Programming
> > > > > Model. I have a quick question related to JSP's.
> > > > >
> > > > > The documentation for the J2EE APM as well as the
> > > > code indicate that the
> > > > > main.jsp is used to process all HTTP requests.
> > > > Main.jsp in turn invokes
> > > > > the processRequest(HttpServletRequest req) method
> > > > of the GUIController
> > > > > class.
> > > > >
> > > > > The only reference that I see to the main.jsp on
> > > > for instance the
> > > > > Shopping Cart Screen (cart.jsp) is that cart.jsp
> > > > includes banner.jsp
> > > > > which includes a home_banner.jsp. The
> > > > home_banner,jsp has a hypertext
> > > > > link associated with the logo image for the
> > > > application. I do not see
> > > > > how the main.jsp and hence
> > > > processRequest(HttpServletRequest req)
> > > > > method of the GUIController class is being invoked
> > > > for every HTTP
> > > > > request.
> > > > >
> > > > > If somebody has reviewed the J2EE APM and can
> > > > enlighten me it would be
> > > > > greatly appreciated! I have reviewed the J2EE
> > > > Application Programming
> > > > > Model Version 1.0 documentation as well as the
> > > > Java Server Specification
> > > > > version 1.1. If you know the answer and it is
> > > > embodied in one of these
> > > > > documents, please refer to the relevant page from
> > > > the document.
> > > > >
> > > > > thank you,
> > > > > Bill Bomberry
> > > > > Application Management Services
> > > > > Deere & Company
> > > > > Moline, Illinois 61265
> > > > >
> > > > >
> > > >
> > >
> >
> ==========================================================================
> > > > > =
> > > > > To unsubscribe: mailto [EMAIL PROTECTED] with
> > > > body: "signoff
> > > > > JSP-INTEREST".
> > > > > FAQs on JSP can be found at:
> > > > > http://java.sun.com/products/jsp/faq.html
> > > > > http://www.esperanto.org.nz/jsp/jspfaq.html
> > > >
> > > >
> > >
> >
> ==========================================================================
> > =
> > > > To unsubscribe: mailto [EMAIL PROTECTED] with
> > > > body: "signoff JSP-INTEREST".
> > > > FAQs on JSP can be found at:
> > > > http://java.sun.com/products/jsp/faq.html
> > > > http://www.esperanto.org.nz/jsp/jspfaq.html
> > > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Thousands of Stores. Millions of Products. All in one place.
> > > Yahoo! Shopping: http://shopping.yahoo.com
> > >
> > >
> >
> ==========================================================================
> > =
> > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > > JSP-INTEREST".
> > > FAQs on JSP can be found at:
> > > http://java.sun.com/products/jsp/faq.html
> > > http://www.esperanto.org.nz/jsp/jspfaq.html <<Card for Seann
> > McCulloch>>
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html