Re: Tiles, included pages, and taglibs

2002-04-08 Thread Cedric Dumoulin


  Hello,

  Tiles simply use the RequestDispatcher.include(...) method, wich allow
to
include a servlet.

Cedric

Dave Dribin wrote:

> > Dave Dribin wrote:
> >
> > >Hi,
> > >
> > >This is more of an observation than a question.  I started playing
> > >with the tiles and noticed that in included pages, you have to
> > >redeclare taglibs in those included pages.
>
> On Tue, Apr 02, 2002 at 10:08:10AM +1000, Arron Bates wrote:
> > They may be separate pages in terms of development, but at runtime
> > they'll become separate servlets all together and will be parsed as
> > such. Being separate servlet entities, they'll need the talib
> > declarations etc etc.
>
> Just out of curiousity, how does Tiles do this?  Does it invoke the
> JSP servlet manually or do some sort of internal HTTP request and
> capture the output?  I took a brief look at the code, but it gave me a
> headeache. ;)
>
> -Dave
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tiles, included pages, and taglibs

2002-04-04 Thread Cedric Dumoulin


  Hello,

  Tiles simply use the RequestDispatcher.include(...) method, wich allow to
include a servlet.

Cedric

Dave Dribin wrote:

> > Dave Dribin wrote:
> >
> > >Hi,
> > >
> > >This is more of an observation than a question.  I started playing
> > >with the tiles and noticed that in included pages, you have to
> > >redeclare taglibs in those included pages.
>
> On Tue, Apr 02, 2002 at 10:08:10AM +1000, Arron Bates wrote:
> > They may be separate pages in terms of development, but at runtime
> > they'll become separate servlets all together and will be parsed as
> > such. Being separate servlet entities, they'll need the talib
> > declarations etc etc.
>
> Just out of curiousity, how does Tiles do this?  Does it invoke the
> JSP servlet manually or do some sort of internal HTTP request and
> capture the output?  I took a brief look at the code, but it gave me a
> headeache. ;)
>
> -Dave
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tiles, included pages, and taglibs

2002-04-02 Thread Dave Dribin

> Dave Dribin wrote:
> 
> >Hi,
> >
> >This is more of an observation than a question.  I started playing
> >with the tiles and noticed that in included pages, you have to
> >redeclare taglibs in those included pages.

On Tue, Apr 02, 2002 at 10:08:10AM +1000, Arron Bates wrote:
> They may be separate pages in terms of development, but at runtime 
> they'll become separate servlets all together and will be parsed as 
> such. Being separate servlet entities, they'll need the talib 
> declarations etc etc.

Just out of curiousity, how does Tiles do this?  Does it invoke the
JSP servlet manually or do some sort of internal HTTP request and
capture the output?  I took a brief look at the code, but it gave me a
headeache. ;)

-Dave

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tiles, included pages, and taglibs

2002-04-01 Thread Arron Bates

They may be separate pages in terms of development, but at runtime 
they'll become separate servlets all together and will be parsed as 
such. Being separate servlet entities, they'll need the talib 
declarations etc etc.

If you do static includes, the server will simply pick up the include 
file and write it into the same servlet. In this case you don't use the 
taglib declarations.

Arron.


Dave Dribin wrote:

>Hi,
>
>This is more of an observation than a question.  I started playing
>with the tiles and noticed that in included pages, you have to
>redeclare taglibs in those included pages.  Say I have this file,
>index.jsp:
>
>-
><%@ page contentType="text/html;charset=UTF-8" language="java" %>
><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
><%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
><%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
><%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %>
>
>  
>  
>  
>  
>
>-
>
>In "/WEB-INF/body/home.jsp", I have to redeclare the taglibs.  This
>seems a little counter-intuitive as the included pages are not full
>HTML pages, only sub-sections.  Is this the intended behavior, or do I
>have something configured wrong?  And just to clarify my own sanity,
>this is different that JSP includes, right?
>
>-Dave
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: