hi all
i need to refer to some external application from my
struts application.
Though i am able to acheive it by configuring the below lines in struts-config.xml ,
<action
path="/par"
type="com.FinServ"
parameter="method"
>
<forward name="showFinPage" path="http://10.22.234.45:4531/FinanceServlet" redirect="true" />
</action>
i dont want to hardcode the path
http://10.22.234.45:4531/FinanceServlet, which will change in different environment say Int, Producton,
Testing....
So i need to redirect to a external site that too i need it to configure the path dynamically.
After surfed the net i tried the below snippet inside my dispatch action method but not able to redirect it.
www.google.com is just get appended with the the URL in IE address bar.
ActionForward fwd = new ActionForward("www.google.com",true);
return fwd;
Any help wil be realy appreciated.....