In the perform method of my action class, I have stored the path attribute
of the forward being returned from the mapping object as an attribute in the
request. I can then access the path from JSP pages to determine what lead
me to the JSP page.
For example in the perform method:
request.setAttribute("path", mapping.findForward("success").getPath());
Then in the JSP page:
<bean:write name="path"/> will give me the path that resulted in this JSP
being called.
If anyone has better ideas on how to handle this, I would like to hear about
them as well.
-----Original Message-----
From: Mike Dewhirst [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 27, 2002 7:18 AM
To: 'Struts Users Mailing List'
Subject: checking action name
Is it possible to find in the JSP what action mapping has lead us there? Is
there a parameter in the request?
Thanks in advance,
Mike
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>