I referred to the site.
I cant get the servlet.
Directory structure : projectA is the project name.
webapps/projectA
---- jsps all here
----- images folder shows images in jsp pages ,reference is
"/projectA/images/imageName.jpg" in jsp.
------ WEB-INF
+--- classes
--- lib
--- web.xml (attached)
Form action is as below in index.jsp and still it dosent reach the servlet.
<form method="post" name=indexForm action="servlet/com.osp.servlet.Router" >
The error is
HTTP Status 404 - /osp/servlet/com.osp.servlet.Router
----------------------------------------------------------------------------
----
type Status report
message /osp/servlet/com.osp.servlet.Router
description The requested resource (/osp/servlet/com.osp.servlet.Router) is
not available.
----------------------------------------------------------------------------
----
Apache Tomcat/4.1.12
I have copied the com folder to WEB-INF/classes/ so com lies in this
classes folder
Someone pls tell me this , I have to get this done today...Enough time has
been spent , but Something small is missing here.
Thanks
Tript
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Triptpal Singh
Lamba" <[EMAIL PROTECTED]>
Sent: Wednesday, November 20, 2002 4:06 PM
Subject: Re: Servlet deployment.
> See the article,"Deploying Web Applications to Tomcat" at
> http://www.onjava.com/pub/a/onjava/2001/04/19/tomcat.html
> > Hi all.
> > I have worked with iPlanet and other servers but havent really
> > deployed/coded for Tomcat much.
> >
> > I want some expert advise on structure of tomcat applications.
> > I have the current structure :-
> >
> > webapps/examples/jsp has default examples.
> >
> > I started my project say projectA like this
> >
> > webapps/examples/projectA
> >
> > I want to ideally take it 1 level up to webapps/projectA. This would
make
> > me do some context settings in some xml files. Which all and how ?
> >
> > The jsp page came up instantly on
> > http://localhost:8080/examples/ProjectA/index.jsp
> >
> > ======================
> >
> > Now I have written a servlet Router.java, how do I get the jsp above
to
> > submit to this java program. Where do I put the java program in a
project
> > structure in Tomcat and what changes do I make. I tried changing the
> > web.xml (url patterm etc) in webapps\examples\WEB-INF\web.xml but I
didnt
> > know how tomcat does this.
> > So coudl someone tell me where I would get an example of how to
configure
> > the xml files to MAP the servlet I write for tomcat.
> >
> > Thanks all
> >
> > Tript Singh
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
> >
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>
>
<?xml version="1.0" encoding="ISO-8859-1"?>
<!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>
<!--
<servlet>
<servlet-name>ExampleServlet</servlet-name>
<servlet-class>packagename.ExampleServlet</servlet-class>
<init-param>
<param-name>parameter</param-name>
<param-value>value</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
-->
<servlet>
<servlet-name>Router</servlet-name>
<servlet-class>com.osp.servlet.Router</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
</web-app>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>