Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "general Come back buttom " Watch "general Come back buttom " New topic

general Come back buttom

carlos Muller

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.
I agree. Here's the link:
subject: general Come back buttom
Similar Threads
Need Help and Suggestion
Getting a return URL
First struts app help! Drop-down lists
how to implement pojo to web form mapping in struts2
Question on Assignments