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 unexpected Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "unexpected "chaining" of events across pages" Watch "unexpected "chaining" of events across pages" New topic
Author

unexpected "chaining" of events across pages

Ben Hagadorn
Greenhorn

Joined: Mar 28, 2006
Posts: 25
I wonder if anyone else has run across this and, if so, how do I avoid it�..

I have two JSP pages (A and B). Both have a CANCEL button and both have code in their ACTION like this:

if (this.isCancelled(request)) {
return mapping.findForward("returnToPreviousPage");
}

There are links on page A that take the user to page B. What I am seeing is that when the user selects the CANCEL button on page B they are taken back to page A (correct so far). But then in the ACTION for page A where I check this.isCancelled(request) I end up in the THEN clause and go back to the page that opened A. I don�t want this � I want to go back from B to A and stop there.

Can anyone help me?

- Ben
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: unexpected "chaining" of events across pages