You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Steve Russell <sr...@zeera.net> on 2002/07/26 20:26:38 UTC

Can Tomcat 4.03 expire web pages

Hi;

My boss wants to "expire" our jsp pages.

In other words, if a user hits backspace, instead of getting the jsp 
page s/he just left s/he would see a notice that the page expired.

I've seen snippets of code to do this on google, but I haven't been able 
to get them to work.

Can Tomcat 4.03 "expire" web pages or do I need a webserver with Tomcat 
to do this?

Also if someone could show me an example of how do this, with the 
example of being a whole html/jsp page I would appreciate it.

Thanks in advance

Steve


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Tomcat 4.03 CLI options?

Posted by Steve Russell <sr...@zeera.net>.
I did look through the docs.

Where can I find a list of command line options to use with 
TOMCAT_HOME/bin/startup.sh  ?

Thanks in advance

Steve


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Tomat 4.03 JAVACMD & Startup Properties

Posted by Steve Russell <sr...@zeera.net>.
Hi;

I'm using tomcat 4.03 and the IBM jdk 1.3.1

I'm running these commands to start my project

export JAVACMD="$JAVA_HOME/bin/java 
-DprojectProperties=$PROJECT_HOME/conf/project.properties"

./startup.sh

This worked with tomcat 3, but with tomcat 4.03 when I check the 
catalina.out log file it looks like it is not getting "projectProperties".

Does tomcat 4.03 pickup JAVACMD?

Steve


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Tomat 4.03 As A Stand alone

Posted by Steve Russell <sr...@zeera.net>.
Hi;

I'm trying to convert a web app to tomcat 4.03.

I set up my project tree as recommended by the manual.

My top level directory is /zot

The other directories are:
/zot/build
/zot/doc
/zot/dist
/zot/src ( has net.mypackage under it )
/zot/WEB-INF
/zot/WEB-INF/classes ( has compiled *.class of net.mypackage under it)
/zot/web
/zot/web/js
/zot/web/common_jsp
/zot/web/jsp1
/zot/web/jsp2
/zot/web/css
/zot/web/js


I put this tag in my server.xml

<Context path="/zot" docBase="/zot/web" debug="0" reloadable="true"/>


When I try to go to either jsp1 or jsp2 ( two seperate collections of 
jsps used as two differnt apps/sites)  I get this error message:


============================
Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error
type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server 
Error) that prevented it from fulfilling this request.

exception

java.lang.NullPointerException
	at 
org.apache.jsp.index_0005fhome$jsp._jspService(index_0005fhome$jsp.java:67)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
================================

I'm stumped.

Any ideas or clues?

Thanks

Steve



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Can Tomcat 4.03 expire web pages

Posted by Steve Russell <sr...@zeera.net>.
peter lin wrote:
> set your pages to no-cache, which forces the browser to always get it
> from the server. Is that what you're looking for?


I think so, partly.  I don't want the user to be able to get that page 
at all by backspacing....only a message that the page has "expired".


>>My boss wants to "expire" our jsp pages.
>>
>>In other words, if a user hits backspace, instead of getting the jsp
>>page s/he just left s/he would see a notice that the page expired.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: no-cache where to set?

Posted by peter lin <pe...@labs.gte.com>.
In your jsp page, add the following code at the top.

<%
response.setHeader("Cache-Control","no-cache");
response.setHeader("Pragma","no-cache");
response.setDateHeader ("Expires", 0);
%>

for more info on no-cache, jguru has some useful stuff

http://www.jguru.com/faq/view.jsp?EID=377


peter


slickdev wrote:
> 
> pardon my naivete', but where do i set pages for 'no-cache'?  i hope it's
> not just a browser setting... unknown number of browsers to set.
> 
> ----- Original Message -----
> From: "peter lin" <pe...@labs.gte.com>
> To: "Tomcat Users List" <to...@jakarta.apache.org>
> Sent: Friday, July 26, 2002 1:31 PM
> Subject: Re: Can Tomcat 4.03 expire web pages
> 
> >
> > set your pages to no-cache, which forces the browser to always get it
> > from the server. Is that what you're looking for?
> >
> > peter
> >
> >
> > Steve Russell wrote:
> > >
> > > Hi;
> > >
> > > My boss wants to "expire" our jsp pages.
> > >
> > > In other words, if a user hits backspace, instead of getting the jsp
> > > page s/he just left s/he would see a notice that the page expired.
> > >
> > > I've seen snippets of code to do this on google, but I haven't been able
> > > to get them to work.
> > >
> > > Can Tomcat 4.03 "expire" web pages or do I need a webserver with Tomcat
> > > to do this?
> > >
> > > Also if someone could show me an example of how do this, with the
> > > example of being a whole html/jsp page I would appreciate it.
> > >
> > > Thanks in advance
> > >
> > > Steve
> > >
> > > --
> > > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> >
> > --
> > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> >
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


no-cache where to set?

Posted by slickdev <sl...@comcast.net>.
pardon my naivete', but where do i set pages for 'no-cache'?  i hope it's
not just a browser setting... unknown number of browsers to set.


----- Original Message -----
From: "peter lin" <pe...@labs.gte.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Friday, July 26, 2002 1:31 PM
Subject: Re: Can Tomcat 4.03 expire web pages


>
> set your pages to no-cache, which forces the browser to always get it
> from the server. Is that what you're looking for?
>
> peter
>
>
> Steve Russell wrote:
> >
> > Hi;
> >
> > My boss wants to "expire" our jsp pages.
> >
> > In other words, if a user hits backspace, instead of getting the jsp
> > page s/he just left s/he would see a notice that the page expired.
> >
> > I've seen snippets of code to do this on google, but I haven't been able
> > to get them to work.
> >
> > Can Tomcat 4.03 "expire" web pages or do I need a webserver with Tomcat
> > to do this?
> >
> > Also if someone could show me an example of how do this, with the
> > example of being a whole html/jsp page I would appreciate it.
> >
> > Thanks in advance
> >
> > Steve
> >
> > --
> > To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> > For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Can Tomcat 4.03 expire web pages

Posted by peter lin <pe...@labs.gte.com>.
set your pages to no-cache, which forces the browser to always get it
from the server. Is that what you're looking for?

peter


Steve Russell wrote:
> 
> Hi;
> 
> My boss wants to "expire" our jsp pages.
> 
> In other words, if a user hits backspace, instead of getting the jsp
> page s/he just left s/he would see a notice that the page expired.
> 
> I've seen snippets of code to do this on google, but I haven't been able
> to get them to work.
> 
> Can Tomcat 4.03 "expire" web pages or do I need a webserver with Tomcat
> to do this?
> 
> Also if someone could show me an example of how do this, with the
> example of being a whole html/jsp page I would appreciate it.
> 
> Thanks in advance
> 
> Steve
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>