Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
JSP - A mailing list about Java Server Pages specification and reference
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
Resource configuration problems on servlets (images, css, javascript)

Resource configuration problems on servlets (images, css, javascript)

2006-11-28       - By Pascal Guy

 Back
Reply:     1     2     3  

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@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.