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