Hi,

The requestmapping.xml file is not a part of any J2EE specification but it
is part of pet store architecture developed and published by SUN. We have
developed our architecture based on Pet Store 1.12.   The
requestmappings.xml has the option to define the default screen and
programmatically  navigation to this screen is controlled using
ScreenFlowManager and ScreenFlowXmlDAO classes.

Regards,
Milind






                    Manoj Kumar
                    <[EMAIL PROTECTED]        To:     [EMAIL PROTECTED]
                    OM>                      cc:
                    Sent by: A               Subject:     Who Intercepts the Request?
                    mailing list for
                    Enterprise
                    JavaBeans
                    development
                    <EJB-INTEREST@JAV
                    A.SUN.COM>


                    01/12/2003 03:37
                    PM
                    Please respond to
                    m.kumar






Hi,
   I was going through the design of Pet Store Application, Blue Print
Application. In documents it says that the application uses Front
Controller Design pattern and all the requests are intercepted by
MainServlet. Mappings defined in the web.xml are like this

  <servlet>
    <servlet-name>webTierEntryPoint</servlet-name>
    <display-name>HTML Client Front Controller Servlet</display-name>
    <description>no description</description>

<servlet-class>com.sun.j2ee.blueprints.waf.controller.web.MainServlet</servlet-class>


  </servlet>

  <servlet-mapping>
    <servlet-name>webTierEntryPoint</servlet-name>
    <url-pattern>*.do</url-pattern>
  </servlet-mapping>

As per my understanding all the requests ending with .do will be
intercepted by the MainServlet and it will further dispatches the
request to other components depending upon the mappings defined in
mapping.xml. However, the index.jsp page "Welcome Page" defined in the
web.xml has a link for enteing into the site.this link points to the
"http://localhost:7011/petstore/main.screen";, Though this link is not
ended with .do, then who is intercepting the requests. I tried finding
out into the mapping.xml file and i could see

<default-screen>main.screen</default-screen> and
<url-mapping url="changelocale.do" screen="main.screen" isAction="true">


<action-class>com.sun.j2ee.blueprints.waf.controller.web.action.actions.ChangeLocaleHTMLAction</action-class>


</url-mapping>

 in mapping.xml. This finding even disturbed my earlier understanding
that MainServlet will be using this mapping.xml. Who is the user of this
mapping.xml, is this the container is managing the interactions and
second doubts is, is this mapping.xml is a part of the J2EE
specifications like (ejb-jar.xml) or it is framework specific like
(struts)

Thanks
Manoj

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to