cofactor
asked on
response sendRedirect issue
I have a web app . name : PaymentServices.war
I want to redirect to url http://localhost:8080/PaymentServices/index.action as soon as browser's welcome page is hit .
I am confused which one to write in welcome.jsp . This is default welcome page.
<%
response.sendRedirect("ind ex.action? lang=en");
%>
OR
<%
response.sendRedirect("/in dex.action ?lang=en") ;
%>
OR
<%
response.sendRedirect("Pay mentServic es/index.a ction?lang =en");
%>
OR
<%
response.sendRedirect("/Pa ymentServi ces/index. action?lan g=en");
%>
OR
anything else ?
I want to redirect to url http://localhost:8080/PaymentServices/index.action as soon as browser's welcome page is hit .
I am confused which one to write in welcome.jsp . This is default welcome page.
<%
response.sendRedirect("ind
%>
OR
<%
response.sendRedirect("/in
%>
OR
<%
response.sendRedirect("Pay
%>
OR
<%
response.sendRedirect("/Pa
%>
OR
anything else ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
>>Did you actually mean "your website" welcome page?
yes.
first and last option works fine.
yes.
first and last option works fine.
ASKER
this wont load struts tag library.
hence I want to route through struts action.
hence I want to do redirect.