On 5/3/06, Matthew J. Vincent <[EMAIL PROTECTED]> wrote:
Do I have to do something different in my Action class?  It is running
in an infinite loop and eventually running out of memory.

When you forward to another Action, the entire lifecycle starts over
from scratch. So the Action fires again, the Action returns success,
which forwards back to the Action, so the Action fires again.

You might want to put an "page proxy" Action in front of the
mouse.jsp, so that you can forward to that instead of the JSP. That
gives you the opportunity to do any setup the page needs.


But how does one pass in the variables that mouse summary needs to know
like the id of the mouse?

Typically, there would be some type of JavaBean in the request or
session with whatever properties the page needs to display. In this
case, it might be a mouse bean. It's not so much a matter of "passing"
variables, as updating the application state so that the page displays
the expected values. The Action updates the state (request, session,
or application), and then the page displays the state, but the two are
not directly coupled.

HTH, Ted.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to