我正在使用html:form
action = "someAction"
来引用struts-config文件中的操作。我希望将该操作设为https,但显然我无法在someAction
中使用html:form
替换https://webserver/context/abc.do之类的绝对路径。只是想知道我可以设置一个属性或参数来将表单提交到https网址吗?
由于
答案 0 :(得分:0)
你不能用Struts 1.x做类似的事情,你需要使用sslext扩展来做到这一点。这是一个例子:http://www.devarticles.com/c/a/Java/Securing-Struts-Applications/7/