public class VipdataAction extends LookupDispatchAction{
protected Map getKeyMethodMap()
{
Map map=new HashMap();
map.put("button.add","addexecute");
map.put("button.delete","deleteexecute");
map.put("button.update","updateexecute");
return map;
}ApplicationResources里输入
button.add=ADD
button.delete=DELETE
button.update=UPDATE
程序正常运行,
当我改为中文时
button.add=\u6dfb \u52a0
button.delete=\u5220 \u9664
button.update=\u4fee \u6539
程序无法运行了,报如下错误
type Status report
message Request[/Addvipdata] does not contain handler parameter named method
description The request sent by the client was syntactically incorrect (Request[/Addvipdata] does not contain handler parameter named method).
请问各位高手如何解决?
protected Map getKeyMethodMap()
{
Map map=new HashMap();
map.put("button.add","addexecute");
map.put("button.delete","deleteexecute");
map.put("button.update","updateexecute");
return map;
}ApplicationResources里输入
button.add=ADD
button.delete=DELETE
button.update=UPDATE
程序正常运行,
当我改为中文时
button.add=\u6dfb \u52a0
button.delete=\u5220 \u9664
button.update=\u4fee \u6539
程序无法运行了,报如下错误
type Status report
message Request[/Addvipdata] does not contain handler parameter named method
description The request sent by the client was syntactically incorrect (Request[/Addvipdata] does not contain handler parameter named method).
请问各位高手如何解决?
根据用户点击的某个按钮,然后提交给不同的ACITON.例如 :
点击了 A 按钮, 则 window.location = "/YourWebAppPath/YourAciton.do?op=mehtodA";点击了 B 按钮, 则 window.location = "/YourWebAppPath/YourAciton.do?op=mehtodB";