Bibagimon,
I've tried every possible path combination including "/servlet/package-
name.Servlet". When I use this syntax, Tomcat looks for the servlet from
the "webapps" folder - it loses the path to my web app. Thanks for
responding though - Tom
> You may test with
action='/servlet/package-name.Servlet'
thanks
bibagimon
--- Tom Berry <tberry@v...> wrote:
> I'm having a problem with my webapps using Tomcat
> 4.1.12. For example, the
> web app "AdminInv" is at "c:\webapps\admininv". It's
> <Context> in
> server.xml is:
> <Context path="/admininv"
> docBase="c:/webapps/admininv" debug="0"/>
>
> The web.xml file contains:
>
> <servlet-mapping>
> <servlet-name>invoker</servlet-name>
> <url-pattern>/servlet/*</url-pattern>
> </servlet-mapping>
>
> <welcome-file-list>
> <welcome-file>AdminInventory.html</welcome-file>
> </welcome-file-list>
>
> The problem occurs after the login HTML. It accesses
> a servlet
> ('action="servlet/package-name.Servlet'), which upon
> validation, forwards
> to an intermediary JSP. Once the servlet is
> accessed, I must add "../" to
> each URL for JSPs and servlets. Forwarding to JSPs
> from within the servlet
> also require the "../" I noticed that when the error
> page #404, file not
> found appears, the URL shows
> "http://localhost/servlet/package-
> name.ServletName", the web app name between
> localhost and servlet is
> missing.
>
> Am I wrong in thinking that I shouldn't need to be
> adding "../" for Tomcat
> to find the HTMLs, JSPs & servlets? If the web app
> does not use servlets,
> and so the path is never changed, I don't need to do
> this. Is there
> something I'm missing in my web.xml files?
>
> Thanks
> Tom Berry
>
>
> ---
> Change your mail options at
> http://p2p.wrox.com/manager.asp or
> to unsubscribe send a blank email to
__________________________________________________
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/