Hi all,
I'm a bit new to servlet programming so i'll be as clear as i can.
I'm developing a small web application to test servlets in a project at school The project is fairly simple we a jsp pages that POST requests to a central servlet that controls the flow of the application My partner codded the jsp pages (which include css, javascript and images) everything working on his side as far as the pages displaying the images and the javascipt functionality

The problem comes when we integrate to post the request to my controller
The controller works fine but the resources are not working (css, images and javascript)

the configuration is simple

<servlet>
       <servlet-name>controller</servlet-name>
       <servlet-class>org.test.controller.Controller</servlet-class>
       <init-param>
           <param-name>debug</param-name>
           <param-value>0</param-value>
       </init-param>
       <init-param>
           <param-name>listings</param-name>
           <param-value>false</param-value>
       </init-param>
       <load-on-startup>1</load-on-startup>
   </servlet>

   <servlet-mapping>
       <servlet-name>controller</servlet-name>
       <url-pattern>/controller</url-pattern>
   </servlet-mapping>
the images have the right path to access the resources when i check the properties

When i debug the application i can see multiple request when i acces the login page (or any other page for that matter) as if the request to get the images (or resources) were handled by my servlet and my servlet as it's coded does'nt recognize that type of event (each request has to have an event type)

The controller works fine but even with multiple changes to my configuration i can't get the resources to work properly.

Do i need to map the resource types to something so it bypasses my servlet (and not be treated as a request)

I can't figure this out, though i've tried many setups.

Thanks anybody.

--
Pascal


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to