Chinaunix首页 | 论坛 | 博客
  • 博客访问: 820157
  • 博文数量: 780
  • 博客积分: 7000
  • 博客等级: 少将
  • 技术积分: 5010
  • 用 户 组: 普通用户
  • 注册时间: 2008-09-12 09:11
文章分类

全部博文(780)

文章存档

2011年(1)

2008年(779)

我的朋友
最近访客

分类:

2008-09-12 09:15:12


  
  正如软件有他的皮肤一样,我们的系统也有自己的皮肤,如果我们的应用系统可以让不同的客户选择自己喜欢的风格,那么我们将会感到无比的开心,难道不是吗?
  可以更加容易的使用标记库,更轻松的开发出系统风格一致的系统
  Struts基于mvc2的frameWork广泛的应用的j2ee开发领域中,
  · configure struts for the webapp
  · configure the struts-layout treeview and sort action (just copy the corresponding lines of the struts-config file of the example application)
  · copy the struts-layout.jar file into the WEB-INF/lib directory.
  · declare the struts-layout tld file in the web.xml file
  · copy the menu.jar file from the struts-layout example application into the WEB-INF/lib directory.
  · put a version of the common BeanUtils library in the WEB-INF/lib directory if using struts 1.0
  · copy the struts-layout.tld file into the WEB-INF directory.
  · copy the files in the config and images directory of the struts-layout example application in your new webapp.
  · if forward to Tiles definition will be used with sorting or paging on the server, the struts-layout request processor
  
  example:
  ...
  
  
  
  
  
  
  
  
  

  
  
  
  
  
  

  

  ...
  
  ...
  
  
  
  
  
  
  
  

  
  
  
  
  

  

  

  ...
  ...
  
  
  
  
  
  
  
  

  
  
  
  
  

  

  
  
  
  
  
  
  
  
  

  

  ...
  
  
  jsp page:
  [
  
  <%@ page language="java" %>
  <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
  <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
  
  
  
  <bean:message key="logon.title"/>
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  

  
  

  
  

  
  

    redisplay="false"/>
  

  
  

  
  

  
  

  
  
  

  
  ]
  
  layout page:
  [
  <%@ page language="java" %>
  <%@ taglib uri="/WEB-INF/struts-layout.tld" prefix="layout" %>
  <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
  
  
  
  
  
  
  
  
  

  

  

  
  
  ,使用layout可以更加容易的开发!
  
【责编:admin】

--------------------next---------------------

阅读(261) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~