same issue
this how I fixed it : (the main idea is to redirect to a jsp if an exception
occured, and the jsp rollback)
create an error page error.jsp
<%@page import="com.rdvcentral.util.persistance.HibernateUtil"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib pre
i dont use the osiv filter i just make sure the DAO object method returns the
objects initialised correctly (i.e. all lazy collections that are to be
accessed are initialised) for how its going to be used - i might have a DAO
method to return the plain object with no collections initialised an
> -Original Message-
> From: François Rouxel [mailto:rouxe...@yahoo.com]
> Sent: Wednesday, March 09, 2011 11:43 AM
> To: Struts Users Mailing List
> Subject: Re : ModelDriven & Hibernate Entities
>
> same issue
> this how I fixed it : (the main idea is to redir
On Wed, Mar 9, 2011 at 1:09 PM, CRANFORD, CHRIS wrote:
> I wouldn't place anything Hibernate or persistence related in
> my JSP pages at all. In my mind, this breaks the entire
> reasoning behind MVC and the view simply there to render data
IMO OSiV filters put non-render stuff into the JSP anywa
.
fr/
- Message d'origine
De : "CRANFORD, CHRIS"
À : Struts Users Mailing List
Envoyé le : Mer 9 mars 2011, 13h 09min 33s
Objet : RE: Re : ModelDriven & Hibernate Entities
Francois -
While that may work for you, I wouldn't place anyt
From: François Rouxel [mailto:rouxe...@yahoo.com]
> Sent: Wednesday, March 09, 2011 12:24 PM
> To: Struts Users Mailing List
> Subject: Re : Re : ModelDriven & Hibernate Entities
>
> Hi Chris,
> first,
> you might have another pb, because struts2 does not change your model
> if
;s reasons behind
> why it works the way it does.
>
>
>
> > -Original Message-
> > From: François Rouxel [mailto:rouxe...@yahoo.com]
> > Sent: Wednesday, March 09, 2011 12:24 PM
> > To: Struts Users Mailing List
> > Subject: Re : Re : ModelDriven
> Sent: Wednesday, March 09, 2011 1:35 PM
> To: Struts Users Mailing List
> Subject: Re: Re : Re : ModelDriven & Hibernate Entities
>
> It might just be an order of interceptors problem. One of your first
> interceptors should be your login check. That should definitely
> method.
>>
>> If I return the user to the INPUT method because maybe I'm not using
>> the Struts
>> validation framework and doing it myself in my execute() method or I
>> have some
>> complex conditions I must check for before I save the data. In this
I still think this is related to my @Transactional annotation maybe.
> -Original Message-
> From: Dave Newton [mailto:davelnew...@gmail.com]
> Sent: Wednesday, March 09, 2011 2:16 PM
> To: Struts Users Mailing List
> Subject: Re: Re : Re : ModelDriven & Hibernate En
t; From: Maurizio Cucchiara [mailto:maurizio.cucchi...@gmail.com]
> > Sent: Wednesday, March 09, 2011 4:20 PM
> > To: Struts Users Mailing List
> > Subject: Re: RE: Re : Re : ModelDriven & Hibernate Entities
> >
> > Have you tried to put the transational annotat
e-
> From: Martin Gainty [mailto:mgai...@hotmail.com]
> Sent: Wednesday, March 09, 2011 9:59 PM
> To: Struts Users Mailing List
> Subject: RE: Re : Re : ModelDriven & Hibernate Entities
>
>
> osiv filter (should) set flushing to never (now manual) to prevent
> accidental wr
à l'information seulement et n'aura pas n'importe
quel effet légalement obligatoire. Étant donné que les email peuvent facilement
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité
pour le contenu fourni.
> Date: Thu, 10 Mar 2011 19:39:56 -0600
>
Dave Newton [mailto:davelnew...@gmail.com]
>> Sent: Wednesday, March 09, 2011 2:16 PM
>> To: Struts Users Mailing List
>> Subject: Re: Re : Re : ModelDriven & Hibernate Entities
>>
>> Another reason OSiV filters can be tricky.
>>
>> Dave
>
In the Struts2 Action rather than my service class?
> -Original Message-
> From: Maurizio Cucchiara [mailto:maurizio.cucchi...@gmail.com]
> Sent: Wednesday, March 09, 2011 4:20 PM
> To: Struts Users Mailing List
> Subject: Re: RE: Re : Re : ModelDriven & Hibernate Ent
critto:
>> > I still think this is related to my @Transactional annotation maybe.
>> >
>> >> -Original Message-
>> >> From: Dave Newton [mailto:davelnew...@gmail.com]
>> >> Sent: Wednesday, March 09, 2011 2:16 PM
>> >> To: Strut
nt: Thursday, March 10, 2011 1:41 AM
> To: Struts Users Mailing List
> Cc: CRANFORD, CHRIS
> Subject: Re: RE: Re : Re : ModelDriven & Hibernate Entities
>
> It's exactly what I meant (you can leave in your service class too).
> The object factory must be spring and your cla
On Thu, Mar 10, 2011 at 11:32 AM, CRANFORD, CHRIS wrote:
> I don't use Spring to instantiate my actions, they're not defined like that.
And you're not using the S2 Spring plugin? (Just for the sake of
completeness; I'm only marginally following this thread.)
Dave
Dave -
Yes the plugin is in the app's lib directory.
> -Original Message-
> From: Dave Newton [mailto:davelnew...@gmail.com]
> Sent: Thursday, March 10, 2011 10:37 AM
> To: Struts Users Mailing List
> Cc: CRANFORD, CHRIS; Maurizio Cucchiara
> Subject: Re: RE
On Thu, Mar 10, 2011 at 11:38 AM, CRANFORD, CHRIS wrote:
> Yes the plugin is in the app's lib directory.
Just FYI, that sets the object factory to "spring", so Spring is
instantiating your actions.
(At least it used to.)
Dave
-
Oh, learn something new every day :)
> -Original Message-
> From: Dave Newton [mailto:davelnew...@gmail.com]
> Sent: Thursday, March 10, 2011 10:40 AM
> To: CRANFORD, CHRIS
> Cc: Struts Users Mailing List; Maurizio Cucchiara
> Subject: Re: RE: Re : Re : ModelDriven &a
t; >> Sent: Wednesday, March 09, 2011 4:20 PM
> >> To: Struts Users Mailing List
> >> Subject: Re: RE: Re : Re : ModelDriven & Hibernate Entities
> >>
> >> Have you tried to put the transational annotation in the class
> >> declaration?
entity accordingly when applicable.
> -Original Message-
> From: Dave Newton [mailto:davelnew...@gmail.com]
> Sent: Thursday, March 10, 2011 10:40 AM
> To: CRANFORD, CHRIS
> Cc: Struts Users Mailing List; Maurizio Cucchiara
> Subject: Re: RE: Re : Re : ModelDriven &a
CHRIS
>> Cc: Struts Users Mailing List; Maurizio Cucchiara
>> Subject: Re: RE: Re : Re : ModelDriven & Hibernate Entities
>>
>> On Thu, Mar 10, 2011 at 11:38 AM, CRANFORD, CHRIS wrote:
>> > Yes the plugin is in the app's lib directory.
>>
>>
e which I could easily avoid by not
>> allowing the framework to modify my persistent entity and force me to
>> manage the copy/update of the entity accordingly when applicable.
>>
>>> -Original Message-
>>> From: Dave Newton [mailto:davelnew...@gmail.com]
&
execute() method to my business logic with my model, then I
should be ok?
> -Original Message-
> From: Burton Rhodes [mailto:burtonrho...@gmail.com]
> Sent: Thursday, March 10, 2011 7:49 PM
> To: Struts Users Mailing List
> Subject: Re: RE: Re : Re : ModelDriven & Hibern
o my business logic with my model, then I
> should be ok?
>
>> -Original Message-
>> From: Burton Rhodes [mailto:burtonrho...@gmail.com]
>> Sent: Thursday, March 10, 2011 7:49 PM
>> To: Struts Users Mailing List
>> Subject: Re: RE: Re : Re : ModelDriven & Hi
27 matches
Mail list logo