求助:struts和extssl的设置问题
现在要在用户身份验证的时候,实现ssl通信。
现在ssl通信已经设置成功,可以通过https进行通信,
问题是通过验证之后,后续的叶面还是https通信,
怎样才能只让验证的部分通过https验证,然后跳回简单的http通信,如何设置?
具体如下:
环境: tomcat5.0.28,struts1.1
struts-config.xml的内容如下:
<action-mappings type="org.apache.struts.config.SecureActionConfig">
<action path="/LoginAction" type="admin.gui.login.LoginAction" name="LoginForm" scope="request">
<forward name="success" path="/portal/index.jsp" redirect="true"/>
<forward name="failure" path="/login/relogin.jsp" redirect="true"/>
<set-property property="secure" value="true" />
</action>
</action-mappings>
在forward到success之后,如何让/portal/index.jsp也是在普通的http下?
我能想到的是一种是,
<forward name="success" path="http://localhost'8080/portal/index.jsp" redirect="true"/>
进行跳转,但是一个是路径是绝对路径,还有就是服务器名(比如说localhost)也必须每次更改。
谢谢各位,请给与我建议和帮助!