struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Taylor, Jason" <jtay...@cobaltgroup.com>
Subject RE: How to share Tiles between webapps ?
Date Fri, 27 Sep 2002 17:10:20 GMT
I just replied to another post (subject "RE: multiple sub apps") with a more
detailed description of what I'm doing-- please see that one.  My fingers
are a little sore at the moment ;)

-----Original Message-----
From: James Higginbotham [mailto:jhigginbotham@betweenmarkets.com]
Sent: Friday, September 27, 2002 10:03 AM
To: Struts Users Mailing List
Subject: RE: How to share Tiles between webapps ?


Hmm.. This sounds interesting.. Is there a pointer to more info about
this, or can you share some more details  about what you are doing? I'm
about to start on a project that will behave like sourceforge, allowing
subprojects to be hosted and managed by users. Sounds like this may be a
good solution, as I plan to use Struts + Tiles. 

Thanks,
James

> -----Original Message-----
> From: Taylor, Jason [mailto:jtaylor@cobaltgroup.com] 
> Sent: Friday, September 27, 2002 11:57 AM
> To: 'Struts Users Mailing List'
> Subject: RE: How to share Tiles between webapps ?
> 
> 
> I've been able to share jsps between webapps using the 
> "contextRelative" attribute of the action forward and 
> relative links everywhere.  My default app is just a 
> redirector to the appropriate sub-app so the user is *always* 
> in a sub-app.
> 
> -----Original Message-----
> From: Cedric Dumoulin [mailto:cedric@apache.org]
> Sent: Friday, September 27, 2002 9:46 AM
> To: Struts Users Mailing List
> Subject: Re: How to share Tiles between webapps ?
> 
> 
> 
>   Hi,
> 
>   I think that the way to go is to copy the files (.xml and 
> layouts) in 
> each subapps. If you use a Unix system, you can do a link from the 
> webapps to your files. The nice thing with Tiles, is that if 
> you modify 
> one of these files, you can override all its copies and it 
> should still 
> running.
>   The problem of not be able to share files between webapps is not 
> related to tiles, but to webapps spec.
> 
>       Hope this help,
>             Cedric
> 
> Alexandre Albert wrote:
> 
> >My site is composed of many webapps (many .war files), and I can not
> >figure out how to reuse tiles definitions and layouts in 
> those different 
> >webapps.
> >The definitions are relative to the servlet's root context 
> as well as the 
> >layouts specified by the definitions.
> >I've seen that one possible way is to write a custom 
> >ComponentDefinitionFactory to read the tiles definitions 
> files from a 
> >specific location, but this is a bit tedious because of lack of 
> >documentation or examples. Anyway this will solve the 
> problem of sharing 
> >definitions files for many webapps, but the problem of 
> sharing common 
> >layouts stays.
> >Is there no other way than copying the tiles definitions and 
> layouts to 
> >every webapp ?
> >
> >Help would be greatly appreciated.
> >
> >_________________________
> >Alexandre Albert
> >Unicible
> >
> >mailto:alexandre.albert@unicible.ch
> >http://www.unicible.ch
> >  
> >
> 
> 
> 
> --
> To unsubscribe, e-mail: 
> <mailto:struts-user-> unsubscribe@jakarta.apache.org>
> For 
> additional commands, 
> e-mail: <mailto:struts-user-help@jakarta.apache.org>
> 

--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message