Error Handling Strategy

2005-06-06 Thread Matthew Hughes
I really do not like the way my current application handles errors as every error requires three or four lines and it is very redundant. I have been reading a lot about Exception(s) and how developers are slowly seeing the benefits of extending their Exception(s) from RuntimeException freeing code

ActionForms and Interfaces

2005-02-24 Thread Matthew Hughes
While reading through the DynaActionForm debate, I wondered if using Interfaces as well as inheritance might be a good alternative for those who want type enforcement but don't want to duplicate common form elements. I inherited a fairly large struts application months ago with 30+ forms. However

Tiles Question

2005-02-17 Thread Matthew Hughes
I think I am misunderstanding something. I have two layout JSPs in my application doc.mainLayout doc.admin ... Basically mainLayout.jsp does 99% of the layout work. adminLayout.jsp just looks like this: --adminLayout.jsp--- <%@ page language="java" contentType="text/html;

Strategies for Large Struts Application (LONG)

2005-02-16 Thread Matthew Hughes
I inherited a rather large Struts application a couple of months ago. It was rather badly organized and almost no test code exists for either the business code or Actions. One of the many problems I have working with this code is that all the Action classes (200+) exist in one flat package with no