tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric W Hauser <ehau...@indiana.edu>
Subject RE: tiles+wsad [OT??]
Date Mon, 08 Sep 2003 18:42:38 GMT
I guess you *could* hardcode the header and footer names.  I would
recommend setting this as an init-param to the filter and storing the
header and footer files in the WEB-INF directory. If you wanted to
do some more complicated wrapping, you could easily set this up with
different filter mappings and init params.  You do have to think about
your filter mappings, though, since by default Struts uses forwards
instead of redirects.  You need to make sure you filter your action
classes, because they send forwards to JSPs.

This reason I suggested this route was because this method is portable
across web applications, no matter what framework you are using.  This is
a bit of learning curve involved in Tiles as well. 

On Mon, 8 Sep 2003, Mainguy, Mike wrote:

> I guess our pages are a little more involved than would be practical with a
> Filter... I understand how to do this with a Filter, I just fail to see how
> it is easier/better to do it using a Filter versus tiles.... With tiles I
> just uncomment the plugin-in in struts-config.xml, create a template and I'm
> running.
> 
> My whole problem was that the wsad IDE reports a bunch of broken links and
> cannot understand the tiles stuff.  Not exactly a show stopper, but, kinda
> irritating (since I get about 100 warnings that are totally meaningless [or
> rather, they mean that wsad is unaware of tiles]).
> 
> So, out of curiosity, are you saying you hardcode the header and footer jsp
> names in your filter?
> 
> 
> -----Original Message-----
> From: Eric W Hauser [mailto:ehauser@indiana.edu] 
> Sent: Monday, September 08, 2003 12:34 PM
> To: Tag Libraries Users List
> Subject: RE: tiles+wsad [OT??]
> 
> Yes, this is what I am talking about.  You can write a filter to do
> the same thing as tiles.  It is very simple if all you need as a header
> and a footer wrapped around each of your jsp pages.  It gets a little more
> complicated if you want to do some other stuff.  There's a couple
> different ways that you can implement this.  I can't pass out the code
> since it was developed for work, but do a search on google for something
> like "jsp wrapper filter".  That should get you started.
> 
> On Mon, 8 Sep 2003, Mainguy, Mike wrote:
> 
> > Are you talking about the javax.servlet.Filter interface?  If so, how does
> > that give me the same functionality as tiles?
> > 
> > -----Original Message-----
> > From: Eric W Hauser [mailto:ehauser@indiana.edu] 
> > Sent: Monday, September 08, 2003 10:19 AM
> > To: Tag Libraries Users List
> > Subject: RE: tiles+wsad [OT??]
> > 
> > Depending on what servlet container you are using, I would just recommend
> > not using tiles.  If you are using a Servlet 2.3 container, then I would
> > recommend attempting to accomplish the same functionality of tiles using a
> > filter instead.  It's pretty simple to implement, not to mention a lot
> > less complicated.  Tiles, as I have found with a lot of Struts components,
> > are a lot more complicated than they really need to be.
> > 
> > On Mon, 8 Sep 2003, Mainguy, Mike wrote:
> > 
> > > That's the answer I keep getting and I was just hoping someone had
> devised
> > a
> > > more clever solution than that (because that doesn't seem too clever to
> > me).
> > > 
> > > -----Original Message-----
> > > From: Pembroke, Brian [mailto:Brian.Pembroke@ANICO.com] 
> > > Sent: Monday, September 08, 2003 9:24 AM
> > > To: 'Tag Libraries Users List'
> > > Subject: RE: tiles+wsad [OT??]
> > > 
> > > The only thing you can do, is to turn off the struts validation in your
> > > preferences.
> > >  
> > > Brian
> > > 
> > > -----Original Message-----
> > > From: Mainguy, Mike [mailto:MMainguy@kmart.com]
> > > Sent: Monday, September 08, 2003 8:17 AM
> > > To: taglibs-user@jakarta.apache.org
> > > Subject: tiles+wsad [OT??]
> > > 
> > > 
> > > 
> > > Any body using wsad with tiles?  If so, do you know of a way to make the
> > > struts-config.xml warnings go away.  In addition, do you know a way to
> get
> > > the relative links in your tiles to look correct when in the designer?
> > > 
> > >  
> > > 
> > > I tried the websphere list, but, I get 10 out-of-office replies and no
> > help
> > > whenever I send a message to that list.
> > > 
> > > This message and its contents (to include attachments) are the property
> of
> > > Kmart Corporation (Kmart) and may contain confidential and proprietary
> > > information. You are hereby notified that any disclosure, copying, or
> > > distribution of this message, or the taking of any action based on
> > > information contained herein is strictly prohibited. Unauthorized use of
> > > information contained herein may subject you to civil and criminal
> > > prosecution and penalties. If you are not the intended recipient, you
> > should
> > > delete this message immediately.
> > > 
> > > 
> > > 
> > > 
> > > 
> > > This message and its contents (to include attachments) are the property
> of
> > Kmart Corporation (Kmart) and may contain confidential and proprietary
> > information. You are hereby notified that any disclosure, copying, or
> > distribution of this message, or the taking of any action based on
> > information contained herein is strictly prohibited. Unauthorized use of
> > information contained herein may subject you to civil and criminal
> > prosecution and penalties. If you are not the intended recipient, you
> should
> > delete this message immediately.
> > > 
> > > 
> > > 
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
> > > 
> > > 
> > > 
> > 
> > -------------------
> > Eric Hauser
> > ehauser@indiana.edu
> > (317) 679-4766
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
> > 
> > 
> > This message and its contents (to include attachments) are the property of
> Kmart Corporation (Kmart) and may contain confidential and proprietary
> information. You are hereby notified that any disclosure, copying, or
> distribution of this message, or the taking of any action based on
> information contained herein is strictly prohibited. Unauthorized use of
> information contained herein may subject you to civil and criminal
> prosecution and penalties. If you are not the intended recipient, you should
> delete this message immediately.
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
> > 
> > 
> > 
> 
> -------------------
> Eric Hauser
> ehauser@indiana.edu
> (317) 679-4766
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
> 
> 
> This message and its contents (to include attachments) are the property of Kmart Corporation
(Kmart) and may contain confidential and proprietary information. You are hereby notified
that any disclosure, copying, or distribution of this message, or the taking of any action
based on information contained herein is strictly prohibited. Unauthorized use of information
contained herein may subject you to civil and criminal prosecution and penalties. If you are
not the intended recipient, you should delete this message immediately.
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
> 
> 
> 

-------------------
Eric Hauser
ehauser@indiana.edu
(317) 679-4766


Mime
View raw message