Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Architecture & Framework » Struts  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 帮帮忙 (.JspException: No getter method for property ...)
kingmain





发贴: 9
积分: 0
于 2004-09-23 11:25 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
高手大哥们帮帮忙呀!!急呀!!!【在线等】

我用得是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

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   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