> -----Original Message-----
> From: Michael McGrady [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 10, 2004 3:51 PM
> To: Struts Users Mailing List
> Subject: RE: Importing context with Struts
> 
> 
> I thought that digester actually created classes out of this 
> stuff, Jim.  No?

Not quite.... the defintiion file gets turned into one java bean per definition.  
These java beans are then used to pull the parts together for the tags ( paraphrased 
from SIA Chap 11.1 pg 324).
Since all jsp files are converted to a servlet first, then compiled, I would tend to 
say that all the jsps being declared in a tile definition being in the same class 
couldn't happen... however I can't seem to find out where websphere puts it's working 
stuff *SIGH* to verify this I can't say for sure.

However, after digging through the tiles code I came across this:
http://cvs.apache.org/viewcvs.cgi/jakarta-struts/src/share/org/apache/struts/tiles/TilesUtilImpl.java?rev=1.9&view=markup
The part that answers the question:
 public void doInclude(
        String uri,
        HttpServletRequest request,
        HttpServletResponse response,
        ServletContext servletContext)
        throws IOException, ServletException {
            
        request.getRequestDispatcher(uri).include(request, response);
    }
Which means no..... all those jsp files are _NOT_ compiled into one big huge 
class..... they are individual servlets in keeping with the spec.


> 
> At 03:23 PM 8/10/2004, you wrote:
> 
> 
> > > -----Original Message-----
> > > From: Michael McGrady [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, August 10, 2004 3:14 PM
> > > To: Struts Users Mailing List
> > > Subject: RE: Importing context with Struts
> > >
> > >
> > > At 03:00 PM 8/10/2004, you wrote:
> > > >Not class no, scope yes.
> > >
> > > The "extension" is not real?
> >
> >Humina?
> >Let me try again:
> >The following definition uses the session scoped bean 
> borrowerInformation 
> >in multiple jsp pages.  Each of them seperate files, each of 
> them entirely 
> >unkowing of each other.  All know borrowerInformation, for 
> it is in the 
> >session scope.  Knowing borrowerInformation makes them happy. :)
> >
> ><definition name="mainLayout" path="/layout/layout2.jsp">
> >         <put name="title"  value="This is a title" />
> >         <putList name="headerList">
> >                 <add value="/showMessages.do"/>
> >         </putList>
> >         <putList name="leftSideList">
> >                 <add value="/borrowerDemographics.jsp"/>
> >                 <add value="/showPaymentHistory.do?detail=summary"/>
> >         </putList>
> >         <putList name="centerList">
> >                 <add value="/layout/body.jsp"/>
> >         </putList>
> >         <putList name="rightSideList">
> >                 <add value="/resources.jsp"/>
> >                 <add value="/layout/links.jsp"/>
> >                 <add value="/showDeferments.do"/>
> >                 <add value="/showForebearances.do"/>
> >         </putList>
> >         <putList name="footerList">
> >                 <add value="/layout/footer.jsp"/>
> >         </putList>
> >     </definition>
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to