Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Disabling browser memorizing fields values

 
Danilo Dadonas
Ranch Hand
Posts: 59
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Other than adding AUTOCOMPLETE="OFF" to the form or form elements, there is nothing else that you can do.

Eric
 
Anirvan Majumdar
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Danilo Dadonas
Ranch Hand
Posts: 59
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It helps me.

Thanks for all.
 
Anirvan Majumdar
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic