Sharing JSP's across WAR files? Any Tricks?

2002-06-06 Thread Steve Muench

Not strictly Struts related but I'm hoping that some of you
might have run into this in your appbuilding.

I'm trying to help a customer who wants to bundle a 
page like common.jsp into a /common context root
in a common.war

and then have a page like myapp.jsp in a /myapp context root
in a myapp.war file be able to do:

  jsp:include path=/common/common.jsp/

Short of copying all of the files from common.war into myapp.war,
is there any trick to have JSP pages shared across WAR files 
like this?

The JSP 1.2 spec seems to prohibit this from my reading of it
in that it resolves a /something relative to the WAR's context root,
but I figured maybe I was reading it wrong.

Thanks.

__
Steve Muench - Developer, Product Mgr, Java/XML Evangelist, Author
Simplify J2EE and EJB Development with BC4J
http://otn.oracle.com/products/jdev/htdocs/j2ee_bc4j.html
Building Oracle XML Apps, www.oreilly.com/catalog/orxmlapp


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Sharing JSP's across WAR files? Any Tricks?

2002-06-06 Thread Kevin . Bedell




I believe this is best addressed as a build/deploy issue, not a run-time
issue

That is:

 - Create Ant targets to build each of the .war files needed for each
application
 - Have each .war file include the /common path.
 - Keep a single copy of /common in source control

Another advantage of this is better configuration management. Each app is
assured to be deployed with a version of /common that was current at the
time it was built. Otherwise, if someone changes /common it could break one
of the apps that rely on it.





Steve Muench [EMAIL PROTECTED] on 06/06/2002 09:36:33 AM

Please respond to Struts Users Mailing List
  [EMAIL PROTECTED]

To:   Struts Users Mailing List [EMAIL PROTECTED]
cc:(bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:  Sharing JSP's across WAR files? Any Tricks?


Not strictly Struts related but I'm hoping that some of you
might have run into this in your appbuilding.

I'm trying to help a customer who wants to bundle a
page like common.jsp into a /common context root
in a common.war

and then have a page like myapp.jsp in a /myapp context root
in a myapp.war file be able to do:

  jsp:include path=/common/common.jsp/

Short of copying all of the files from common.war into myapp.war,
is there any trick to have JSP pages shared across WAR files
like this?

The JSP 1.2 spec seems to prohibit this from my reading of it
in that it resolves a /something relative to the WAR's context root,
but I figured maybe I was reading it wrong.

Thanks.

__
Steve Muench - Developer, Product Mgr, Java/XML Evangelist, Author
Simplify J2EE and EJB Development with BC4J
http://otn.oracle.com/products/jdev/htdocs/j2ee_bc4j.html
Building Oracle XML Apps, www.oreilly.com/catalog/orxmlapp


--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]







---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]