O'Reilly logo

Struts Kick Start by Kevin Bedell, James Turner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Transferring Control Inside and Outside the Application

Under normal circumstances, the last thing an Action does is return an ActionForward. This is used by the Controller to determine the next page to display. But the Action doesn’t actually know where that is because the Controller has final responsibility for determining the forward. The same Action can be used by several different Struts actions, with different forward paths for the same returned forward mappings.

In fact, you can even forward to another Action without going to an intermediate JSP file. If the path in the struts-config.xml for the requested forward matches the URI pattern used for Actions (usually that it ends in .do), and Struts will immediate transfer control to the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required