求助,bean中方法的动用问题

04-09-30 zh5463
....

JavaBean client = new JavaBean();

client.testInsertForum(foruminfo);

client.InsertForum(signIn,foruminfo);

....

signIn,foruminfo是两个类的对象;

client.testInsertForum(foruminfo)执行成功,

执行client.InsertForum(signIn,foruminfo)这个方法发现无法调用,并出错:

2004-09-30 07:27:42,842 ERROR [org.jboss.web.localhost.Engine] StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception

org.apache.jasper.JasperException: javabeanweb.JavaBean.InsertForum(Lcom/jdon/simpleregister/SignIn;Lforummodel/ForumInfo;)V

at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)............

javabean中的两个方法如下:

.....

public void testInsertForum(ForumInfo foruminfo) throws Exception {

try {

forumsession.insertForum(foruminfo); //插入一个新的版块的METHOD

}

catch (Exception e) {

throw new Exception(e);

}

}

public void InsertForum(Event e,ForumInfo foruminfo) throws Exception {

try {

if(e.getOrigins.equals("forum"))

forumsession.insertForum(foruminfo); //插入一个新的版块的METHOD

}

catch (Exception e) {

throw new Exception(e);

}

}

........

猜你喜欢