RE: Struts2 + Spring/Hibernate

2009-11-13 Thread CRANFORD, CHRIS
: Fri 11/13/2009 3:42 AM To: user@struts.apache.org Subject: Re: Struts2 + Spring/Hibernate Seems fine with me. CRANFORD, CHRIS wrote: > > >class="com.company.app.struts2.actions.PersonAction"> > > > I don't see any advantage on creating Actions

Re: Struts2 + Spring/Hibernate

2009-11-13 Thread Jozef Fiflik
Hi, I've just created similar skeleton couple of days ago. To let Spring generate your Service and DAO beans, you have to specify also the GenericService and GenericDAO in your applicationContext xml. You (can) set them as abstract and you have to specify the inheritance relationship between the

Re: Struts2 + Spring/Hibernate

2009-11-13 Thread wild_oscar
Seems fine with me. CRANFORD, CHRIS wrote: > > >class="com.company.app.struts2.actions.PersonAction"> > > > I don't see any advantage on creating Actions with Spring. It works fine without it and it seems unnecessary configuration. Perhaps someone else can point out clear advant

Re: struts2+spring+hibernate, objects instantiate order?

2009-05-14 Thread Jim Kiley
1) is correct. I can't tell you the number of times that, on app startup, I've gotten reams and reams of error messages because Spring couldn't instantiate some bean or another.2) is both -- which you could determine for yourself pretty easily by putting a logging statement in the action's constru

Re: struts2+spring+hibernate, objects instantiate order?

2009-05-13 Thread Dave Newton
ren sky wrote: 1) before running my project, spring has already instantiate all the object defined in the applicationContext.xml? such as LoginAction,PersonServiceImpl and sessionFactory? Singletons probably are, sure. 2) the action used in struts2 is instantiated before a request comes i

Re: Struts2+Spring+Hibernate+Oracle: ORA-12516 (too many connections)

2008-11-24 Thread Dave Newton
--- On Mon, 11/24/08, scho <[EMAIL PROTECTED]> wrote: > Normally, accessing my database isn't a problem. Hibernate saves my > objects and executes my queries against the database as well. But > here's my problem: I have to import a huge amount of data into my > database via a CSV-File. There are

RE: struts2+Spring+Hibernate Integration

2008-02-27 Thread RajiR
Hi, By implementing Preparable,ModelDriven,ServletRequestAware interfaces,am able to get the form details and sent those details to service implementation layer from an action class.From service implementation i have called dao.Since DAO is not injected any where in struts.xml,its throwing nullpo

RE: struts2+Spring+Hibernate Integration

2008-02-27 Thread RajiR
Hi, In the link provided below,it uses struts1+hibernate+spring.I have done tht and trying to do the same application in struts2.So now i have a jsp page to enter user details and to register and after clicking on submit button entered values should be saved into database for which I have used ma

Re: struts2+Spring+Hibernate Integration

2008-02-21 Thread Lukasz Lenart
Hi, Download Spring 2 libraries and put in your WEB-INF/lib folder Regards -- Lukasz http://www.linkedin.com/in/lukaszlenart - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: struts2+Spring+Hibernate Integration

2008-02-21 Thread Deepak Kumar
Hi, Here is and application with example code http://www.roseindia.net/struts/hibernate-spring/index.shtml Thanks -Original Message- From: RajiR [mailto:[EMAIL PROTECTED] Sent: Thursday, February 21, 2008 4:04 PM To: user@struts.apache.org Subject: struts2+Spring+Hibernate Integration