RE: Exception Handling keeping user input

2007-12-26 Thread Jeremy JGR. Grumbach
/ExceptionMappingInterceptor.html For example, in my case, it is a global exception: Hope it helps, Jeremy -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Saturday, December 22, 2007 8:33 PM To: Struts Users Mailing List Subject: Re: Exception Handling keeping user input

Re: Exception Handling keeping user input

2007-12-22 Thread Adam Hardy
pond M-- - Original Message - From: "Adam Hardy" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Saturday, December 22, 2007 2:32 PM Subject: Re: Exception Handling keeping user input Jeremy, how do you control which result is chosen? Adam Jeremy JG

Re: Exception Handling keeping user input

2007-12-22 Thread Martin Gainty
age - From: "Adam Hardy" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Saturday, December 22, 2007 2:32 PM Subject: Re: Exception Handling keeping user input > Jeremy, > how do you control which result is chosen? > > Adam > > Jeremy JGR. Grum

Re: Exception Handling keeping user input

2007-12-22 Thread Adam Hardy
mbach [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 19, 2007 10:28 AM To: Struts Users Mailing List Subject: RE: Exception Handling keeping user input Yes I think it's more what I had in mind. My three requests were: 1) Go back to the "add" page without losing user input 2)

RE: Exception Handling keeping user input

2007-12-20 Thread Jeremy JGR. Grumbach
ing List Subject: RE: Exception Handling keeping user input Yes I think it's more what I had in mind. My three requests were: 1) Go back to the "add" page without losing user input 2) Display an error message above the "add" form 3) Do this in a generic way => the business

RE: Exception Handling keeping user input

2007-12-19 Thread Jeremy JGR. Grumbach
(and I hope I will have something to post :)) Thanks! Jeremy -Original Message- From: Gary Affonso [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 19, 2007 12:06 AM To: Struts Users Mailing List Subject: Re: Exception Handling keeping user input Jeremy JGR. Grumbach wrote: >

Re: Exception Handling keeping user input

2007-12-18 Thread Gary Affonso
Jeremy JGR. Grumbach wrote: Thanks also for the answer, I'm using Velocity so no problem with the null values. And yes that's a way to manage exceptions, but I as said in my previous post, I was looking for something more generic, without specific code in all my actions. If you want a generi

RE: Exception Handling keeping user input

2007-12-18 Thread Jeremy JGR. Grumbach
hing... Jeremy -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 18, 2007 11:30 AM To: Struts Users Mailing List Subject: Re: Exception Handling keeping user input I don't know how to do this but a generic solution sounds desirable (and technical

Re: Exception Handling keeping user input

2007-12-18 Thread Adam Hardy
ist Subject: Re: Exception Handling keeping user input To follow up on my previous post, here's some code from a "showForm" action that does exactly what I described... public void prepare() { if(session.get(SignUpFormBean.SESSION_KEY) == null) { // t

RE: Exception Handling keeping user input

2007-12-18 Thread Jeremy JGR. Grumbach
eneric solution during next days, and if I don't find it, I will of course use your solution or the one from Dave :) Jeremy -Original Message- From: Gary Affonso [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 18, 2007 6:42 AM To: Struts Users Mailing List Subject: Re: Exception H

RE: Exception Handling keeping user input

2007-12-18 Thread Jeremy JGR. Grumbach
fields still filled in because the forward was "input". Not sure to be clear but that's what I hope to be able to do in Struts 2. Jeremy -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Monday, December 17, 2007 7:17 PM To: Struts Users Mailing List Subjec

Re: Exception Handling keeping user input

2007-12-17 Thread Gary Affonso
To follow up on my previous post, here's some code from a "showForm" action that does exactly what I described... public void prepare() { if(session.get(SignUpFormBean.SESSION_KEY) == null) { // they're here for the first time. do nothing (leave the signUpFormBean model

Re: Exception Handling keeping user input

2007-12-17 Thread Gary Affonso
Jeremy JGR. Grumbach wrote: Let's take the following scenario: we have a database which manage car models (for example Dogde Viper). The column "name" of the "car model" table must be unique. The user wants to add a "car model" in the database, thus he has an "add screen" containing all the field

Re: Exception Handling keeping user input

2007-12-17 Thread Dave Newton
Sure; catch the exception in your Action, which IMO is what should happen anyway. This is a gray area of design for me; I am not convinced that this is "exceptional" behavior. That aside, business-level exceptions should (IMO, of course :) be caught by actions--*real* exceptions, like a database e

Exception Handling keeping user input

2007-12-17 Thread Jeremy JGR. Grumbach
Hi, Let's take the following scenario: we have a database which manage car models (for example Dogde Viper). The column "name" of the "car model" table must be unique. The user wants to add a "car model" in the database, thus he has an "add screen" containing all the fields of the "car model" and