1. your bean should extend to Action Bean.
2. you can have a field in form bean which you can use to display that your  DB has 
been updated
3. you can use javascript or bean:write to display along with logic:equal

regards
Rohit



-----Original Message-----
From: Zille Hassan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 07, 2003 3:09 PM
To: Struts Users Mailing List
Subject: Business logic bean

Dear All 
 
My business logic is in a bean which seems to communicating perfectly
with the DB. I can add and manipulate data through the command prompt
using an instance of that bean in a test class which can be executed
from the command prompt. 
 
I want to use this bean in the struts framework. Now where do i
instanciate that bean, in the bean extended from the FormAction Bean or
the Action bean. 
 
Its just a simple insertion from the form. Now what i think is that i am
supposed to instansiate my business logic bean that plays with the DB in
the class extended from the ActionForm. 
 
Currently my action in the struts-config.xml has been mapped to the same
page as the page that sends the data to the tomcat server. The following
will ellaborate more clearly.
<form-beans>
    <form-bean name="logonActionForm" type="port.logonActionForm" />
</form-beans>
  <action-mappings>
  <action name="logonActionForm" type="port.logonAction" validate="true"
scope="session" path="/logonAction" />
  </action-mappings>
 
Now when i add the User in the DB and am redirected to the login page
again, i want it to display that my DB has been updated. Any
suggestions???
 
 
I am new to the struts and Java thing, so bear with me. 
Regds 
Zille


*----------
This message and any attachment(s) is intended only for the use of the addressee(s) 
and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the 
intended addressee(s), you are hereby notified that any use, distribution, disclosure 
or copying of this communication is strictly prohibited. If you have received this 
communication in error, please erase all copies of the message and its attachment(s) 
and notify the sender or Kanbay postmaster immediately.

Any views expressed in this message are those of the individual sender and not of 
Kanbay.

Although we have taken steps to ensure that this e-mail and any attachment(s) are free 
from any virus, we advise that in keeping with good computing practice the recipient 
should ensure they are actually virus free.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to