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).
请问各位高手如何解决?

解决方案 »

  1.   

    LookupDispatchAction 对中文的支持不好,用DispatchAction或者看看其他的文章吧,记得原来有人针对这个问题有个方法。
      

  2.   

    这个不支持中文的 以前我做项目也遇到过 后来换成用JAVASCRIPT解决的
      

  3.   

    是的,我个人建议你使用JAVASCRIPT  解决.
    根据用户点击的某个按钮,然后提交给不同的ACITON.例如 :
    点击了 A 按钮, 则 window.location = "/YourWebAppPath/YourAciton.do?op=mehtodA";点击了 B 按钮, 则 window.location = "/YourWebAppPath/YourAciton.do?op=mehtodB";