tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "smashingwebs" <smashingw...@home.com>
Subject Re: Included (<jsp:include .../> JSP not being recompiled
Date Mon, 05 Nov 2001 20:18:22 GMT
Mind if I put my 2 cents in? According to what I have read
the include directive combines the 2 files where the include
action keeps them separate. With the include action supposedly
you get a performance issue but since the container keeps
them separate, all files that are changed are updated (or
so they say). With the include directive, a change in the
included jsp will not be updated.  I am interested in this
issue as well because I am trying to use a parameter in
the include action i.e.:
<jsp:include page="<%= getSomeParameter() %>" flush="true"%>

but I haven't had any luck. I tried setting the parameter with
setProperty or setAttribute and getting it with a getProperty or
getAttribute inside the include. I tried passing the parameter inside
a form field <input type="hidden" name="referingpage"
value="/path/toPage.jsp">
and getting it with a getParameterValues("referingpage") inside the
include action. No luck. Anybody have any ideas how to do this?


----- Original Message -----
From: "Micael Padraig Og mac Grene" <caraunltd@harbornet.com>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Sunday, November 04, 2001 8:24 PM
Subject: Re: Included (<jsp:include .../> JSP not being recompiled


> Believe it or not, I solved a problem with that by including a rewiite in
> the including jsp.  I added a space on the odd time and took it out on the
> even.  Dumb, but works great.
>
> lol
>
>
> -----Original Message-----
> From: Brian Kreitzer <kreitzerb@yahoo.com>
> To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> Date: Sunday, November 04, 2001 8:06 PM
> Subject: Re: Included (<jsp:include .../> JSP not being recompiled
>
>
> >I've seen similar problems with other application
> >servers.  You can think of it like this.  The include
> >is just a "pointer" to the other page and since the
> >pointer doesn't acctually change, it sees no reason to
> >recompile.  I would guess that you cannot change this
> >"feature".
> >
> >bk
> >
> >--- Janek Bogucki <janekdb@yahoo.co.uk> wrote:
> >> I seem to have a problem with Tomcat not recompling
> >> a
> >> changed JSP when the JSP is only used as an included
> >> file with <jsp:include/>.
> >>
> >> I have a page which includes another JSPs:
> >>
> >> /MyJSP.html:
> >>
> >> <%@ page errorPage="/error.html" %>
> >> <html>
> >> ...
> >> <jsp:include page="/_include/st.html#header.jsp"
> >> flush="true" />
> >> ...
> >> </html>
> >>
> >>
> >> This is my included file, just static HTML:
> >>
> >> /_include/st.html#header.jsp:
> >>
> >> <some static HTML>
> >>
> >>
> >> If 'MyJSP.html' is modified it's recompiled and
> >> served
> >> out okay. However if '/_include/st.html#header.jsp'
> >> is
> >> modified 'MyJSP.html' continues to use the old
> >> version
> >> until I forced a recompile of
> >> '/_include/st.html#header.jsp' by deleting the
> >> out-of-date class from /work.
> >>
> >> Is there anything I can do to get
> >> '/_include/st.html#header.jsp' to recompile
> >> automatically when it's modifed?
> >>
> >> Thanks,
> >> Janek Bogucki
> >>
> >>
> >>
> >> __________________________________________________
> >> Do You Yahoo!?
> >> Everything you'll ever need on one web page from
> >> News and Sport to Email and Music Charts
> >> http://uk.my.yahoo.com
> >>
> >> --
> >> To unsubscribe:
> >> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> >> For additional commands:
> >> <mailto:tomcat-user-help@jakarta.apache.org>
> >> Troubles with the list:
> >> <mailto:tomcat-user-owner@jakarta.apache.org>
> >>
> >
> >
> >=====
> >Brian Kreitzer
> >
> >Owner
> >Kreitzer Kreations
> >
> >__________________________________________________
> >Do You Yahoo!?
> >Find a job, post your resume.
> >http://careers.yahoo.com
> >
> >--
> >To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> >For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> >Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> >
> >
>
>
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
>


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message