Arrrgg! Also when I have ..
frame name=topFrame scrolling=0 src=jsp/index.jsp NORESIZE
With the mapping
servlet
servlet-namejsp.index/servlet-name
servlet-classjsp.index/servlet-class
/servlet
servlet-mapping
servlet-namejsp.index/servlet-name
url-patternjsp/index.jsp/url-pattern
/servlet-mapping
I don't get to see jsp/indesx.jsp instead I get a directory listing! I also
changed the above to
servlet-mapping
servlet-namejsp.index/servlet-name
url-pattern/jsp/index.jsp/url-pattern
/servlet-mapping
and
frame name=topFrame scrolling=0 src=/jsp/index.jsp NORESIZE
Still no luck! Is this something to with the uriroot or uribase attributes
at compile time! Do I need to be setting these!
Thanks.
Matt
- Original Message -
From: Lee Peik Feng [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 10:29 AM
Subject: Re: jspc and index.jsp
If not mistaken, Files that you set under welcome-file-list must be
physically exist.
else, you need to type http://localhost:8080/your-webapp/index.jsp
as this is what we set in servlet-mapping
servlet-mapping
servlet-nameindex/servlet-name
url-pattern/index.jsp/url-pattern
/servlet-mapping
another workaround would be create a dummy index.html file that has the
below code
meta http-equiv=refresh content=0; url=index.jsp
- Original Message -
From: Matthew Oatham [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 6:15 PM
Subject: jspc and index.jsp
Hi,
I have managed to pre-compile my jsp's down to class files and put them in
web-inf/classes.
I have this entry in web.xml
welcome-file-list
welcome-fileindex.jsp/welcome-file
welcome-fileindex.htm/welcome-file
welcome-fileindex.html/welcome-file
/welcome-file-list
I have the servlet WEB-INF/classes/index.class
I have the mapping:
servlet
servlet-nameindex/servlet-name
servlet-classindex/servlet-class
/servlet
servlet-mapping
servlet-nameindex/servlet-name
url-pattern/index.jsp/url-pattern
/servlet-mapping
when I hit my application instead of seeing the contents of index.jsp I
get
a directory listing of the location where index.jsp should be but isn't
because it is now a class in web-inf/classes.
Any ideas?
Thanks.
Matt.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]