hi,
you can put servlets in every dir you have create.it had to be this
structure /webapps/WEB-INF/classes and there must be a web.xml file.
look into the webapps/examples dir as a template.this question is often
discussed in this list.
Lenandlar Singh schrieb:
Hello,
where do i put static
Hello,
I have the following directory structure for an application under Tomcat 4.1.
c:\Tomcat 4.1\webapps\examples\testapp\postform.html
c:\Tomcat 4.1\webapps\examples\testapp\Web-inf\classes\ShowParameters.class
where testapp is my application directory.
How do i set the path for the
Since examples is itself a webapp, you are setting yourself up for
lots of grief trying to do what you are doing.
You want c:\tomcat 4.1\webapps\testapp
How you set the action parameter depends on the servlet-mapping you
setup for that servlet in web.xml.
RTFM!
John
Lenandlar Singh wrote:
Hello,
I set the action to action =/ShowParameters
John Turner [EMAIL PROTECTED] wrote:
Since examples is itself a webapp, you are setting yourself up for
lots of grief trying to do what you are doing.
You want c:\tomcat 4.1\webapps\testapp
How you set the action parameter depends on the
Well, let's hope your directory structure and web.xml file support that
configuration. I guess we'll find out once you tell us if its working
or not. ;)
John
Lenandlar Singh wrote:
Hello,
I set the action to action =/ShowParameters
John Turner [EMAIL PROTECTED] wrote:
Since examples
Hello,
this is what the web.xml has..
==
!-- The mapping for the default servlet --
servlet-mapping
servlet-namedefault/servlet-name
url-pattern//url-pattern
/servlet-mapping
!-- The mapping for the invoker servlet --
!--
servlet-mapping
Hello,
where do i put static html files and servlets so that the can be called in tomcat 4.1
-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
HTML files can be placed in a sub-directory of the webapps folder.
Servlets should be placed in a sub-directory of the webapps folder under
/WEB-INF/classes
For example, if you installed tomcat to c:\tomcat and have an application
called testApp you might have something like the following: