I followed the MVC design. I give the data access activity (insertThread) to the ThreadHandler class. And a bean is passed as a parameter of the insertThread method. However, I got compilation error saying that
insertThread(java.lang.String, java.lang.String, ... , java.sql.Timastamp, int, ... ) cannto be applied to the ThreadBean. and the error complains the statement in my action class: threadID = thandler.insertThread( threadBean ); This is what I did in the action class: ThreadHandler thandler = new ThreadHandler(); ThreadBean threadBean = new ThreadBean(); BeanUtils.copyProperties( threadBean, postForm ); if (parentPostID == 0 ) // new topic { threadBean.setLastPostMemberName( memberName ); threadBean.setThreadCreationDate( now ); threadBean.setThreadViewCount( 0 ); threadBean.setThreadReplyCount( 0 ); threadID = thandler.insertThread( threadBean ); } and this is what I did in the ThreadHandler class: class ThreadHandler extends ThreadBean { String receiver = getReceiver(); String sender = getSender(); String title = getTitle(); String lastPostMemberName = getLastPostMemberName(); String threadTopic = getThreadTopic(); String threadBody = getThreadBody(); Timestamp threadCreationDate = getThreadCreationDate(); int threadViewCount = getThreadViewCount(); int threadReplyCount = getThreadReplyCount(); public ThreadHandler() {} public int insertThread( String receiver, String sender, String title, String lastPostMemberName, String threadTopic, String threadBody, Timestamp threadCreationDate, int threadViewCount, int threadReplyCount ) throws MessageDAOSysException { .... } } __________________________________ Do you Yahoo!? Find out what made the Top Yahoo! Searches of 2003 http://search.yahoo.com/top2003 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]