本帖最后由 jimmykingl 于 2013-02-06 09:53:48 编辑

解决方案 »

  1.   

    request.setAttribute()不就可以放值吗
      

  2.   


    junit 不能那么用 我现在想往 request放session 这session里有N个数值
      

  3.   

    以解决这问题了 哈哈 
    this.getSession().setAttribute("brandCode", "TEST1");
    from里有from的
    ReferStrgSituationForm from  = new ReferStrgSituationForm(); from.getSearchInfo().setBillFrom("200001");
    from.getSearchInfo().setBillTo("201912");
    from.getSearchInfo().setClaimCd("1000000001");
    from.setButtonNm("search");
    // addRequestParameterMap("searchInfo", a);
    // addRequestParameter("claimCd", "1000000001");
    // addRequestParameter("billFrom", "200001");
    // addRequestParameter("billTo", "201912");
    setActionForm(from);