You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mike Karl <mi...@mtconnect.com> on 2002/05/13 22:51:36 UTC

Multiple sites using one struts application.

Hello,
I'm building a site for a group of clubs.  All the sites will have the
same set of pages and actions.

For instance:

http://clubsites/club1/index.jsp
http://clubsites/club2/index.jsp
http://clubsites/club3/index.jsp
http://anothersite/club4/index.jsp

All of these sites would basically be the same in terms of layout and
functionality except that the would have different images.  They may
also connect to seperate database. How can I set up a site like this so
that I can use the same pages for all of the clubs but pass different
configurations so that I can render the pages with their own images.

thanks
mike



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: html:options with a Map collection

Posted by Sriram Nookala <sr...@proteusmobile.com>.
I've been trying to find documentation on how to use a Map collection in
html:options with the Map key as the label name and the Map value as the
label property.
thanks,
sriram



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


html:options with a Map collection

Posted by Sriram Nookala <sr...@proteusmobile.com>.
I've been trying to find documentation on how to use a Map collection in
html:options with the Map key as the label name and the Map value as the
label property.
thanks,
sriram


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Multiple sites using one struts application.

Posted by James Mitchell <jm...@telocity.com>.
That's a design choice that is up to you.

Besides, I don't claim to be an expert with filters (actually, I don't claim
to be an expert at anything ;P

JM

> -----Original Message-----
> From: Mike Karl [mailto:mike@mtconnect.com]
> Sent: Monday, May 13, 2002 7:08 PM
> To: Struts Users Mailing List
> Subject: RE: Multiple sites using one struts application.
>
>
> If I did something like this, would it then be appropriate to use a
> filter to set properties based on the url?
>
> thanks
> mike
>
>
> On Mon, 2002-05-13 at 15:03, James Mitchell wrote:
> >
> > One suggestion......
> >
> > Register a domain name, then setup to use virtual host.
> >
> > http://club1.mydomain.com/
> > http://club2.mydomain.com/
> > http://club3.mydomain.com/
> > http://club4.mydomain.com/
> > http://club5.mydomain.com/
> > http://club6.mydomain.com/
> >
> > Use same code base, but put all image references in a property file and
> > extend the img tag to write from the bundle, based on some kind of
> > ResourceManager (similar to how the i18n checks the headers for
> language)
> >
> > I hope this gives you some ideas, if not then just press DELETE.....;)
> >
> > JM
> >
> >
> >
> >
> > > -----Original Message-----
> > > From: Mike Karl [mailto:mike@mtconnect.com]
> > > Sent: Monday, May 13, 2002 4:52 PM
> > > To: struts-user@jakarta.apache.org
> > > Subject: Multiple sites using one struts application.
> > >
> > >
> > > Hello,
> > > I'm building a site for a group of clubs.  All the sites will have the
> > > same set of pages and actions.
> > >
> > > For instance:
> > >
> > > http://clubsites/club1/index.jsp
> > > http://clubsites/club2/index.jsp
> > > http://clubsites/club3/index.jsp
> > > http://anothersite/club4/index.jsp
> > >
> > > All of these sites would basically be the same in terms of layout and
> > > functionality except that the would have different images.  They may
> > > also connect to seperate database. How can I set up a site
> like this so
> > > that I can use the same pages for all of the clubs but pass different
> > > configurations so that I can render the pages with their own images.
> > >
> > > thanks
> > > mike
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > <ma...@jakarta.apache.org>
> > > For additional commands, e-mail:
> > > <ma...@jakarta.apache.org>
> > >
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
Mike Karl

Montana Connect
851 Bridger Dr.
Bozeman, MT 59715
(406) 556-1800

mike@mtconnect.com

--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Multiple sites using one struts application.

Posted by Mike Karl <mi...@mtconnect.com>.
If I did something like this, would it then be appropriate to use a
filter to set properties based on the url?

thanks
mike


On Mon, 2002-05-13 at 15:03, James Mitchell wrote:
> 
> One suggestion......
> 
> Register a domain name, then setup to use virtual host.
> 
> http://club1.mydomain.com/
> http://club2.mydomain.com/
> http://club3.mydomain.com/
> http://club4.mydomain.com/
> http://club5.mydomain.com/
> http://club6.mydomain.com/
> 
> Use same code base, but put all image references in a property file and
> extend the img tag to write from the bundle, based on some kind of
> ResourceManager (similar to how the i18n checks the headers for language)
> 
> I hope this gives you some ideas, if not then just press DELETE.....;)
> 
> JM
> 
> 
> 
> 
> > -----Original Message-----
> > From: Mike Karl [mailto:mike@mtconnect.com]
> > Sent: Monday, May 13, 2002 4:52 PM
> > To: struts-user@jakarta.apache.org
> > Subject: Multiple sites using one struts application.
> >
> >
> > Hello,
> > I'm building a site for a group of clubs.  All the sites will have the
> > same set of pages and actions.
> >
> > For instance:
> >
> > http://clubsites/club1/index.jsp
> > http://clubsites/club2/index.jsp
> > http://clubsites/club3/index.jsp
> > http://anothersite/club4/index.jsp
> >
> > All of these sites would basically be the same in terms of layout and
> > functionality except that the would have different images.  They may
> > also connect to seperate database. How can I set up a site like this so
> > that I can use the same pages for all of the clubs but pass different
> > configurations so that I can render the pages with their own images.
> >
> > thanks
> > mike
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> >
> >
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
-- 
Mike Karl

Montana Connect
851 Bridger Dr.
Bozeman, MT 59715
(406) 556-1800

mike@mtconnect.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Multiple sites using one struts application.

Posted by James Mitchell <jm...@telocity.com>.
One suggestion......

Register a domain name, then setup to use virtual host.

http://club1.mydomain.com/
http://club2.mydomain.com/
http://club3.mydomain.com/
http://club4.mydomain.com/
http://club5.mydomain.com/
http://club6.mydomain.com/

Use same code base, but put all image references in a property file and
extend the img tag to write from the bundle, based on some kind of
ResourceManager (similar to how the i18n checks the headers for language)

I hope this gives you some ideas, if not then just press DELETE.....;)

JM




> -----Original Message-----
> From: Mike Karl [mailto:mike@mtconnect.com]
> Sent: Monday, May 13, 2002 4:52 PM
> To: struts-user@jakarta.apache.org
> Subject: Multiple sites using one struts application.
>
>
> Hello,
> I'm building a site for a group of clubs.  All the sites will have the
> same set of pages and actions.
>
> For instance:
>
> http://clubsites/club1/index.jsp
> http://clubsites/club2/index.jsp
> http://clubsites/club3/index.jsp
> http://anothersite/club4/index.jsp
>
> All of these sites would basically be the same in terms of layout and
> functionality except that the would have different images.  They may
> also connect to seperate database. How can I set up a site like this so
> that I can use the same pages for all of the clubs but pass different
> configurations so that I can render the pages with their own images.
>
> thanks
> mike
>
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>