Re: Problems with dir structure

2003-07-24 Thread bernd pier
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

Re: Problems with dir structure

2003-07-22 Thread Lenandlar Singh
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

Re: Problems with dir structure

2003-07-22 Thread John Turner
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:

Re: Problems with dir structure

2003-07-22 Thread Lenandlar Singh
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

Re: Problems with dir structure

2003-07-22 Thread John Turner
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

Re: Problems with dir structure

2003-07-22 Thread Lenandlar Singh
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

Problems with dir structure

2003-07-21 Thread Lenandlar Singh
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!

Re: Problems with dir structure

2003-07-21 Thread Robert Wray
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: