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
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
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
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
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
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
jsp pages cahces on struts

jsp pages cahces on struts

2007-11-06       - By Wes Wannemacher

 Back
Reply:     1     2  

I actually ran into this once where the JSP was not being updated, and
the issue was that for some reason (incorrect time on my workstation
or something), the timestamp on the JSP file was older than the
timestamp of the compiled JSP. Usually when the JSP is broken, Tomcat
will recognize that it won't compile and serve an error (500 with
compile error), but I have had it happen that Jasper doesn't realize
the JSP is bad and serves up the old content.

If this is a consistent behavior in your environment, I would say that
there is probably some obscure problem that you should track down and
fix before creating a workaround that will undoubtedly cost you more
time than necessary.

(As an aside, I noticed that when using Tomcat in eclipse-wtp, you can
right-click the Tomcat server and choose 'Clean...' which will dump
the work folders and recompile all JSPs. One of those
should-not-be-necessary-but-glad-you-did-it type of things).

On 11/6/07, Dale Newfield <Dale@(protected)> wrote:
> Odelya Glick wrote:
> > I deleted the files under:
> > TOMCAT_HOME\work\Cataline\localhost\myProjectName
> >
> > But is there a better way to never cache it?
>
> .jsp gets converted to .java which then gets compiled to a .class, which
> is then loaded and executed.  You do *not* want to go through that
> process for every single .jsp render.
>
> Probably the reason you had caching problems is that in one of your
> changes you broke the .jsp, so it was unable to create a (new, valid)
> .java file (so a new .class was not generated, didn't replace the
> previous one, and you were left with the previous page).  Look in your
> logs for the .jsp compile error.
>
> -Dale
>
> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>


--
Wesley Wannemacher
President, Head Engineer/Consultant
WanTii, Inc.
http://www.wantii.com

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


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