当前位置: 代码迷 >> Java Web开发 >> webwork的配置文件web.xml配置有关问题
  详细解决方案

webwork的配置文件web.xml配置有关问题

热度:85   发布时间:2016-04-17 15:57:06.0
webwork的配置文件web.xml配置问题
web.xml应该如何配置才能使一个action可以可以根据不同的返回值
弹出或者当页打开?
例如:

<action   name= "MainSeartch "   class= "MainSeartchAction ">
//弹出新的页面
                <result   name= "open "   type= "freemarker "> page.ftl </result>

//当页打开
                <result   name= "location "   type= "freemarker "> openpage.ftl </result>
</action>

如果用jsp虽然能够实现但是会多出一个多余的页面和冗余的action


------解决方案--------------------
up
  相关解决方案