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

Reply via email to