struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sampath Ekanayake <sampath...@gmail.com>
Subject Re: jsp caching problem
Date Sun, 19 Jun 2011 10:52:29 GMT
Hi Arpan,

Setting autocomplete to off in the text field might help you.

e.g.
<html:text property="username" size="20" maxlength="11" autocomplete="off"/>


Regards,
Sampath Ekanayake




On Mon, Jun 13, 2011 at 9:10 PM, Arpan <arpan.debroy@gmail.com> wrote:
> Hi All,
>
> Do any one know how to solve caching problem in jsp.
> My requirement is that, it should not display previously submitted credit
> card number and passwords.
> Whenever I put the first number, my page shows all other numbers previously
> entered as a suggession.
>
> I have used the bellow code to solve caching and autocmplete problem.
>
> <%response.setHeader("Cache-Control", "no-cache");%>
> <%response.setHeader("Pragma", "no-cache");%>
> <%response.setHeader("Expires", "0");%>
>
> <head>
>
>    <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
>
> </head>
>
> But till now no success.
>
> Thanks
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message