> -----Original Message-----
> From: Vinicius Caldeira Carvalho
> [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 15, 2004 10:28 AM
> To: Struts Users Mailing List
> Subject: Forwarding question
> 
> 
> Hi there! I have a dispatch action that receives a forward 
> parameter and 
> I need to find the approprieate path for it. Since this 
> action is used 
> by a lot of scenarios, It's not desirable to be setting new 
> forwards for 
> each new scenario that uses it (would be to confusing the 
> struts-config) 
> and our specs forbid us to use global-forwards.
> So how can I retreive a full path for a certain action having 
> its name? 
> Like I have /user/userList, how can I use struts classes to retreive 
> somthing like : http://myserver/myapp/user/userList.do ???

ActionMapping will give you what you want I believe.

> 
> 
> Ps: the code that needs to do this lies inside an action. also, is it 
> possible to do this inside a TagSuport class???

Ummmmm.. I _think_ the action mapping is in application scope, so if you can 
get there, you should be able to get the ActionMapping.

> 
> Thanks
> 
> ---------------------------------------------------------------------
> 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