Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: Access jsp from different context

Christopher Schultz

2007-08-07

Replies:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Victor,

Victor Huang wrote:
> I have 3 web app running on Tomcat -
>
> 1.  web application - mywebapp.war
> 2.  Component JSPs - mycomponent.war
> 3.  Web site JSPs - mywebsite.war

Might I suggest a different deployment strategy?

cd $DEPLOYMENT_DIRECTORY
mkdir mywebapp
cd mywebapp
jar xf /path/to/mycomponent.war
jar xf /path/to/mywebapp.war

cd $DEPLOYMENT_DIRECTORY
mkdir mywebsite
cd mywebsite
jar xf /path/to/mycomponent.war
jar xf /path/to/mywebsite.war

This way, you have everything you need with each application, instead of
trying to sew these things together unnaturally.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGuJ8c9CaO5/Lv0PARAgJ3AJ41r/FKDpRWbNanSVCa31onvniaywCfe1Ly
Ftq8Tdl7dfRNNavBQV3K90c=
=Z6Qn
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.