struts (四) path DMI

来源:互联网 发布:遗传算法基本思想 编辑:程序博客网 时间:2024/05/16 08:02



1、path 常使用绝对路径



path = request.getContextPath();


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



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



2、动态方法



test.action!add



add的返回值是String





0 0
原创粉丝点击