struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Gastin" <ch...@gastin.com>
Subject Re: Find a Forward Path with a Forward Name
Date Sat, 27 Sep 2003 06:48:04 GMT
Nevermind I just realized I was trying to get it out of the reqeust rather
than the ServletContext. Oooops!



----- Original Message ----- 
From: "Chris Gastin" <chris@gastin.com>
To: "Struts Developers List" <struts-dev@jakarta.apache.org>
Sent: Saturday, September 27, 2003 1:29 AM
Subject: Find a Forward Path with a Forward Name


> I am trying to find a forward in the struts-config.xml. I thought I need
to
> get it through the ModuleConfig object, but the config vairable in the
> snippet of code below is coming back null.
>
> ModuleConfig config = (ModuleConfig)
> pageContext.getRequest().getAttribute(Globals.MODULE_KEY);
> ForwardConfig forwardConfig = config.findForwardConfig("forwardName");
> String path = forwardConfig.getPath();
>
>
> First, Can I get a forward from the ModuleConfig? If yes am I accessing it
> correctly? If no then how can I find a forward value based on the name?
>
> Chris Gastin
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-dev-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org


Mime
View raw message