Struts中的https操作

时间:2010-08-05 08:19:43

标签: java struts struts-1

我正在使用html:form action = "someAction"来引用struts-config文件中的操作。我希望将该操作设为https,但显然我无法在someAction中使用html:form替换https://webserver/context/abc.do之类的绝对路径。只是想知道我可以设置一个属性或参数来将表单提交到https网址吗?

由于

1 个答案:

答案 0 :(得分:0)

你不能用Struts 1.x做类似的事情,你需要使用sslext扩展来做到这一点。这是一个例子:http://www.devarticles.com/c/a/Java/Securing-Struts-Applications/7/