Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
    Bookmark Topic Watch Topic
  • New Topic

Disable back button in browser

 
Neeraj jain
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Report post to moderator
I am implementing an IntranetMailServer using the tiles framework now on the login page i need to disable the back button, i tried it using the javascript but when i implement it on the layout.jsp it is working on every single page but when i tried it on the particular login page it is not working because i have already given the body tag in layout.jsp
my java script is like this


now please do tell me how to achieve it
 
Maneesh Godbole
Saloon Keeper
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
I would suggest you take a step back and go through https://www.coderanch.com/how-to/java/InterfaceDesignersRule1 before even thinking of disabling the back button.
Tell us what problem you are trying to solve and we can offer alternative suggestions
 
Neeraj jain
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Report post to moderator
yes you are absolutely right but the thing is that for the security concern i want that after logout if somother person uses the same pc and if he/she presses the back button the he/she will see all the private messages of others so this thing i don't want to happen
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64851
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Disabling the back button will not achieve any level of security. Be sure to read the links that Maneesh posted.
 
Neeraj jain
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Report post to moderator
ok but will you please tell me how to limit the size of file to be uploaded on the server ?..........

and secondly i am making an intranet mail server so i just need to confirm that when a user sends an attachment to another person so all i have to do is to store that files original name inside the database or else i have to save that file path or the file itself i know it's stupid thing to ask but please tell me as i am 90% sure onto the 1st option
 
Maneesh Godbole
Saloon Keeper
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
What you are asking now has got nothing to do with your original question.
Please UseOneThreadPerQuestion
 
    Bookmark Topic Watch Topic
  • New Topic