struts (四) path DMI



1、path 常使用绝对路径



path = request.getContextPath();


basepath = request.getscheme+"://"+request.getServerName+":"+request.getServerPort+path



<base href="<%=basePath%>"/>



2、动态方法



test.action!add



add的返回值是String





posted on 2015-07-16 23:57  _故乡的原风景  阅读(109)  评论(0编辑  收藏  举报