Topic: 帮帮忙 (.JspException: No getter method for property ...) |
Print this page |
1.帮帮忙 (.JspException: No getter method for property ...) | Copy to clipboard |
Posted by: kingmain Posted on: 2004-09-23 11:25 高手大哥们帮帮忙呀!!急呀!!!【在线等】 我用得是struts 1.1 我在ACTION中有以下代码 NchallUserAdvancePreActionForm nchallUserAdvancePreActionForm = (NchallUserAdvancePreActionForm) actionForm; NchallUserAdvanceModel nchallUserAdvanceModel; try { //NchallUserAdvanceDb nchallUserAdvanceDb = new NchallUserAdvanceDb(ConnectionFactory.getConnection("nchall")); NchallUserAdvanceDb nchallUserAdvanceDb = new NchallUserAdvanceDb(); nchallUserAdvanceDb.INSERT_PRE(nchallUserAdvancePreActionForm.getNchallUserAdvanceModel()); }catch(Exception e) { e.printStackTrace(); } System.out.println("***************"+nchallUserAdvancePreActionForm.getMerchantID()); System.out.println("OOOOOOOOOOOOOO"+nchallUserAdvancePreActionForm.getFullNO()); httpServletRequest.setAttribute("nchallUserAdvanceActionForm",nchallUserAdvancePreActionForm.getNchallUserAdvanceModel()); httpServletRequest.setAttribute("fullNo",nchallUserAdvancePreActionForm.getFullNO()); httpServletRequest.setAttribute("merchantID",nchallUserAdvancePreActionForm.getMerchantID()); return (actionMapping.findForward("UserAdvancePre")); 我要在另外一个jsp里面(也就是actionMapping.findForward到得页面)里面得到值,请问应该怎么才能得到,我得jsp是这么写的 <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*"%> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <jsp:useBean id="nchallUserAdvanceActionForm" scope="request" class="com.sinopays.hallncfullncb.NchallUserAdvanceActionForm" /> <html:html xhtml="true" locale="true"> <head> <% // Object nch=request.getAttribute("nchallUserAdvanceActionForm"); // nchallUserAdvanceActionForm=(com.sinopays.hallncfullncb.NchallUserAdvanceActionForm)nch; // out.println("in jsp"+nchallUserAdvanceActionForm.getFullNo()); %> <html:base/> </head> <body> <html:form action="nchallUserAdvanceAction.do" method="post"> <table width="200" border="1"> dfgdsfgdfg <bean:write name="nchallUserAdvanceActionForm" property="nchallUserAdvanceActionForm.fullNo"/> </table> </html:form> </body> </html:html> 执行完后报以下错误 javax.servlet.jsp.JspException: No getter method for property nchallUserAdvanceActionForm.fullNo of bean nchallUserAdvanceActionForm |
2.Re:高手大哥们帮帮忙呀!!急呀!!!【在线等】 [Re: kingmain] | Copy to clipboard |
Posted by: spi_cn Posted on: 2004-09-23 12:27 试一下将Jsp中的nchallUserAdvanceActionForm.fullNo改为fullNo |
3.Re:高手大哥们帮帮忙呀!!急呀!!!【在线等】 [Re: kingmain] | Copy to clipboard |
Posted by: kingmain Posted on: 2004-09-23 15:51 老大这样不行呀 |
4.Re:高手大哥们帮帮忙呀!!急呀!!!【在线等】 [Re: kingmain] | Copy to clipboard |
Posted by: love_java Posted on: 2004-09-23 17:03 你的nchallUserAdvanceActionForm里面没有getFullNo()方法! |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |