Hi Oguzhan-
We've run into the *exact* same problem. Our interceptor is returning
"error" but that return value is not respected when the result is
rendered. It makes me wonder what the value of returning the invocation
result is in the first place...
Just stepping through the code and bro
Hi Oguzhan-
We've run into the *exact* same problem. Our interceptor is returning
"error" but that return value is not respected when the result is rendered.
It makes me wonder what the value of returning the invocation result is in
the first place...
Just stepping through the code and browsi
Of course it has a global result :) it returns "error" too but i think struts
2 working mech. makes this impossible to do after invocation.invoke() method
only the result of the action works... :) i think this is not a common
situation
Dave Newton-4 wrote:
>
> --- oguzhan tortop <[EMAIL PROTECTE
--- oguzhan tortop <[EMAIL PROTECTED]> wrote:
> ... but how can i implement a PreResultListener.
I don't think it'll help anyway; sorry.
(Boy, I wish I had my regular machine right now :/
How is an Action.ERROR normally handled with the stack
you have defined? Is there a global result?
d.
yes that's where i get the exception :D but how can i implement a
PreResultListener. And also what i understand from the below writing is you
can not dispatch to another page after calling an invocation.invoke()
method. Am i wrong :) ?
Dave Newton-4 wrote:
>
> --- oguzhan tortop <[EMAIL PROT
--- oguzhan tortop <[EMAIL PROTECTED]> wrote:
> But if i get a commit error for example a duplivate
> key it passes to the
> catch statement in the final block and then it
> returns Action.ERROR . And
> also it returns error as a param i debugged the code
> by attaching source but
> the problem is
But if i get a commit error for example a duplivate key it passes to the
catch statement in the final block and then it returns Action.ERROR . And
also it returns error as a param i debugged the code by attaching source but
the problem is it still dispatches to the success
Dave Newton-4 wrote:
>
--- oguzhan tortop <[EMAIL PROTECTED]> wrote:
> but commit is in finally block. so it runs on every
> condition even if you return any value before it.
...but a duplicate key exception would happen on the
commit, because Hibernate queues up its work, right?
Unless you're running a commit in th
but commit is in finally block. so it runs on every condition even if you
return any value before it.
Dave Newton-4 wrote:
>
> --- oguzhan tortop <[EMAIL PROTECTED]> wrote:
>> At first catch i am expecting to handle exceptions
>> that could be arise while
>> creating the transaction and in the
--- oguzhan tortop <[EMAIL PROTECTED]> wrote:
> At first catch i am expecting to handle exceptions
> that could be arise while
> creating the transaction and in the second try block
> i am commiting the
> transaction it gives error at the last final block
> side while commiting.
...but if the exce
At first catch i am expecting to handle exceptions that could be arise while
creating the transaction and in the second try block i am commiting the
transaction it gives error at the last final block side while commiting.
Dave Newton-4 wrote:
>
> --- oguzhan tortop <[EMAIL PROTECTED]> wrote:
>>
--- oguzhan tortop <[EMAIL PROTECTED]> wrote:
> Yes , i can see it clearly from console as far as i
> guess when u call invocation.invoke() ; only the
> result of action become target.
Which HibernateException, the first one or the second
one?
> >> result = invocation.invoke();
> >> [...]
> >>
Yes , i can see it clearly from console as far as i guess when u call
invocation.invoke() ; only the result of action become target.
joey-30 wrote:
>
> Are you sure you catch the HibernateException?
>
>
> On 4/4/07, oguzhan tortop <[EMAIL PROTECTED]> wrote:
>>
>>
>> hi all,
>> i am using str
Are you sure you catch the HibernateException?
On 4/4/07, oguzhan tortop <[EMAIL PROTECTED]> wrote:
hi all,
i am using struts2 with hibernate i have a basic form which inputs the
given
data via hibernate. I get the hibernate session from my custom hibernate
interceptor and from that intercept
14 matches
Mail list logo