RE: Design Help

2001-11-29 Thread Hicks, James
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.

RE: Help with Struts and EJBS..

2001-09-25 Thread Hicks, James
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

RE: Cannot retrieve mapping for action /j_security_check

2001-08-24 Thread Hicks, James
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

Suggestion For Action Class

2001-08-17 Thread Hicks, James
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

RE: Wizard kind of form

2001-07-02 Thread Hicks, James
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,

RE: Suggestion:Taking the Servlet out of Action and ActionForm

2001-05-19 Thread Hicks, James
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

RE: How can I use set-property property=foo value=123 / in struts-config.xml

2001-05-11 Thread Hicks, James
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

RE: Override Input Form / JSP when Errors Are Encountered

2001-05-09 Thread Hicks, James
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