tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Louden <ap...@yahoo.com>
Subject Re: JSP, Servlet, and Java Classes location in Tomcat
Date Sat, 05 Jun 2004 20:03:21 GMT
Thanks you QM!
 
I just followed the example to use invoker, I don't understand what is that. So whats your
suggestions? When I removed web.xml, the JSP is running, but servlet no longer runs.
I want to run both JSP and servlet. Please advise. Thanks!!

QM <qm300@brandxdev.net> wrote:
On Sat, Jun 05, 2004 at 11:38:27AM -0700, Matt Louden wrote:
: In tomcat, I want to know JSP files, Servlets, and Java classes 
: should put in different locations:

This breaks down into:
1/ the servlet spec (where you put classes, JARs, web.xml, etc)

2/ your app's architecture (JSPs, servlet URI mappings -- see a 
few texts/articles on best practices).


Your specific problem is this:

: 
: invoker
: /*
^^^^

You're mapping the invoker to _all_ URIs. The JSPs themselves will
never be called. If you want to use the invoker, map it to a deeper
URI, such as "/something/*"


Also, I feel a certain obligation to warn you against using the
invoker, but that's your choice.

-QM

-- 

software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

		
---------------------------------
Do you Yahoo!?
Friends.  Fun. Try the all-new Yahoo! Messenger
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message