Results 1 to 1 of 1
- 05-12-2008, 08:33 PM #1
Member
- Join Date
- May 2008
- Posts
- 1
- Rep Power
- 0
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)
Similar Threads
-
How to redirect the output
By Java Tip in forum java.ioReplies: 0Last Post: 04-04-2008, 02:36 PM -
question about struts-config.xml
By christina in forum Web FrameworksReplies: 2Last Post: 02-15-2008, 10:45 AM -
struts-config.xml
By Heather in forum Web FrameworksReplies: 2Last Post: 01-17-2008, 11:23 AM -
reading values from config file
By sathish_2111 in forum Enterprise JavaBeans (EJB)Replies: 3Last Post: 08-10-2007, 03:09 PM -
How can I redirect in servlet?
By Heather in forum Java ServletReplies: 1Last Post: 07-14-2007, 05:52 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks