This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Disabling browser memorizing fields values Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Disabling browser memorizing fields values" Watch "Disabling browser memorizing fields values" New topic
Author

Disabling browser memorizing fields values

Danilo Dadonas
Ranch Hand

Joined: Aug 24, 2007
Posts: 59

Hi. Happy new year for all.

How can I disable the automatic memorize of fields values of a browser in my jsp's?
It's not secure if my users are accessing my application on public computers.

Thanks.


Dadonas<br /> <br />Don't gain the world and lose your soul.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Other than adding AUTOCOMPLETE="OFF" to the form or form elements, there is nothing else that you can do.

Eric
Anirvan Majumdar
Ranch Hand

Joined: Feb 22, 2005
Posts: 261
Incase yours is a Struts application, you can set the attribute "scope" to "request" in your struts-config file for the corresponding <action-mapping>
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61456
    
  67

Originally posted by Anirvan Majumdar:
Incase yours is a Struts application, you can set the attribute "scope" to "request" in your struts-config file for the corresponding <action-mapping>


What on earth does this have to do with the original question?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Danilo Dadonas
Ranch Hand

Joined: Aug 24, 2007
Posts: 59

It helps me.

Thanks for all.
Anirvan Majumdar
Ranch Hand

Joined: Feb 22, 2005
Posts: 261
Originally posted by Bear Bibeault:


What on earth does this have to do with the original question?


I think if you've worked enough with Struts, you'd know what I mean by that. When you have the "scope" attribute as "session" instead of "request" (in an action-mapping) then for every form field you fill in, the value persists through a session and gets displayed (even without filling in) whenever you visit that page again!

I was just providing a "possible" alternative to the problem at hand.
[ January 02, 2008: Message edited by: Anirvan Majumdar ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Disabling browser memorizing fields values