/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
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
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
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)
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
(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:
>
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
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
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
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
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
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
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
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
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
15 matches
Mail list logo