In your struts-config.xml <controller> element, thus:
<controller>
<set-property property="nocache" value="true"/>
</controller>
Jay
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, February 09, 2004 10:58 AM
Subject: Setting nocache
> Hi All:
> Question: Where/How do I set up my Struts app. so that all forms (views)
> send out "nocache" pragma?
> Goal: Attempt to prevent repost of form data on browser refresh.
> Status: Struts newbie
> Developing Env.: JDeveloper 10G (OC4J Servlet Engine), Struts 1.1
> Deployment Env.: Tomcat 5.0.16, Struts 1.1
> Browser: Moz. Firebird
> In response to why I didn't search the archive: It produces the following
> error:
> ht://Dig error
> htsearch detected an error. Please report this to the webmaster of this
> site. The error message is:
> Unable to read configuration file
> In reponse to why I didn't use Google: I have been for well over 4 hours.
> Google conclusions: setting nocache in web.xml is deprecated. I should
> set my controller to nocache=true
> my controller in struts-config.xml now looks like:
> <controller
processorClass="edu.albany.allfunds.authority.AuthRequestProcessor"
> nocache="true" locale="false"/>
>
> Where my class "AuthRequestProcessor" extends TilesRequestProcessor.
>
> This had no apparent affect. Hitting refresh in Firebird results in a
> warning that I'm about to re-POST my form data.
>
> In response to why I don't read a book: I did. It said to use web.xml.
> Guess I need a new book.
>
> I hope you have found this plea for help both informative and amusing.
>
> Peace,
> |----------------------------------|
> | Ryan Russo |
> | [EMAIL PROTECTED] |
> | University at Albany--Computing |
> | <<remove [noSPAM] to e-mail>> |
> | Technical Services Web Team |
> |__________________________________|
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]