dcsimg
How to forward to another URL in a Struts Action?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Jeff_Caswell
Posted On:   Wednesday, April 9, 2003 11:58 AM

I've run into another Struts roadblock. What if I want to forward to a URL that is obtained from a database? In Struts, it seems you can only forward to predefined paths, using the struts-config.xml. This seems like a serious limitation. What is the workaround or how should I be doing this?

J.C.

Re: How to forward to another URL in a Struts Action?

Posted By:   Jeff_Caswell  
Posted On:   Wednesday, April 9, 2003 03:17 PM

The only way I could do this with relative ease was to forward to a generic jsp that creates a redirect out of the dynamically generated URL. It seems this is a weak point in the Struts design (i.e. forwarding to dynamic destinations).
About | Sitemap | Contact