struts入门day02

一、全局结果页面配置

 
          <global-results>
              <result name="success">/book.jsp</result>
          </global-results>

  如果既配置了全局也配置了局部,以局部为准。

 

在action中操作三个域对象:servletContext用的较少。

 

 

  如在同一个action中,不能同时使用属性封装和模型驱动封装,如果都用了,只会modeldriver会得到值。

 

  第三步: username:<input type="text" name="user.username"></br>

 

 

posted on 2018-03-10 17:32  投笔从码  阅读(82)  评论(0)    收藏  举报

导航