Valuelist使用指南

阅读更多

Valuelist使用指南

 

[ 编辑]

applicationContext-valuelist.xml

                               3           identifier           asc                                       FROM com.ruancu.model.MailTemplate AS vo               /~name: WHERE vo.identifier LIKE {name} ~/               /~sortColumn: ORDER BY vo.[sortColumn] [sortDirection]~/                                        		 
[ 编辑]

system/mailTemplateList.jsp

       
          Total         - Page ( of )          
         
 
[ 编辑]

system/MailTemplateAction.java

   public ActionForward search(ActionMapping mapping, ActionForm form,                               HttpServletRequest request,                               HttpServletResponse response)   throws Exception {       if (log.isDebugEnabled()) {           log.debug("Entering 'search' method");       }              ValueListUtil vlu = new ValueListUtil(getServlet().getServletContext());       Map params = new HashMap();       params.put("name","111%"); //name是在applicationContext-valuelist.xml中定义的              vlu.handleValueList("mailTemplateList",params,request);        
       return mapping.findForward("list");   }


你可能感兴趣的:(Bean,Flash,Hibernate,C,C++)