File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

unexpected "chaining" of events across pages

 
Ben Hagadorn
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic