1) The relationship is a starting point. Basically, I would not pass an
ActionForm to my business delegate (RentalBean). Doing so ties that
delegate to the web interface. If you were wanting to create a Swing client
in the future, you would have to create seperate business delegates for it.
I usually use a standard javabean as a proxy into my ejbs. This approach
allows you to modify the EJB layer without modifying your action/actionform
classes. If you ever decided you didn't want the EJBs you could modify the
javabean to use JDBC instead. I use my Action classes to process the
If you are using container-managed authentication, why use a Struts
FormBean? You can get the username from the container using the
getCallPrincipal() method of HttpServletRequest to get the logged in user's
principal.
If you absolutely want to use an ActionForm via Struts, keep reading.
You
I would like to suggest adding a method called prePerform to match each
perform method in the org.apache.struts.action.Action class and have the
ActionServlet call it just before it calls perform. These prePerform method
would also return an ActionForward instance. If the ActionServlet received
I use 1 ActionForm for my wizards. I include a hidden form element called
'page'. In my reset and validate methods, I use the page field to determine
what to reset/validate.
James Hicks
-Original Message-
From: Gangadharappa, Kiran [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02,
I see one problem with Niall's Transport object. The Transport has a
reference to a Connection object. This could cause severe scalability
issues in the future. Let's say for instance you are using a connection
pool with an initial 5 connections and a max of 20. If your Action.perform
method
You must extend the ActionMapping class to include the property you are
wanting to set. Inside your action, just cast the ActionMapping object to
your custom mapping object. Inside the deployment descriptor (web.xml), set
the init-param mapping to point to your custom mapping object.
--- start
time to dig
thru the source code. What bothers me the most is that I feel like I'm
not doing anything outrageous here.
- jeff
- Original Message -
From:
Hicks, James
To: '[EMAIL PROTECTED]'
Sent: Tuesday, May 08, 2001 5:56
PM
Subject: RE
8 matches
Mail list logo