0
如何在struts-config.xml中为动作设置默认参数值?如何在struts-config.xml中为动作设置默认参数值?
如:
if action path="stamp" and parameter="language" ->
用户可以打
url <context-path>/stamp.do
其中在一些使用默认值,例如 'en' 代表语言参数。
如何在struts-config.xml中为动作设置默认参数值?如何在struts-config.xml中为动作设置默认参数值?
如:
if action path="stamp" and parameter="language" ->
用户可以打
url <context-path>/stamp.do
其中在一些使用默认值,例如 'en' 代表语言参数。
没有这样做。做一些快速研究,你可以通过使用动态行为表单来完成。您可以在表单bean中指定表单的属性及其初始值,然后将其用作常规表单。一个例子是在这里找到:
building controller components
在4.3.1节