Java开发网 |
注册 |
登录 |
帮助 |
搜索 |
排行榜 |
发帖统计
|
您没有登录 |
» Java开发网 » Architecture & Framework
» Struts
打印话题 寄给朋友 订阅主题 |
作者 | 帮帮忙 (.JspException: No getter method for property ...) |
kingmain
发贴: 9 积分: 0 |
于 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
why edited on 2004-09-23 20:47
学习java的工具(IDE)有什么? |
话题树型展开 |
人气 | 标题 | 作者 | 字数 | 发贴时间 |
7240 | 帮帮忙 (.JspException: No getter method for property ...) | kingmain | 2318 | 2004-09-23 11:25 |
5844 | Re:高手大哥们帮帮忙呀!!急呀!!!【在线等】 | spi_cn | 51 | 2004-09-23 12:27 |
5868 | Re:高手大哥们帮帮忙呀!!急呀!!!【在线等】 | kingmain | 7 | 2004-09-23 15:51 |
6264 | Re:高手大哥们帮帮忙呀!!急呀!!!【在线等】 | love_java | 47 | 2004-09-23 17:03 |
已读帖子 新的帖子 被删除的帖子 |
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 |