thanks jayson !

..I went thru petstore.war given by weblogic 7.0 and
websphere 4.0...

in weblogic 7.0 ....wev-inf/classes contains the precompiled servlets
but no mention about these servlets is given in the
web.xml deployment descriptor ( the JSP 1.2 specification talks about
packaging but says thats its non-normative and I saw an example where the name of the 
jsp servlet is declared in the web.xml under <servlet> element)

in websphere no precompiled JSP servlets are present only the jsp files
are present under / .

what are the pros and cons of using precompiled JSP s?

"JSP spec says that its more likely that JSP files are shipped in the
source form....." why is it so ?

can I create a WAR that doesnt contains JSP source but contains only the
precompiled servlets....if one does like that y should
he do it...

the web.xml s DTD in servlet specification 2.3 describes an element
named

<!ELEMENT jsp-file (#PCDATA)>

but few war files that I have went thru doesnt use this.

in a nut shell which is the preffered way for packaging JSPs

1) ship only the JSP files in the WAR file
2) ship only the JSP files in the WAR file and declare these JSP files in
   web.xml using the jsp-file tag
3) ship both JSP files and the precompiled jsp servlets in the WAR files
4) ship only the precompiled jsp servlets and declare them in the web.xml files as
<servlet-name> HelloWorld </servlet-name>
<servlet-class> _jsp_HelloWorld_XXX_Impl.class </servlet-class>

Thanks again
Deepth Dinesan





regards
Deepth

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to