MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
rss245b
Post subject: MyEclipse4Spring - Understanding the control flow of ...  PostPosted: May 28, 2012 - 10:42 PM
Registered Member
Registered Member


Joined: May 03, 2010
Posts: 45

MyEclipse4Spring - Understanding the control flow the Webinar Project, TheOffice which exemplifies Spring framework Scaffolding projects in MyEclipse for Spring.
I used Spring MVC as the GUI

I have a real problem with not being able to determine the control flow of the project
Clearly it uses the Filter listed in the web.xml file for SiteMesh but how exactly does it get called up? I mean what happens 1st after the application server say Tomcat loads in
the web.xml file ? What object is loaded first and how does it serve up / call up main.jsp
and the resulting pages/menu.jsp page that first appears. This is not so straight forward and I would really like more clarification of this process if possible.
What class loads first how ultimately the menu.jsp file is rendered
 
 View user's profile Send private message  
Reply with quote Back to top
cconway
Post subject:   PostPosted: Jun 01, 2012 - 12:01 PM



Joined: Apr 04, 2011
Posts: 196

The filter in web.xml causes sitemesh to kick into action. Then sitemesh uses the decorators.xml file where it finds this:

Code:
<decorator name="main" page="main.jsp">
        <pattern>/*</pattern>
</decorator>


That decorator causes every request to load main.jsp. If you open main.jsp, you'll see logic that includes the dashboard or <decorator:body /> based on the servlet path of the request:

As far as how the sitemesh filter classes use the this configuration and which sitemesh objects load, you would need to dig into the specifics of sitemesh.

_________________
Cindy
MyEclipse for Spring Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits