基于infoq介绍的国产框架开发新增,删除,修改,分页,导出体验?xml version1.0 encodingUTF-8?web-a
基于infoq介绍的国产框架开发新增,删除,修改,分页,导出体验
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee"xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"id="WebApp_ID" version="2.5"><display-name>simpleframework</display-name><welcome-file-list><welcome-file>index.html</welcome-file><welcome-file>index.htm</welcome-file><welcome-file>index.jsp</welcome-file><welcome-file>default.html</welcome-file><welcome-file>default.htm</welcome-file><welcome-file>default.jsp</welcome-file></welcome-file-list><session-config><session-timeout>1</session-timeout></session-config><servlet><servlet-name>startup</servlet-name><servlet-class>net.simpleframework.web.SimpleWebApplication</servlet-class><load-on-startup>0</load-on-startup></servlet><filter><filter-name>actionFilter</filter-name><filter-class>net.simpleframework.web.page.PageFilter</filter-class><init-param><param-name>initializerHandle</param-name><param-value>net.simpleframework.example.MyPageInitializer</param-value></init-param></filter><filter-mapping><filter-name>actionFilter</filter-name><url-pattern>*.jsp</url-pattern></filter-mapping>?<listener><listener-class>net.simpleframework.web.page.PageEventAdapter</listener-class></listener>?<error-page><error-code>404</error-code><location>/template/404.jsp</location></error-page></web-app>
文件二,project.xml,拷贝到WEB-INF目录下 (已经有simple工程跳过该步骤)。
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"><bean id="defaultDatasource" value="org.gjt.mm.mysql.Driver" /><property name="url"value="jdbc:mysql://127.0.0.1:3306/simple3?useServerPrepStmts=false&useUnicode=true&characterEncoding=UTF-8" /><property name="username" value="root" /><property name="password" value="root" /><property name="testWhileIdle" value="true" /><property name="timeBetweenEvictionRunsMillis" value="14400000" /></bean>?? <bean id="idOrgInitializer" value="true" /></bean><bean id="idContentInitializer" value="true" /><property name="bbsApplicationHandle" value="net.simpleframework.example.MyBbsHandle" /></bean><bean id="idMyInitializer" value="true" /><property name="homeApplicationHandle" value="net.simpleframework.example.MyHomeApplicationHandle"></property></bean><bean id="idNotificationInitializer" value="true" /></bean><bean id="idApplicationConfig" /><ref local="idOrgInitializer" /><ref local="idContentInitializer" /><ref local="idMyInitializer" /><ref local="idNotificationInitializer" /></list></property>?<property name="serverUrl" value="http://127.0.0.1:8080" /><property name="datePattern" value="yyyy-MM-dd HH:mm" /><property name="tableEntityManagerClass"><value>net.simpleframework.ado.db.cache.MapTableEntityManager</value></property><!-- cache.Map --></bean></beans>?
第三步,编写演示例子数据库脚本(这才是开发的第一步)。
CREATE TABLE `simple_framework_test` (?`id` int(32) default NULL,?`version` varchar(128) default NULL,?`name` varchar(128) default NULL,?`description` varchar(128) default NULL) ;
第四步,编写TestHandle.java(该类实现了新增,修改,删除,该类继承了AbstractAjaxRequestHandle)。
package net.simpleframework.test;?import java.util.HashMap;import java.util.Map;?import javax.servlet.http.HttpServletRequest;import javax.sql.DataSource;?import net.simpleframework.ado.DataObjectManagerFactory;import net.simpleframework.ado.db.ITableEntityManager;import net.simpleframework.ado.db.schema.ExpressionValue;import net.simpleframework.ado.db.schema.Table;import net.simpleframework.ado.id.ID;import net.simpleframework.web.IWebApplication;import net.simpleframework.web.page.IForward;import net.simpleframework.web.page.UrlForward;import net.simpleframework.web.page.component.ComponentParameter;import net.simpleframework.web.page.component.base.ajaxrequest.AbstractAjaxRequestHandle;?public class TestHandle extends AbstractAjaxRequestHandle {?// 新增 本例只是dmeo,并没有做到公用方法抽象与优化public IForward doSave(final ComponentParameter compParameter)throws Exception {final DataSource dataSource = IWebApplication.Instance.getWebApplication().getDataSource();Table table = new Table("simple_framework_test");?ITableEntityManager entityManager = DataObjectManagerFactory.getTableEntityManager(dataSource, table);Map<String, Comparable> insertData = new HashMap<String, Comparable>();final HttpServletRequest request = compParameter.request;// request.getParameterString id = (String) request.getParameter("id2");// 获得修改的idif (id != null) {insertData.put("id", id);insertData.put("version",compParameter.getRequestParameter("version2"));insertData.put("name", compParameter.getRequestParameter("name2"));insertData.put("description",compParameter.getRequestParameter("description2"));entityManager.update(insertData);} else { // 新增insertData.put("id", (Comparable) ID.Utils.newID(entityManager.nextIncValue("id")));insertData.put("version",compParameter.getRequestParameter("version"));insertData.put("name", compParameter.getRequestParameter("name"));insertData.put("description",compParameter.getRequestParameter("description"));entityManager.insert(insertData);}return jsonForward(new JsonCallback() {@Overridepublic void doAction(Map<String, Object> json) throws Exception {json.put("ok", true);}});}?// 删除public IForward doDeleteTest(final ComponentParameter compParameter)throws Exception {final DataSource dataSource = IWebApplication.Instance.getWebApplication().getDataSource();Table table = new Table("simple_framework_test");ITableEntityManager entityManager = DataObjectManagerFactory.getTableEntityManager(dataSource, table);?String id = compParameter.getRequestParameter("testId");entityManager.delete(new ExpressionValue("id=?", new Object[] { id }));?return jsonForward(new JsonCallback() {@Overridepublic void doAction(Map<String, Object> json) throws Exception {json.put("ok", true);}});}}?
第五步,编写TestPagerHandle.java (该类实现了表格列表,导出,分页功能)。
package net.simpleframework.test;
?import java.util.HashMap;import java.util.Map;?import javax.sql.DataSource;?import net.simpleframework.ado.DataObjectManagerFactory;import net.simpleframework.ado.IDataObjectQuery;import net.simpleframework.ado.db.IQueryEntityManager;import net.simpleframework.ado.db.schema.SQLValue;import net.simpleframework.web.IWebApplication;import net.simpleframework.web.page.component.ComponentParameter;import net.simpleframework.web.page.component.ui.pager.AbstractTablePagerData;import net.simpleframework.web.page.component.ui.pager.AbstractTablePagerHandle;import net.simpleframework.web.page.component.ui.pager.TablePagerBean;import net.simpleframework.web.page.component.ui.pager.TablePagerColumn;?public class TestPagerHandle extends AbstractTablePagerHandle {?@Overridepublic Object getBeanProperty(final ComponentParameter compParameter,final String beanProperty) throws Exception {if ("title".equals(beanProperty)) {final StringBuilder sb = new StringBuilder();sb.append("<a style="margin-left: 10px;" onclick="$Actions['").append(compParameter.componentBean.getName()).append("'].exportFile(null, false);">导出</a>");return sb.toString();}return super.getBeanProperty(compParameter, beanProperty);}?@Overridepublic IDataObjectQuery<?> createDataObjectQuery(final ComponentParameter compParameter) throws Exception {?final DataSource dataSource = IWebApplication.Instance.getWebApplication().getDataSource();final IQueryEntityManager queryManager = DataObjectManagerFactory.getQueryEntityManager(dataSource);final IDataObjectQuery<Map<String, Object>> data = queryManager.query(new SQLValue("SELECT * FROM simple_framework_test s"));return data;}// 这个方法对业务数据做相关处理相当的重要@Overridepublic AbstractTablePagerData createTablePagerData(final ComponentParameter compParameter)throws Exception {return new AbstractTablePagerData(compParameter) {@Overrideprotected Map<String, TablePagerColumn> getTablePagerColumns() {return ((TablePagerBean) compParameter.componentBean).getColumns();}?@SuppressWarnings("unchecked")@Overrideprotected Map<Object, Object> getRowData(final Object dataObject) throws Exception {final Map<Object, Object> dataObjectMap = new HashMap<Object, Object>();?final Map map = (Map) dataObject;?// 拼装查看urlfinal StringBuffer name = new StringBuffer(200);?name.append("<a ");name.append("onclick="");name.append("$Actions['viewTestWindow']('view=true&testId="+ map.get("id") + "')");name.append(""");name.append(">");name.append(map.get("name").toString());name.append("</a>");map.put("name",name);? ? ? ?dataObjectMap.putAll((Map<? extends Object, ? extends Object>) map);?dataObjectMap.put("action","<a onclick="$Actions['DeleteTest']('testId="+ map.get("id") + "');$Actions['TestListPager'].refresh();">删除</a> <a onclick="$Actions['addOrUpdateTestWindow']('testId="+ map.get("id") + "');">修改</a>");//dataObjectMap.put("action","<a class="TestPagerRowStyle down_menu_image"></a>"); ?// 这是数据菜单绑定相关操作按钮return dataObjectMap;}?@Overrideprotected Map<Object, Object> getRowAttributes(final Object dataObject) throws Exception { final Map<Object, Object> attributes = super.getRowAttributes(dataObject);?attributes.put(ROW_ID,((Map) dataObject).get("id") ); // 如果不封装bean,需要特殊处理//attributes.put("name",((Map) dataObject).get("name") );final Map<Object, Object> attributes2 = getTableRowAttributes(dataObject);if (attributes2 != null) {attributes.putAll(attributes2);}return attributes;}};?}}
第六步,编写TestModify.java (修改实现)。
package net.simpleframework.test;
?import java.util.List;import java.util.Map;?import javax.sql.DataSource;?import net.simpleframework.ado.DataObjectManagerFactory;import net.simpleframework.ado.db.ITableEntityManager;import net.simpleframework.ado.db.schema.Table;import net.simpleframework.ado.db.schema.UniqueValue;import net.simpleframework.web.IWebApplication;import net.simpleframework.web.page.DefaultPageHandle;import net.simpleframework.web.page.PageParameter;?public class TestModify extends DefaultPageHandle {?@Overridepublic void pageLoad(final PageParameter pageParameter, final Map<String, Object> dataBinding,final List<String> visibleToggleSelector, final List<String> readonlySelector,final List<String> disabledSelector) throws Exception {?String id = pageParameter.request.getParameter("testId"); // 获得需要修改String view = pageParameter.request.getParameter("view"); // 页面是否只读?? ? ? ?final DataSource dataSource = IWebApplication.Instance.getWebApplication().getDataSource();Table table = new Table("simple_framework_test");? ITableEntityManager entityManager = DataObjectManagerFactory.getTableEntityManager(dataSource,table); ?? ?? ?// 根据id 查询需要修改的对象? Map date = entityManager.queryForMap(new ?UniqueValue(id));// simple 提供的数据绑定,在jsp页面自动填充字段dataBinding.put("id2", id);dataBinding.put("name2", date.get("name"));dataBinding.put("description2", date.get("description"));dataBinding.put("version2", date.get("version"));?? ?if(view!=null) {readonlySelector.add("#ajaxTestParams input"); // simple 控制 input 页面显示只读}}}?
<table style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #014378; line-height: 15px; width: 696px;" border="1" cellspacing="0" cellpadding="0" width="95%"><tbody style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 15px;"><tr style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 15px;">
<td style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 15px; height: 485px;">
<p style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px; margin-left: 2.75pt;" align="left">package net.simpleframework.test;</p>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">?</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">import java.util.List;</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">import java.util.Map;</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">?</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">import javax.sql.DataSource;</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">?</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">import net.simpleframework.ado.DataObjectManagerFactory;</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">import net.simpleframework.ado.db.ITableEntityManager;</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">import net.simpleframework.ado.db.schema.Table;</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">import net.simpleframework.ado.db.schema.UniqueValue;</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">import net.simpleframework.web.IWebApplication;</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">import net.simpleframework.web.page.DefaultPageHandle;</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">import net.simpleframework.web.page.PageParameter;</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">?</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">public class TestModify extends DefaultPageHandle {</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">?</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">@Override</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">public void pageLoad(final PageParameter pageParameter, final Map<String, Object> dataBinding,</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">final List<String> visibleToggleSelector, final List<String> readonlySelector,</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">final List<String> disabledSelector) throws Exception {</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">?</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">String id = pageParameter.request.getParameter("testId"); // 获得需要修改</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">String view = pageParameter.request.getParameter("view"); // 页面是否只读</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">?? ? ? ?</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">final DataSource dataSource = IWebApplication.Instance.getWebApplication().getDataSource();</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">Table table = new Table("simple_framework_test");</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">?<span style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 15px; white-space: pre;"> </span>ITableEntityManager entityManager = DataObjectManagerFactory.getTableEntityManager(dataSource,table); ?</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">?<span style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 15px; white-space: pre;"> </span>?? ?// 根据id 查询需要修改的对象</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">?<span style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 15px; white-space: pre;"> </span>Map date = entityManager.queryForMap(new ?UniqueValue(id));</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">// simple 提供的数据绑定,在jsp页面自动填充字段</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">dataBinding.put("id2", id);</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">dataBinding.put("name2", date.get("name"));</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">dataBinding.put("description2", date.get("description"));</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">dataBinding.put("version2", date.get("version"));</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">?</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">? ?if(view!=null) {</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">readonlySelector.add("#ajaxTestParams input"); // simple 控制 input 页面显示只读</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">}</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">}</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">}</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">?</div>
</td>
</tr></tbody></table>
<p style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #014378; line-height: 16px;" align="left">第七步,编写test.jsp 与 test.xml (大家可以看下jsp 文件,都是标准的html元素,xml文件中定义组件元信息,页面通过CSS选择器和组件绑定,所有simple不需要标签库)。</p>
</div>
</div>
<table style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #014378; line-height: 15px; width: 696px;" border="1" cellspacing="0" cellpadding="0" width="95%"><tbody style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 15px;"><tr style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 15px;">
<td style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 15px; height: 485px;">
<p style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px; margin-left: 2.75pt;" align="left"><%@ page language="java" contentType="text/html; charset=utf-8"<span style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 15px; white-space: pre;"> </span>pageEncoding="utf-8"%></p>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">?</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><table width="550" cellpadding=6 cellspacing=0 border=1 align="center"> ? ??</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">?? ?<tr></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">???<span style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 15px; white-space: pre;"> </span>?? <td> <h1 align="center">基于SimpleFramework 开发新增,删除,修改,查询</h1></td></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"></tr></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"></table></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">?</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><table width="550" cellpadding=6 cellspacing=0 border=1 align="center" id="ajaxTestParams"></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><tr></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">? <td colspan="2">产品名称:<input type="text" id="name" name="name" /></td></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"></tr></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><tr></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><td colspan="2">产品描述:<input type="text" id="description" name="description" /></td></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"></tr></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><tr></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><td colspan="2">产品版本:<input type="text" id="version" name="version" /></td></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"></tr></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><tr></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><td><input type="button" name="Add" value="Add" onclick="$Actions['TestSave']();"></td></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">?</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><td>查询<input type="text" id="version" name="version" ?/> </td>?</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"></tr></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><tr></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">? <td id="testTablePager" ?colspan="2"></td></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">?? ?</tr></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"></table></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">?</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><div id="ajaxTestParams1"></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"></div></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">------------------------------------------------下面是 ? test.xml--------------------------------------------</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">?</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><?xml version="1.0" encoding="UTF-8"?></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">xsi:noNamespaceSchemaLocation="/xsd/default/simple.xsd"></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><scriptEval>first</scriptEval></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><components></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><!-- 组件组合使用 本例使用 ajaxRequest,tablePager,menu 组件的配合工作 --> ? ?</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><ajaxRequest name="TestSave" handleformSelector="#ajaxTestParams"></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><jsCompleteCallback></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">if (json["ok"])?</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">alert("ok");</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">$Actions['TestListPager'].refresh(); <!-- 刷新表格,看到新增数据 ?--> ?</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">? ?</jsCompleteCallback></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"></ajaxRequest></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><ajaxRequest name="DeleteTest"</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">handlecontainerId="testTablePager" ?</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">handleshowCheckbox="true"></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><!-- pagerBarLayout="none" ?showCheckbox="true" pagerBarLayout="bottom"--></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><columns></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><column columnName="name" columnText="产品名称" separator="true"</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">style="text-align: center;width: 120px;" headerStyle="width: 120px;" /></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><column columnName="description" columnText="产品描述" separator="true"</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">style="text-align: center;width: 120px;" headerStyle="width: 120px;" /></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><column columnName="version" columnText="产品版本" separator="true"</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">style="text-align: center;width: 120px;" headerStyle="width: 120px;" /></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><!-- 配置操作菜单 --></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><column columnName="action" sort="false" separator="true" ?</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">style="text-align: center; width: 64px;" headerStyle="width: 64px;"?</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">columnText='操作' /></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"></columns></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">?? ?<span style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 15px; white-space: pre;"> </span></tablePager></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">?</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><!-- ? urlForward 是简单写法 ?--></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><ajaxRequest name="addOrUpdateTestAjaxRequest"></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><urlForward>/modify.jsp</urlForward></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"></ajaxRequest></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">?</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><window name="addOrUpdateTestWindow"</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">contentRef="addOrUpdateTestAjaxRequest" title="测试修改" minWidth="550"</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">minHeight="380" resizable="true" destroyOnClose="true"></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"></window></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">?</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><ajaxRequest name="viewTestAjaxRequest"></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><urlForward>/view.jsp</urlForward></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"></ajaxRequest></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">?</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><window name="viewTestWindow"</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">contentRef="viewTestAjaxRequest" title="查看" minWidth="550"</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">minHeight="380" resizable="true" destroyOnClose="true"></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"></window></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">?</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"></components></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"></page></div>
</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">?</div>
</td>
</tr></tbody></table>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">
<div style="font-size: 12px; font-family: verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px; background-color: #ffffff;">
<p style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #014378; line-height: 16px;" align="left">第八步,编写modify.jsp 与?modify.xml</p>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">
<div style="font-size: 12px; font-family: verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px; background-color: #ffffff;">
<table style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #014378; line-height: 15px; width: 696px;" border="1" cellspacing="0" cellpadding="0" width="95%"><tbody style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 15px;"><tr style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 15px;">
<td style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 15px; height: 485px;">
<p style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px; margin-left: 2.75pt;" align="left"><%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%></p>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><table width="550" cellpadding=6 cellspacing=0 border=1 align="center"> ? ??</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">?? ?<tr></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">???<span style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 15px; white-space: pre;"> </span>?? <td> <h1 align="center">基于SimpleFramework 开发修改</h1></td></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"></tr></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"></table></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><table width="550" cellpadding=6 cellspacing=0 border=1 align="center" id="ajaxTestParams"></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">?? ?<!-- 对应于TestModify类的 ?pageLoad 方法中 dataBinding数据显示--></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">?<span style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 15px; white-space: pre;"> </span><input type="hidden" id="id2" name="id2"/>?</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><tr></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">? <td>产品名称:<input type="text" id="name2" name="name2" /></td></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"></tr></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><tr></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><td>产品描述:<input type="text" id="description2" name="description2" /></td></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"></tr></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><tr></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><td>产品版本:<input type="text" id="version2" name="version2" /></td></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"></tr></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><tr></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><td><input type="button" name="Save" value="Save" onclick="$Actions['TestSave']();$Actions['addOrUpdateTestWindow'].close();"></td></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"></tr></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"></table></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">?</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">----------下面是 modify.xml--------------</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">?</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">?</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><?xml version="1.0" encoding="UTF-8"?></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">xsi:noNamespaceSchemaLocation="/xsd/default/simple.xsd"></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><scriptEval>first</scriptEval></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><!-- 定义页面处理类 ,handleClass 页面处理类 --></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><handleClass></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">? net.simpleframework.test.TestModify</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"></handleClass></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"></page></div>
</div>
</td>
</tr></tbody></table>
</div>
</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">
<div style="font-size: 12px; font-family: verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px; background-color: #ffffff;">
<p style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #014378; line-height: 16px;" align="left">第九步,编写view.jsp 与?view.xml</p>
<table style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #014378; line-height: 15px; width: 696px;" border="1" cellspacing="0" cellpadding="0" width="95%"><tbody style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 15px;"><tr style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 15px;">
<td style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 15px; height: 485px;">
<p style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px; margin-left: 2.75pt;" align="left"><%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%></p>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><table width="550" cellpadding=6 cellspacing=0 border=1 align="center"> ? ??</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">?? ?<tr></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">???<span style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 15px; white-space: pre;"> </span>?? <td> <h1 align="center">基于SimpleFramework 开发修改</h1></td></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"></tr></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"></table></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><table width="550" cellpadding=6 cellspacing=0 border=1 align="center" id="ajaxTestParams"></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">??</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><tr></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">? <td>产品名称:<input type="text" id="name2" name="name2" /></td></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"></tr></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><tr></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><td>产品描述:<input type="text" id="description2" name="description2" /></td></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"></tr></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><tr></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><td>产品版本:<input type="text" id="version2" name="version2" /></td></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"></tr></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"></table></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">?</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">----------------下面是 ?view.xml --------------------</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><?xml version="1.0" encoding="UTF-8"?></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">xsi:noNamespaceSchemaLocation="/xsd/default/simple.xsd"></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><scriptEval>first</scriptEval></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><!-- 定义页面处理类 --></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><handleClass></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">? net.simpleframework.test.TestModify</div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"></handleClass></div>
<div style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"></page></div>
</div>
</td>
</tr></tbody></table>
<p style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">?</p>
<p style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">下图是 工程的文件结构图:</p>
<p style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><img style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 15px;" src="http://simpleframework.net/%24resource/default/filePager/file-cache/2563.png" alt="基于infoq引见的国产框架开发新增,删除,修改,分页,导出体验"></p>
<p style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">?</p>
<p style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">运行效果如下:</p>
<p style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">?</p>
</div>
</div>
<p style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><img style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 15px;" src="http://simpleframework.net/%24resource/default/filePager/file-cache/2570.png" alt="基于infoq引见的国产框架开发新增,删除,修改,分页,导出体验"></p>
<p style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">附件:<span style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #ff0000; line-height: 15px;"><span style="font-size: 16px; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 20px;"><span style="">?</span></span></span><span style="font-size: 16px; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 20px;"><span style=""><a style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #014060; line-height: 15px; text-decoration: none;" href="http://simpleframework.googlecode.com/files/HelloWorld_Demo.zip"><span style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #ff0000; line-height: 15px;">SimpleFramework Helloword 工程下载</span></a></span></span></p>
<p style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;"><span style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #ff0000; line-height: 15px;"><span style="font-size: 16px; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 20px;"><span style=""><a style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #014060; line-height: 15px; text-decoration: none;" href="http://simpleframework.googlecode.com/files/simple_view_modify.rar">?本例代码下载</a></span></span></span></p>
<p style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">注: 需要手工把本例代码拷贝到 simpleFramework Helloword 工程中,如果没有描述清楚的地方,请大家<a style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #014060; line-height: 15px; text-decoration: none;" href="http://simpleframework.net/simple/bbs/m.jsp">论坛</a>讨论。</p>
<p style="font-size: 9pt; font-family: Verdana, 'Microsoft YaHei', Arial, Tahoma, sans-serif; color: #2f3a30; line-height: 16px;">?</p>
</div>
</div>
</span></p> 3 楼 fangbinzeyi 2010-12-12 注释写的不太清楚,下载一个看看。 4 楼 Javakeith 2010-12-13 前面还好,后面的格式全乱了?怎么回事? 5 楼 chenkx 2010-12-13 ??排版怎么回事 6 楼 hellostory 2010-12-13 javaeye的排版这么奇怪?莫非现在在升级? 7 楼 pochonlee 2010-12-13 chrome 下的样式,可以用恐怖来形容! 8 楼 Java_xiaohao 2010-12-13 我晕,这什么版面 咋看啊 9 楼 iehyou 2010-12-13 晕 我也是chrome 拌面全乱掉了 没法看 10 楼 yuyue007 2010-12-13 pochonlee 写道chrome 下的样式,可以用恐怖来形容!
同为chrome。。。表示压力很大···