my dog learned polymorphism*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "SFC referenceData equivalent in MAC" Watch "SFC referenceData equivalent in MAC" New topic
Author

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?

Regards,

Swapna


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 http://www.javaranch.com/journal/200603/Journal200603.jsp#a5 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: http://aspose.com/file-tools
 
subject: SFC referenceData equivalent in MAC
 
Similar Threads
What is AOP?
Visual Web JSF Navigation issue
Visual Web JSF Navigation... Help!
Spring MVC AOP Logger
AOP