开发者

https action in Struts

开发者 https://www.devze.com 2023-01-10 13:20 出处:网络
I am using html:form action = \"someAction\" to refer to an action in struts-config file. I wanted to make that action as https but apparently I cannot replace an absolute path like https://webserver/

I am using html:form action = "someAction" to refer to an action in struts-config file. I wanted to make that action as https but apparently I cannot replace an absolute path like https://webserver/context/abc.do with someAction in html:form. Just wondering is there a property or parameter I can 开发者_如何学运维set to make that form submission to an https url?

Thanks


You can't do something like that with Struts 1.x, you will need to use sslext extension to do so. Here's an example: http://www.devarticles.com/c/a/Java/Securing-Struts-Applications/7/

0

精彩评论

暂无评论...
验证码 换一张
取 消