Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2006

Tip: Looking for answers? Try searching our database.

Libraries in a WAR containing JSPs?

Thread view: 
Lee  Crawford - 29 Dec 2006 18:46 GMT
I've got a framework that is a mix of Java code and supporting jsp
files. Is there a way to jar this up and place it in the WEB-INF/lib
directory of another web application and still be able to address the
jsp files?

I don't necessarily need to directly address the .jsp files from the
outside, but would need to use things like RequestForwarded to access
them?

How do libraries typically include presentation layer capabilities like
this without using native servlets.

-lee
Lew - 30 Dec 2006 04:09 GMT
Lee Crawford wrote:
> I've got a framework that is a mix of Java code and supporting jsp
> files. Is there a way to jar this up and place it in the WEB-INF/lib
> directory of another web application and still be able to address the
> jsp files?

I don't know of any such thing and don't see how it could work if you did.

> I don't necessarily need to directly address the .jsp files from the
> outside, but would need to use things like RequestForwarded [sic] to access
> them?

Check out the Model-View-Controller architecture and, possibly, Struts.

> How do libraries typically include presentation layer capabilities like
> this without using native servlets.

Why not code your servlets as servlets?

To answer your stated question, WARs aren't like JARs that go into WARs. A WAR
packages a Web _application_, not a library like JARs in a WEB-INF/lib/.
Cooperating Web apps can be packaged into an EAR (Enterprise Archive).

http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html

- Lew


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.