File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Application Frameworks and the fly likes SFC referenceData equivalent in MAC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "SFC referenceData equivalent in MAC" Watch "SFC referenceData equivalent in MAC" New topic

SFC referenceData equivalent in MAC

Swapna James
Ranch Hand

Joined: Jul 26, 2005
Posts: 56
Hi All,

I am using MultiActionControllers and SimpleFormControllers in my project. I am having problem with Session Management. I have used AOP to manage session and in the SFC, I have referenceData() where I am calling a method and while calling that method, AOP will be activated and if session is invalid the user is promted to login again. So wherever I have SFC, if I logout and then click on Back button of the browser, the user is prompted to login again. But with MAC, since I don't have an equivalent of referenceData, AOP is not activated and while clicking on Back button after log out, the user will be able to view the page if not modify anything.

Can anybody suggest a work around. Is there any equivalent of referenceData for MAC?



SCJP 1.4
Vikas Kapoor
Ranch Hand

Joined: Aug 16, 2007
Posts: 1374
Hello Swapna,

The PRG[Post-Redirect-Get] pattern is the perfect solution. I would suggest you to go through article written by Bear. It might be hard to incorporate this pattern if you have already started development. Still you can give it a chance. Good luck.
I agree. Here's the link:
subject: SFC referenceData equivalent in MAC
It's not a secret anymore!