On 10/08/2004 04:11 PM Matt Hughes wrote:
> I just starting working on a project at work that is using a very old
> version of Struts (1.0). Having used the newest version of Struts, I am
> desperate to upgrade this application to use the newest version, but I
> have fixed all I can fix without a little assistance.
>
> The application has many custom tags and many of them are being used to
> do a forward. For example, every page has a <loggedIn /> tag that makes
> sure the user is logged in, and if not redirects him to the login page.
> I know that's not using Struts to the best of its ability and it's
> something I look forward to changing in the future, but right now I just
> want to get my application to compile using the latest version of Struts.
>
> Basically the problem is that inside the Tag code, they want to find an
> ActionForward. This was written before you could have multiple
> ActionServlet's in Struts. So how do I get an ActionForward that would
> give me the same result as the old ActionServlet.findForward(String
> name) and how do I get there. This is one peice of code that is breaking:
Matt,
you need the ActionMapping.findForward()
You'll have to work out how to get it in the JSP yourself though.
Probably a Globals constant key to access it in the PageContext.
Adam
--
struts 1.2 + tomcat 5.0.19 + java 1.4.2
Linux 2.4.20 Debian
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
|