ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew Oatham" <matthewoat...@hotmail.com>
Subject Re: jspc and index.jsp
Date Tue, 25 Mar 2003 11:13:19 GMT
Arrrgg! Also when I have ..

<frame name="topFrame" scrolling="0" src="jsp/index.jsp" NORESIZE>

With the mapping

 <servlet>
  <servlet-name>jsp.index</servlet-name>
  <servlet-class>jsp.index</servlet-class>
 </servlet>

 <servlet-mapping>
  <servlet-name>jsp.index</servlet-name>
  <url-pattern>jsp/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-name>jsp.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" <pflee@syabas.com>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
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-name>index</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" <matthewoatham@hotmail.com>
> To: <tomcat-user@jakarta.apache.org>; <tomcat-dev@jakarta.apache.org>
> 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-file>index.jsp</welcome-file>
>         <welcome-file>index.htm</welcome-file>
>         <welcome-file>index.html</welcome-file>
>     </welcome-file-list>
>
> I have the servlet WEB-INF/classes/index.class
>
> I have the mapping:
>
>  <servlet>
>   <servlet-name>index</servlet-name>
>   <servlet-class>index</servlet-class>
>  </servlet>
>
>  <servlet-mapping>
>   <servlet-name>index</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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>

Mime
View raw message