Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

5.0.16 sample deploys!, one recommendation and one question

Ray Tayek

2003-12-18


hi, i finaly got the sample to deploy. needed to change a line in the
deploy task to: war="file://${dist.home}/${app.name}-${app.version}.war"/>
(it was just: war="file://${build.home}"/>).

thanks to all of you who work on tomcat.

the sample comes with an web/index.html that gets put in in myapp/ that i
can get to work with: http://localhost:8080/myapp/. I had to change a line
from: <li>To a <a href="hello">servlet</a>. to: <li>To a <a
href="Hi">servlet</a> using the web.xml below.

all is well, but someone might want to fix that war line and update the
sample with a web.xml that dtrt.

the question is: is there a way to navigate to the servlet without using
the servlet mapping. iirc, you could do something like
8080/myapp/servlet/mypackage/Hello in 4.x or perhaps that was only if you
were in root. does anyone know the right incantation? it would be nice to
have a way to navigate directly to the servlet for sanity reasons. iirc,
there is some switch in a config file somewhere that will allow this.

thanks

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.3//EN"
  "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
  <display-name>Hello, World Application</display-name>
  <description>simple web application</description>
  <servlet>
     <servlet-name>HelloServlet</servlet-name>
     <servlet-class>mypackage.Hello</servlet-class>
  </servlet>
  <servlet-mapping>
     <servlet-name>HelloServlet</servlet-name>
     <url-pattern>/Hi</url-pattern>
  </servlet-mapping>
</web-app>


---
ray tayek http://tayek.com/ actively seeking mentoring or telecommuting work
vice chair orange county java users group http://www.ocjug.org/
hate spam? http://samspade.org/ssw/


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.