my dog learned polymorphism*
The moose likes EJB and other Java EE Technologies and the fly likes Question related to banking project? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Question related to banking project? " Watch "Question related to banking project? " New topic
Author

Question related to banking project?

Sneha Latha
Greenhorn

Joined: Jan 25, 2007
Posts: 3
Q.) Friends if anybody worked for online banking project,Please do help me with your answers for the following question?

When a customer logs-in into his account, and then after entering into his account, he clicks the go Back button . Then he should see the error Page instead of the Bank Log-in Page. How can we do this? Please explain the technical part to do this?
Naresh Narayana
Greenhorn

Joined: Aug 17, 2006
Posts: 5
I hope you would be coding a Servlet to authenticate the user.
Once the user is authenticated the user bean has to be saved to 'Session' so that other pages can use it for preferences and other stuff.

So coming to the point if the user clicks 'Back' button, same URL would be called there by directing the request to the same Servlet.

In the Servlet check if session's user attribute is not null then forward to 'error page' else authenticate the user and preserve it in the session.

Hope this helps.
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
Are you referring to the back button of a browser? If so, why have this back button for a secure application? It would be best not to have it at all and instead have a link on the web page to take the user back to a previous page.


SCJP 1.4, SCWCD 1.3, SCBCD 1.3
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question related to banking project?
 
Similar Threads
Ajax Projects
Confuse on EJB Role
disable the back button
Now it China's Turn
how we can make online payment