Nevermind I just realized I was trying to get it out of the reqeust rather
than the ServletContext. Oooops!



----- Original Message ----- 
From: "Chris Gastin" <[EMAIL PROTECTED]>
To: "Struts Developers List" <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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

Reply via email to