tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chen, Gin" <Gin.C...@NielsenMedia.com>
Subject RE: Strust + Tiles + JSTL = ERROR
Date Tue, 13 May 2003 17:04:15 GMT
There's definitely benefit in both styles.
I for one would like a central location for all my definitions and not have
to worry about it after that. But I can see where it makes sense to 'keep
the scope as narrow as possible'. But all this is moot unless it is
supported by your deployment container. :-/
-Tim

-----Original Message-----
From: Michael Duffy [mailto:duffymo@yahoo.com]
Sent: Tuesday, May 13, 2003 12:39 PM
To: Tag Libraries Users List
Subject: Re: Strust + Tiles + JSTL = ERROR



Not me - I don't like building dependencies in that
way.  I put the taglib declarations where I need them,
no more and no less.  

Kinda like Java variable declarations - I like to keep
the scope as narrow as possible.  Use them where you
need them.

JMHO - MOD

--- TJK <blackcore@mac.com> wrote:
> 
> What I usually do is make a single file with all the
> tag declarations 
> and include them on the top of the page.  Something
> like <%@ include 
> file="/includes/taglib-dec.jsp" %>
> 
> It's been my experience that you don't need to have
> tags declared in 
> every file that uses them, as long as the
> declaration has been called 
> earlier up.
> 
> -tim
> 
> On Tuesday, May 13, 2003, at 12:05 PM, Chen, Gin
> wrote:
> 
> > What exactly does the specs say about this?
> > I can't find it in the JSP specs (I guess that's
> not really a JSP
> > requirement? But I could be missing it). I would
> think that since 
> > Tiles = a
> > template to build a single page that we can have
> all the declarations
> > necessary on page.jsp and not have to replicate
> them in the the 
> > included
> > jsps. It would sure make the code alot cleaner and
> easier to manage 
> > should a
> > taglib need to change locations etc.
> > -Tim
> >
> > -----Original Message-----
> > From: TJK [mailto:blackcore@mac.com]
> > Sent: Tuesday, May 13, 2003 11:53 AM
> > To: Tag Libraries Users List
> > Subject: Re: Strust + Tiles + JSTL = ERROR
> >
> >
> >
> > Yes, thats what I'm converting my pages to right
> now, but after 9
> > months of development on Resin (which cheerfully
> accepted this), you
> > can imagine that this came as an surprise.  I
> suppose one could blame
> > me for not carefully reading the specs (or doing
> testing outside
> > Resin), or Resin for not being spec-compliant.  :)
>  Oh well, life goes
> > on.
> >
> > -tim
> >
> > On Tuesday, May 13, 2003, at 11:19 AM, Chen, Gin
> wrote:
> >
> >> Oh okay.
> >> I see your issue now.
> >> Well tell you the truth I don't think that is how
> Tiles was supposed 
> >> to
> >> work.
> >> You really should have your html:html start and
> end tags in page.jsp
> >> not
> >> separated in header and footer.
> >>
> >> page.jsp could look as simple as:
> >>
> >> <%@ taglib uri="/WEB-INF/struts-html.tld"
> prefix="html" %>
> >> <html:html>
> >> 	<!-- header start-->
> >>       	<tiles:insert attribute="header"/>
> >> 	<!-- header end -->
> >>
> >>       <!-- content start -->
> >>             <tiles:insert attribute="body"/>
> >>       <!-- content end -->
> >>
> >>       <!-- footer start -->
> >>             <tiles:insert attribute="footer"/>
> >>       <!-- footer end -->
> >> </html:html>
> >>
> >> -Tim
> >>
> >> -----Original Message-----
> >> From: TJK [mailto:blackcore@mac.com]
> >> Sent: Tuesday, May 13, 2003 11:12 AM
> >> To: Tag Libraries Users List
> >> Subject: Re: Strust + Tiles + JSTL = ERROR
> >>
> >>
> >>
> >> lets say i had three files.
> >>
> >> header.jsp  (with a struts <html:html> tag in it)
> >>
> >> page.jsp (the specific page being called by
> tomcat)
> >>
> >> footer.jsp (footer include with </html:html> in
> it)
> >>
> >> then page.jsp includes both header.jsp, and
> footer.jsp with the body
> >> content in between.
> >>
> >> if tomcat attempts to call page.jsp - it doesn't
> work.  the same thing
> >> works fine in resin.  Thats what i'm saying here
> - it turns out that
> >> the issue that teknokrat brought up is a
> different one, but i'm still
> >> wondering what you guys (who use struts) do to
> get around this issue.
> >>
> >> -tim
> >>
> >>
> >> On Tuesday, May 13, 2003, at 10:46 AM, Dave
> Newton wrote:
> >>
> >>> On Tue, 2003-05-13 at 10:36, TJK wrote:
> >>>> Are you using Tomcat?  I just found out from
> the tomcat-dev list 
> >>>> that
> >>>> the jsp spec doesn't allow the use of tags in
> includes .. i.e. a tag
> >>>> opened in one file cannot be closed in another.
> >>>
> >>> I just want to make sure I understand what
> you're saying here.
> >>>
> >>> You're not saying you can't use tags in
> includes; you're saying you
> >>> can't open a tag in one file and close it in
> another (compare with
> >>> opening a tag, including a file, and closing the
> tag in the original
> >>> file).
> >>>
> >>> Right?
> >>>
> >>> Dave
> >>>
> >>>
> >>>
> >>>
>
---------------------------------------------------------------------
> >>> To unsubscribe, e-mail:
> taglibs-user-unsubscribe@jakarta.apache.org
> >>> For additional commands, e-mail:
> taglibs-user-help@jakarta.apache.org
> >>>
> >>
> >>
> >>
>
---------------------------------------------------------------------
> >> To unsubscribe, e-mail:
> taglibs-user-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail:
> taglibs-user-help@jakarta.apache.org
> >>
> >>
>
---------------------------------------------------------------------
> >> To unsubscribe, e-mail:
> taglibs-user-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail:
> taglibs-user-help@jakarta.apache.org
> >>
> >
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> taglibs-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> taglibs-user-help@jakarta.apache.org
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> taglibs-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> taglibs-user-help@jakarta.apache.org
> >
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> taglibs-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message