In my action class what i need is that whenever user successfully authenticated i redirect it to another page .I am able to do redirect but now i have to hard code the path in action class .Can i use the path which is associated with forward name ="success" and do redirect instead of forward . Thanks
you define as many mappings and forwards as you want in the struts-config.xml and use business code in the action to determine the appropriate forwards.
this should work without any problems or troubles.
I specify redirect=true in struts config and it solve my problem .Thanks a lot.I have another doubt regarding ActionForward. Let i have this action mapping in struts
In above code i declare 2 forwards and in action class i made ActionForward object and i return that ActionForward .Suppose i need to redirect to path specify by forward "success" (without declaring redirect in struts.config). How to do this Thanks