I
itmohan2002
Hi All,
In my web application, i would like to redirect to https to some urls
(ex:- registration, posting)
Iam using struts framework, Ibatis and sever Tomcat 5.0.
How can i redirect to https for particular urls and the next coming
pages should come back to http.
ex:-
--------------------------------------------------------------------------------
http://www.myapp.com
https://www.myapp.com/register.do
http://www.myapp.com/thankyou.do
--------------------------------------------------------------------------------
Struts-config.xml
--------------------------------------------------------------------------------
<!-- ======== REGISTRATION ===== -->
<action attribute="registerForm" name="registerForm" path="/
registration" validate="false"
type="com.app.registration.RegisterAction">
<forward name="registration" path="/registration/registration.jsp"/>
<forward name="alreadyLoggedIn" path="/edit-profile.do"/>
</action>
<!-- ======== CONFIRM REGISTRATION ===== -->
<action attribute="registerForm" name="registerForm" path="/thankyou-
registration" validate="false"
type="com.app.registration.RegisterAction">
<forward name="registerFailure" path="/registration/registration.jsp"/<forward name="successRegistration" path="/registration/thankyou-new-
registration.jsp"/>
</action>
In my web application, i would like to redirect to https to some urls
(ex:- registration, posting)
Iam using struts framework, Ibatis and sever Tomcat 5.0.
How can i redirect to https for particular urls and the next coming
pages should come back to http.
ex:-
--------------------------------------------------------------------------------
http://www.myapp.com
https://www.myapp.com/register.do
http://www.myapp.com/thankyou.do
--------------------------------------------------------------------------------
Struts-config.xml
--------------------------------------------------------------------------------
<!-- ======== REGISTRATION ===== -->
<action attribute="registerForm" name="registerForm" path="/
registration" validate="false"
type="com.app.registration.RegisterAction">
<forward name="registration" path="/registration/registration.jsp"/>
<forward name="alreadyLoggedIn" path="/edit-profile.do"/>
</action>
<!-- ======== CONFIRM REGISTRATION ===== -->
<action attribute="registerForm" name="registerForm" path="/thankyou-
registration" validate="false"
type="com.app.registration.RegisterAction">
<forward name="registerFailure" path="/registration/registration.jsp"/<forward name="successRegistration" path="/registration/thankyou-new-
registration.jsp"/>
</action>