洛丽塔
zhou_wu · 共 102 篇文章
利用stucts标签自动读显示值
<html:text property="platformPaymentProviderTO.paymentDesc"></html:text> <html:select property="platformPaymentTO.paymentProviderId"> <html:options collection="paymentServicesList" property="paymentId" labelProperty="paymentDesc" /> </html:select>
2010-10-16 17:20 · stucts1 · 评论(0)
stucts后台如何拿前台传过来的参数
<a href='editPayment.do?paymentId="5"/> String svcPaymentId = ((StrutsCommandContext)input).getRequest().getParameter("paymentId"); 或者 strust配置文件里配置paymentId,然后input.get("paymentId");
2010-10-15 09:00 · stucts1 · 评论(0)
sructs1中select取值(html和stucts1标签)
下两是用stuct1标签库和直接html写的从后台读出下拉框的值 <html:select property="platformPaymentTO.paymentProviderId" onchange="initCreatPayment();"><html:options collection="paymentServicesList" property="paymentIdlabelProperty="paymentDesc" /> </html:select> <select property="platformPaymentTO.paymentProviderId""> <c:for…
2010-10-14 16:45 · stucts1 · 评论(0)
juqery操作dom元素
一、添加节点 $(selector).append() 向selector选择的元素的里面插入参数参数所指定的dom元素,插入的位置在最后面。参数可以是直接的HTML字符串,也可以是由$()函数创建的DOM元素 如:$(selector).append(“<b>你好</b>”); 或 $dom=$(“<b>你好</b>”); $(selector).append($dom); $(HTML).appendTo(selector) 向selector选择的元素里面插入$(HTML)创建的DOM元素,插入的位置在最后面 $(selector).prepend() 向selector选择的元素的里…
2010-10-12 16:52 · jquery学习 · 评论(0)
主键、外键的区别
汗!今天做练习的时候发现自己连主键、外键的区别都忘了,哎 主键:这张表的唯一标识符 外键:是另外一个张表的主键,是引入过来的
2010-10-12 16:08 · 数据库 · 评论(0)
codeType的用法
关于I.Frame的用法 <codeLookup:collection id="pay_svc_list" codeType="pay_svc" activeOnly="true" noCache="true" /> <html:select property="platformPaymentTO.paymentId"> <html:options collection="pay_svc_list" property="codeId" labelProperty="codeDesc"/> </html:select> select中platformPaymentTO是stucts-confi…
2010-10-12 13:30 · I.Frame · 评论(0)
Unterminated <bean:message tag
javax.servlet.ServletException: org.apache.jasper.JasperException: /jsp/platformpayment/createPayment.jsp(118,36) Unterminated <bean:message tag 错误原因:<bean:message key="label.name "" /> 多了个双引号引起的
2010-10-12 10:54 · 新手java出现的问题 · 评论(0)
sql报错
Exception when executing command: org.springframework.jdbc.UncategorizedSQLException: Failed performing 'map-sql' operation (id=/platformPayment/getPaymentInputinput={}); uncategorized SQLException for SQL ; SQL state ; error code ; null; nested exception is java.sql.SQLException 解答:已经执行了sql语句,说明是s…
2010-10-12 10:42 · 新手java出现的问题 · 评论(0)
SQL之左连接、右连接和全连接(转载)
內连接仅选出两张表中互相匹配的记录.因此,这会导致有时我们需要的记录没有包含进来。 为更好的理解这个概念,我们介绍两个表作演示。苏格兰议会中的政党表(party)和议员表(msp)。 party(Code,Name,Leader) Code: 政党代码 Name: 政党名称 Leader: 政党领袖 msp(Name,Party,Constituency) Name: 议员名 Party: 议员所在政党代码 Constituency: 选区 在介绍左连接、右连接和全连接前,有一个数据库中重要的概念要介绍一下,即空值(NULL)。 有时表中,更确切的说是某些字段值,可能会出现空值, 这是因为这…
2010-10-11 10:59 · sql · 评论(0)
You must specify the value attribute or nested tag
问题:18:45:28,477 ERROR ] Servlet.service() for servlet jsp threw exception javax.servlet.jsp.JspException: You must specify the value attribute or nested tag content at org.apache.struts.taglib.html.MultiboxTag.prepareValue(MultiboxTag.java:195) at org.apache.struts.taglib.html.MultiboxTag.doEndTag(…
2010-10-09 18:46 · 新手java出现的问题 · 评论(0)
Struts 中 Action的配置属性及其含义(转)
attribute: 这个属性用来指定ActionForm保存到指定上下文时所使用的属性名。如果不指定attribute属性的值,将使用name属性的值作为保存时的属性名。也就是说,attribute属性的默认值就是name属性的值。==================================================================== className: 指定自定义的配置对象。这个配置对象必须是ActionMapping的子类。如果不对这个属性进行指定,那么将使用默认值org.apache.struts.action.ActionMapping。通过自定义…
2010-10-08 15:22 · stucts2 · 评论(0)
java.lang.IllegalArgumentException: Path .platformPayment.createPayment does not
问题:java.lang.IllegalArgumentException: Path .platformPayment.createPayment does not start with a "/" character 解决:我配置的新的stucts-new.xml在stucts-default.xml中也要添加
2010-10-08 12:04 · 新手java出现的问题 · 评论(0)
页面上添加了<html:multibox property="deleteSelections">的错误
问题:页面上多了<html:multibox property="deleteSelections">,报如下错误: javax.servlet.ServletException: org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot find bean under name org.apache.struts.taglib.html.BEAN 解答:在structs里要配置property的form-bean
2010-10-07 14:07 · 新手java出现的问题 · 评论(0)
[JBossManagedConnectionPool] Throwable while attempting to get a new connection:
问题: Throwable while attempting to get a new connection: null 解答:\jboss-4.2.2\server\default\lib中缺少mysql-connector-java-3.1.12-bin.jar驱动
2010-10-07 09:43 · 新手java出现的问题 · 评论(1)
编译好的maven项目为什么在jboss下跑不了,出现404错误
问题:编译好的maven项目为什么在jboss下跑不了,出现404错误 解答:检查web.xml中 index.jsp 我是因为这里没有index.jsp,呵呵,菜鸟问题,前进
2010-10-07 09:34 · 新手java出现的问题 · 评论(0)