File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes general Come back buttom Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "general Come back buttom " Watch "general Come back buttom " New topic
Author

general Come back buttom

carlos Muller
Greenhorn

Joined: Apr 20, 2006
Posts: 14
Hi everybody, I thinking about the idea of make a general Come back buttom for my web application. I work now with Struts2, and think perhaps in a Interceptor that, for any request, insert in session an object with the name of the class action - method in a java.util.Stack, and the parameters of the request. After, a global action "come_back" (call from a general buttom in a tiles - footer, visible in any page of the web application) that read of this Stack and "know" where must to go and the parameters requiered(too in the object of the Stack).

Anybody made something like that, or know where can I read about this problem?

Thanks a lot
Jesus Mireles
Ranch Hand

Joined: Mar 10, 2010
Posts: 122

I dont know of anything in struts2 that will do this out of the box, but you can probably solve this with an intercepting filter. Also if you look at Struts2 in Action book in section 12.4 they have a breadcrumb example that you can probably use as well.
 
 
subject: general Come back buttom