Re: Exception handling in struts

2004-03-25 Thread Nick Wesselman
Didn't someone already answer this for you? Maybe we need to be more explicit. Try this: global-exceptions exception key=uncaught_exception type=java.lang.Exception path=/jsp/error.jsp handler=com.graysail.pgbadmecs.exceptions.ExceptionCatcher scope=request/ /global-exceptions

Re: Exception handling in struts

2004-03-23 Thread Nick Wesselman
And I bet ExceptionCatcher needs the same treatment. Larry Meadors wrote: type=java.lang.exception There is not such class. Think big E instead... Larry [EMAIL PROTECTED] 03/23/04 9:10 AM I'm trying to write an exception handler in my struts-config to clean up my application's

passing errors from model?

2004-03-23 Thread Nick Wesselman
Say my model does some validation of business rules. What's the best way to communicate those errors to the controller, and then (in the case of struts) translate those into ActionError's? It seems that if I want to communicate specific errors, creating Exception's for each case might be

complex forwarding logic?

2004-03-22 Thread Nick Wesselman
I'm writing an application that will require some fairly complex forwarding logic. After an action completes, it will need to query my model for the current application state and translate that into the appropriate forward/next step. The forward itself may require some pre-processing. To

Re: complex forwarding logic?

2004-03-22 Thread Nick Wesselman
forwarding framework. String stepName = WizardSupport.getNextForward(HttpSession, SomeCriteria); return mapping.findForward(stepName); -Original Message- From: Nick Wesselman [mailto:[EMAIL PROTECTED] Sent: Monday, March 22, 2004 12:04 PM To: Struts Users Mailing List Subject: complex

Re: action - delegate - facade

2004-03-17 Thread Nick Wesselman
What about when simply displaying data on a page? Do developers typically copy data out of the domain object just to display it? (As opposed to using it w/ a form.) The only issue I see is that you may end up introducing view helper methods to your model beans. Nick Robert Taylor wrote:

Re: calculating sum inside logic:iterate

2004-03-02 Thread Nick Wesselman
Technically this seems to be a business method, logic that would be better handled in your model code. So for example you have a ShoppingCart class which has a getItems() method to get your collection of items and a getTotal() method to add their prices. Not the answer you're looking for I

Re: html:link problem

2004-03-02 Thread Nick Wesselman
Make your entire onmouseover attribute an expression. onmouseover=%=MM_swapImage('details+counter+, ... % You can have plain text or a run-time expression as an attribute, but not both. Hope this helps. Nick mucus snot wrote: Hi list, Just wondering if anyone has any bright ideas. Things