Howdy,

>2. Name of JSP = whoKnows.war

I'll assume you meant name of war file.

>1. The main problem ist, that 'normal call' (/whoKnows/) works fine.
That
>means that I get my index.jsp, and all works the way I wanted to.
>BUT, if I use /whoKnows/foo/bar my java-class of my jsp-Servlet
(defined in
>whoKnows web.xml)
>is directly called (skipping my index.jsp). But I still want that my
>index.jsp is called first.
>May JSP-Page knows what to do with the java-class. Any Idea how I can
>configure this?

You need a filter also mapped to /foo/bar which inspects the request or
session to see if an attribute is present.  That attribute is one that's
placed there by index.jsp.  If the attribute is not present, the filter
will redirect the request to index.jsp.  If the attribute is present,
the filter will let the request proceed.

>2. The default context ist the Name of the JSP in the webapps-dir.
>In this case it is '/whoKnows'. Is there any trick, that I cann change
>this?

Yes, read the <Context> configuration reference in the tomcat docs.

>I know that it is possible to configure an context for every
application in
>tomcats own xml-configuration files. But who is this done, and is there
any
>better possibility (doing this in whoKnows web.xml for example)?

You can include a context.xml with your war file.  Or configure the
context in $CATALINA_HOM/conf/server.xml.  Again, read the <Context>
configuration reference.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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

Reply via email to