|
Using a variable in Struts config, to redirect
In the struts-config file,
to redirect to a different site, I can use
redirect="true"
and mention full path, in my <forward path=
variable.
1. Is there a better way to do it?
2. Since I have to do it in multiple places, is it possible to use a variable? I mean, something like this
<forward
name="success"
path="URL/abc.html" />
Where URL is a variable name that the site path? This way, I can reuse the variable to redirect to other pages too (xyz.html, for example)
|