1.<html:redio>标签怎么默认选中,就象html里加个checked一样? 
2.怎么把ApplicationResources.properties里的内容显示到bean里?就象<bean:message>一样

解决方案 »

  1.   

    楼上 您说的哪个用defaultValue?具体怎么用啊?
      

  2.   

    第二个问题:
    new ActionMessage("ApplicationResources.properties内容");
    如果是默认的文件不用配置.
      

  3.   

    不是下面每个选项有个value值吗?你想指定那个默认,就把defaultValue设置成对应的value值就可以了!
      

  4.   

    YiYaYo兄 
    比如ApplicationResources.properties里有
    logon.username=User Name
    怎么用
    System.out.println(new ActionMessage("logon.username"));
    打印出来的是logon.username[]
    怎么能打印出来后面的User Name啊?
      

  5.   

    System.out.println
    不能用这个打印
      

  6.   


       只能是把logon.username的值传回JSP页面上,在类里不能打印出来的,传回到JSP页面上的是"User Name"
      

  7.   


    我主要是想在bean里用不传到jsp里
    我用这个方法实现了
    ResourceBundle bundle = ResourceBundle.getBundle("ApplicationResources");
    String message = bundle.getString("message.logon");
    System.out.println(message);但感觉应该有简单点的