随笔分类 - struts2
摘要:Struts21,<s:hidden>保存本页面其它控件的值(只能是字符串)。<s:textfield name="loginInfo.loginId" label="Employee ID"labelposition="left" /><s:hidden name="selectedPerson.personId" value="%{loginInfo.loginId}"/>而如果要保存其它类型数据时会出错,如<s:hidden name="
阅读全文
摘要:在xhtml theme中,组件都会被自动生成<tr><td>,结合form自动生成的<table>,构成表格。在css_xhtml theme中,自动生成的是<div>.以下讨论的都是基于css_xhtml theme。在ajax theme中,也自动生成<tr><td>,原因:<#if parameters.label?if_exists != ""><#include "/${parameters.templateDir}/xhtml/controlheader.ftl
阅读全文
摘要:在本action的java文档中定义了属性:private Customer customer = new Customer();并且在本action的java文档中有相应的setter和getter方法: public Customer getCustomer() { return customer; } public void setCustomer(Customer customer) { this.customer = customer; }同时,需要Customer类有无参数的构造器。则在该action中获得的customer属性可以直接在其result的jsp中使用:<s:p
阅读全文
摘要:request.getContextPath() /Aasmodrequest.getScheme() httprequest.getServerName() localhostrequest.getServerPort() 8080request.getRemoteAddr() 127.0.0.1request.getServletPath() /ttrequest.getRemoteUser() nullrequest.getRequestURI() /Aasmod/tt
阅读全文
浙公网安备 33010602011771号