Struts 2: hibernate optimistic locking - allows user to merge conflicting data

2008-01-21 Thread Cheng Wei Lee
Currently for client/server side validation, struts is able to maintain the data and shows it to the user, with the error messages and preserved user input. I'm using Hibernate for persistence. The StaleObjectStateException is caught inside the filter that I use to set up the Hibernate se

Re: executeAndWait interceptor hibernate session closed

2008-01-10 Thread Laurie Harper
bmoraillon wrote: Hi, How can i open hibernate session with executeAndWait interceptor ? In fact OpenSessionInViewFiltered is not called before and i get a session closed error... Filters execute in the order the filter-mapping elements appear in your web.xml. Make sure the mapping for the

executeAndWait interceptor hibernate session closed

2008-01-10 Thread bmoraillon
Hi, How can i open hibernate session with executeAndWait interceptor ? In fact OpenSessionInViewFiltered is not called before and i get a session closed error... Thanks in advance, Benoît. -- View this message in context: http://www.nabble.com/executeAndWait-interceptor-hibernate-session

Hibernate: one-to-many relation. Getting values

2007-11-07 Thread l1nk
Hi. Im developing a web application at work using Struts2, Hibernate and Spring. I have two classes with a parent/child (PCB - BrgpInfo) relation and i make one JSP page to insert data to populate this 2 classes. The problem is that i can read all the information but i cant insert data to the

RE: and Hibernate

2007-10-19 Thread Engelking, Nicholas
the whole dojo plugin) worth it. -nick -Original Message- From: Andre Prasetya [mailto:[EMAIL PROTECTED] Sent: October 19, 2007 2:39 AM To: Struts Users Mailing List Subject: Re: and Hibernate Where can i get this new dojo plugin ? and is it usable using 2.0.9 ? -Andre- Engelking, Nicholas wro

RE: and Hibernate

2007-10-19 Thread Manu Mahajan
, 2007 11:20 PM To: Struts Users Mailing List Subject: Re: and Hibernate Yes! My Jsp file looks exactly like the one provided into the "Example Applications" (struts-2.0.9-apps.zip). function treeNodeSelected(nodeId) { dojo.io.bind({ url: "<s:url va

Re: and Hibernate

2007-10-18 Thread Andre Prasetya
Where can i get this new dojo plugin ? and is it usable using 2.0.9 ? -Andre- Engelking, Nicholas wrote: I just went through the same thing. In struts 2.1 there is a new href attribute on the tree tag. It points to an action that returns some json using the json plugin that gives all the info

RE: and Hibernate

2007-10-18 Thread Engelking, Nicholas
return hasChildren; } public String getId() { return id; } public String getLabel() { return label; } } In the getOptions method you send back a collection of beans that have a label, an id, and whether or not they have childr

Re: and Hibernate

2007-10-18 Thread Cosmin Stanciu
;, this, "treeNodeSelected"); The tree works fine with the data provided in the example application but I can't make it work with the data received from my Hibernate layer. So I just want to know I should write the "ShowDynamicTreeAction.java". Thank you! Cosmin

Re: and Hibernate

2007-10-18 Thread Dave Newton
--- Cosmin Stanciu <[EMAIL PROTECTED]> wrote: > Action tab the funtionality is not shown. :( Are you filling tree data via Ajax (which the example on the wiki isn't)? d. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

Re: and Hibernate

2007-10-18 Thread Cosmin Stanciu
Hello! Thanks for the supper fast answer! No it's not! But "This section of the documentation is a work-in-progress; more to follow." and on the Action tab the funtionality is not shown. :( I know how to set the getters and setters but don't know how to match the data from hi

Re: and Hibernate

2007-10-18 Thread Dave Newton
e but > with no luck . I would really apreciate some > guidance in how to write the ShowDynamicTreeAction > class that sends the date to the tree. > > I'm using Hibernate DAO to receive the data from my > database table and it looks like this. > Category: id, name, parent_cat

and Hibernate

2007-10-18 Thread Cosmin Stanciu
Hi! I have been trying for a week now to populate one with the data from a database table but with no luck . I would really apreciate some guidance in how to write the ShowDynamicTreeAction class that sends the date to the tree. I'm using Hibernate DAO to receive the data from my dat

Re: Struts2+Spring2 Beans+Hibernate

2007-09-27 Thread Tom Holmes Jr.
You know ... we already have a Struts2+Spring2 beans+Hibernate project at work with maven2 for building ... I could have asked for their framework and probably been a lot farther ahead ... but learning Struts2 the way I did was a learning experience. Thanks for the information ... I will

Re: Struts2+Spring2 Beans+Hibernate

2007-09-26 Thread Roger Ye
> > Tom Holmes Jr. wrote: > > Yes ... this is one of the very first links that came up with my > > Google search and I looked at this example in detail. > > > > Unfortunately, I'm not really using JPA (since in my opinion it's far > > from Hibernate an

Re: Struts2+Spring2 Beans+Hibernate

2007-09-26 Thread mraible
Here's a sample app that's ready to run if you have MySQL installed. https://appfuse-light.dev.java.net/files/documents/6839/68407/appfuse-light-struts2-hibernate-1.8.zip Matt Vinicius Medeiros Peretti wrote: > > I had problems with this combination using jdk 1.6, solved w

Re: Struts2+Spring2 Beans+Hibernate

2007-09-26 Thread Vinicius Medeiros Peretti
using JPA (since in my opinion it's far from Hibernate and really not complete yet) ... and I'm not using Ajax at the moment. It really wasn't clear to me in this example how to use Struts2 + Spring2 Beans and Hibernate ... eventually I did find an example that more closely match

Re: Struts2+Spring2 Beans+Hibernate

2007-09-26 Thread Tom Holmes Jr.
Yes ... this is one of the very first links that came up with my Google search and I looked at this example in detail. Unfortunately, I'm not really using JPA (since in my opinion it's far from Hibernate and really not complete yet) ... and I'm not using Ajax at the moment. I

Re: Struts2+Spring2 Beans+Hibernate

2007-09-26 Thread Leena Borle
> > > > 2) Can anyone point me to a sample Struts2 web-app > > that uses Spring2 Beans with Hibernate. > > Did you take a look at this example at, http://struts.apache.org/2.x/docs/struts-2-spring-2-jpa-ajax.html It is complete with all possible combina

Re: Struts2+Spring2 Beans+Hibernate

2007-09-26 Thread Dave Newton
the plugin the hell out of the library path so it won't get loaded and give you one hell of an error message. > 2) Can anyone point me to a sample Struts2 web-app > that uses Spring2 Beans with Hibernate. I can't, but if you've already used Hibernate and Spring before it sh

Re: Struts2+Spring2 Beans+Hibernate

2007-09-26 Thread Musachy Barroso
t: > 1) I am a senior J2EE Engineer using JDK 1.6 and the latest J2EE api's > 2) On Resin 3.1.2 on Linux > 3) Yes, I did go through Google and tried to find answers on the Net > before I came here. > 4) Yes, I have programmed in Spring 1.2 before, and yes I have done > Hibernat

Struts2+Spring2 Beans+Hibernate

2007-09-26 Thread Tom Holmes Jr.
pring 1.2 before, and yes I have done Hibernate before, and yes, I have done Struts 1.3 programming before. So ... I am trying to learn Struts 2.0 and that's not so bad. Within our ActionServlets we want our database persistence to use Spring2 Beans and Hibernate. I did a google search

RE: Call Oracle stored function using Hibernate

2007-09-12 Thread Hayrol Reyes Mejía
Well, calling SP's is not a Struts topic (don't care the version), of course it's for Hibernate or even Oracle!! Also, it has a lot to do with your persistence layer and Data Model design. Anyway, you have several ways to call an Oracle SP function, here you have two hints: a

[OT] Re: Call Oracle stored function using Hibernate

2007-09-12 Thread Dave Newton
--- GEDA <[EMAIL PROTECTED]> wrote: > now I have to call some stored functions from the DB > using the hibernate api. You might want to ask this on a Hibernate list / forum or STFW with a query resembling "hibernate +call stored pro

Re: Call Oracle stored function using Hibernate

2007-09-12 Thread Antonio Petrelli
2007/9/12, GEDA <[EMAIL PROTECTED]>: > > > Hi. I am using Spring, Struts 2, Hibernate and Oracle as DB. Until now > everything worked ok since I only needed full entity objects but now I > have > to call some stored functions from the DB using the hibernate api. Until

Call Oracle stored function using Hibernate

2007-09-12 Thread GEDA
Hi. I am using Spring, Struts 2, Hibernate and Oracle as DB. Until now everything worked ok since I only needed full entity objects but now I have to call some stored functions from the DB using the hibernate api. Until now I have used the following syntax: Query q = getEntityManager

RE: struts 2 best practice for hibernate session

2007-08-23 Thread Baseer Patel MD
age- From: Leonidas Papadakis [mailto:[EMAIL PROTECTED] Sent: Thursday, August 23, 2007 3:41 PM To: Struts Users Mailing List Subject: Re: struts 2 best practice for hibernate session Thank you for your reply. What about the performance in this case... Is it going to be fast and stable ? L Ba

Re: struts 2 best practice for hibernate session

2007-08-23 Thread Leonidas Papadakis
d by spring(HibernateTemplate , SimpleJDBCTemplate..) -Original Message- From: Leonidas Papadakis [mailto:[EMAIL PROTECTED] Sent: Thursday, August 23, 2007 3:04 PM To: Struts Users Mailing List Subject: struts 2 best practice for hibernate session Greetings to all, since i am migrating to str

RE: struts 2 best practice for hibernate session

2007-08-23 Thread Baseer Patel MD
Sent: Thursday, August 23, 2007 3:04 PM To: Struts Users Mailing List Subject: struts 2 best practice for hibernate session Greetings to all, since i am migrating to struts2 i would like to ask which is the most efficient way to handle the hibernate sessions ... i.e. stick to the hibernateutil class tha

struts 2 best practice for hibernate session

2007-08-23 Thread Leonidas Papadakis
Greetings to all, since i am migrating to struts2 i would like to ask which is the most efficient way to handle the hibernate sessions ... i.e. stick to the hibernateutil class that is on hibernate website example ? Create a application scope bean accessible via spring ? Your answers are

Re: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Instance must not be null (Spring+Struts+Hibernate)

2007-06-25 Thread Laurie Harper
This is a Spring issue, not Struts. It looks like you have something missing or mis-configured in your String applicationContext.xml configuration file. Review that and, if you can't find the problem, ask on the Spring forums -- and make sure to include the relevant parts of your config file so

Re: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Instance must not be null (Spring+Struts+Hibernate)

2007-06-25 Thread GEDA
Anybody ? -- View this message in context: http://www.nabble.com/Invocation-of-init-method-failed--nested-exception-is-java.lang.IllegalArgumentException%3A-Instance-must-not-be-null-%28Spring%2BStruts%2BHibernate%29-tf3975798.html#a11290271 Sent from the Struts - User mailing list archive at Na

Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Instance must not be null (Spring+Struts+Hibernate)

2007-06-25 Thread GEDA
Hi guys. I cannot understand this problem and its driving me crazy. Can you please take a look at the errors stack ? Thank you very much : SEVERE: Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.

Re: Hibernate and S2

2007-06-23 Thread Mansour
Jeromy Evans wrote: Mansour wrote: An alternative approach is that you don't allow persistent entities to be modified within your actions whatsoever and all updates are applied behind a service layer that performs reattachment and updates. How do I do this (reattachment and updates)? Assuming

Re: Hibernate and S2

2007-06-22 Thread Jeromy Evans
Mansour wrote: An alternative approach is that you don't allow persistent entities to be modified within your actions whatsoever and all updates are applied behind a service layer that performs reattachment and updates. How do I do this (reattachment and updates)? Assuming I have a very big a

Re: Hibernate and S2

2007-06-22 Thread Mansour
lues. You commit E back into to persistence. Now would also be a good time to understand Hibernate's revision control features. And definitely a great time to know how Preparable is really used. By the way, hibernate session is not closed. An alternative approach is that you don

Re: Hibernate and S2

2007-06-22 Thread Jeromy Evans
an advice. I have many objects that are mapped using hibernate to a DB. I need to update one of these objects (lets call it Parent). But this object contains many fields that I don't want to change. So the view here can display and modify the fields I need to change. Now, when I pass this o

Hibernate and S2

2007-06-22 Thread Mansour
Hello every one: This question may seem of topic. The reason I am asking this here is because I am sure some one faced this problem when dealing with struts and can provide an advice. I have many objects that are mapped using hibernate to a DB. I need to update one of these objects (lets

Re: Struts 2 + Spring 2 + DAO + Hibernate

2007-06-20 Thread hezjing
I found this article very useful: Developing J2EE Applications Using Hibernate Annotations and Spring MVC http://www.developer.com/java/ent/article.php/10933_3577101_1 On 6/19/07, hezjing <[EMAIL PROTECTED]> wrote: Hi! What is the difference between a Model object and DAO? In &qu

Re: Struts 2 + Spring 2 + DAO + Hibernate

2007-06-19 Thread Dave Newton
--- hezjing <[EMAIL PROTECTED]> wrote: > What is the difference between a Model object and > DAO? DAOs get models. (Hmm, I think I need a DAO t-shirt now--maybe it'll help.) > Do we still require Person class say, if we create a > PersonDao? Yes. The Person class is the "thing" being represented

Struts 2 + Spring 2 + DAO + Hibernate

2007-06-19 Thread hezjing
s 2 + Spring 2 + DAO + Hibernate". -- Hez - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [S2] [OT] Hibernate and Struts 2, keeping session around (using Guice)

2007-05-22 Thread Jeromy Evans
Hi Will, A simple approach is to use an S2 interceptor that opens the hibernate session before calling the action and closes it afterwards. This is the open-session-in-view pattern that's well described at the hibernate site http://www.hibernate.org/43.html. You don't need Spr

Re: [S2] [OT] Hibernate and Struts 2, keeping session around (using Guice)

2007-05-22 Thread Dave Newton
--- Will Smith <[EMAIL PROTECTED]> wrote: > [session stuff] If you were already okay with manually loading non-lazy loaded stuff, why not just: Hibernate.initialize(rootObject.getNameOfLazyCollection()); Otherwise: - Set lazy="false" in the mapping, and load it all the time, or - Use an open-se

[S2] [OT] Hibernate and Struts 2, keeping session around (using Guice)

2007-05-22 Thread Will Smith
Hi, I'm sure this has probably been beaten to death, but I can't seem to find a viable solution without using spring. I just switched over to using hibernate from ibatis (so much better now), and I'm having trouble working my actions around hibernate's transaction model. Wi

Re: Hibernate headache with struts 2

2007-05-19 Thread Martin Gainty
Attempting to instantiate all of your Hibernate generated Parent and Child classes by continously running all of your sessions together.. so referencing http://www.hibernate.org/43.html You *could* write your own SessionRequestServletFilter which will accomplish this objective for you (ensuring

[OT] Re: Hibernate headache with struts 2

2007-05-19 Thread Dave Newton
--- Mansour <[EMAIL PROTECTED]> wrote: > Is this a struts 2 issue? No. It's a very basic Hibernate issue. http://www.hibernate.org/hib_docs/v3/reference/en/html/transactions.html > every thing suggest using spring. This is not an > option for me. Why not? Aren't

Re: Hibernate headache with struts 2

2007-05-19 Thread Martin Gilday
Looks like you are trying to access Hibernate managed objects or perform session manipultion in your view. Spring makes this easier but you can do it manually easily. You just need to keep your session open longer. Have a google for things like open session in view filter. - Original

Hibernate headache with struts 2

2007-05-19 Thread Mansour
I am trying to use hibernate with my struts project. The problem I keep on getting : javax.servlet.ServletException: org.hibernate.SessionException: Session is closed! org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:518) org.apache.struts2

Re: moving on to Hibernate with S2...

2007-05-12 Thread Josh Vickery
ction class. There is also a "codebehind" plugin for Struts 2 that I have yet to try out, but might cut down on the required Annotations. The missing piece here is the Model component. Hibernate offers one solution, and by using Annotations instead of mapping files, you can get close

Re: moving on to Hibernate with S2...

2007-05-11 Thread Ray Clough
Personally, I do *NOT* like to use Spring, because every time I touch it everything breaks. I think that a better solution is to use a ServiceLocator to provide the Hibernate SessionFactory. I did this in S1, and it worked very easily, and didn't break anything. ServiceLocator is describ

Re: moving on to Hibernate with S2...

2007-05-11 Thread Musachy Barroso
arson wrote: > That's what we're using as well. > Plus using EJB3/Annotations (over Hibernate3) for persistence. > Works well. No show stoppers thus far. > > If don't expect your web app to be too complex, I'd recommend a hard > look at Ruby on Rails. > The

Re: moving on to Hibernate with S2...

2007-05-11 Thread Rick Schumeyer
recommend a hard look at Ruby on Rails. The whole S2, Spring, Hibernate thing is very powerful. However, it is getting too bulky w/configuration and dependencies for less complex projects. On May 11, 2007, at 4:29 PM, Josh Vickery wrote: Spring has several components, but the one I use (and th

Re: moving on to Hibernate with S2...

2007-05-11 Thread String Larson
That's what we're using as well. Plus using EJB3/Annotations (over Hibernate3) for persistence. Works well. No show stoppers thus far. If don't expect your web app to be too complex, I'd recommend a hard look at Ruby on Rails. The whole S2, Spring, Hibernate thing is very p

Re: moving on to Hibernate with S2...

2007-05-11 Thread Musachy Barroso
What I meant was: use Spring IoC to glue Struts 2 and Hibernate together :) musachy On 5/11/07, Josh Vickery <[EMAIL PROTECTED]> wrote: Spring has several components, but the one I use (and the one I think is the most popular) is the Inversion of Control (IOC) framework. Struts 2 (when

Re: moving on to Hibernate with S2...

2007-05-11 Thread Josh Vickery
ut S2? I guess I'm looking for answer to: what problem does Spring solve that S2 does not? And vice-versa. Musachy Barroso wrote: > Have you tried using Spring?. It plays nicely with Struts and hibernate, > plus there are some examples around I think. > > musachy > >

Re: moving on to Hibernate with S2...

2007-05-11 Thread Rick Schumeyer
ed using Spring?. It plays nicely with Struts and hibernate, plus there are some examples around I think. musachy On 5/11/07, Rick Schumeyer <[EMAIL PROTECTED]> wrote: Now I'm trying to configure Hibernate with S2, which many others have done. I was trying to follow the example in Web

Re: moving on to Hibernate with S2...

2007-05-11 Thread Musachy Barroso
Have you tried using Spring?. It plays nicely with Struts and hibernate, plus there are some examples around I think. musachy On 5/11/07, Rick Schumeyer <[EMAIL PROTECTED]> wrote: Now I'm trying to configure Hibernate with S2, which many others have done. I was trying to follow

moving on to Hibernate with S2...

2007-05-11 Thread Rick Schumeyer
Now I'm trying to configure Hibernate with S2, which many others have done. I was trying to follow the example in WebWork in Action, but things have obviously changed since then. To be clear, the problem is to create a SessionFactory once in such a way that all my actions can easily

Re: [S2] dynamic update in hibernate ?

2007-05-09 Thread Laurie Harper
Wiyanto Ngasinur wrote: hi, i've some form in struts 2 doing update with hibernate ? i've add some attribute that need updated in form but not all attribute in table i put in the form. when i do update, it get error null exception. i don't understand why hibernate trying

[S2] dynamic update in hibernate ?

2007-05-09 Thread Wiyanto Ngasinur
hi, i've some form in struts 2 doing update with hibernate ? i've add some attribute that need updated in form but not all attribute in table i put in the form. when i do update, it get error null exception. i don't understand why hibernate trying to set null the attribute that i

Re: [S2] hibernate and interceptors

2007-05-04 Thread Laurie Harper
help me and send me example code its very urgent for me Which Struts version? S1: S2: I don't know what this has to do with hibernate and interceptors though... ObWhine: please don't post unrelated questions to an existing thread. Be sure to start a new thread (with an appropriat

Re: [S2] hibernate and interceptors

2007-05-04 Thread jalal udeen
hi can any body tell how to display the session value in jsp using struts tag i have set the session value in action class as session.setAttribute("candidatename",request.getParameter ("name")); i want to display this name in jsp page pls help me and send me example code its very ur

Re: [S2] hibernate and interceptors

2007-05-03 Thread Dave Newton
my actions, but my > interceptors fails with lazy > loading errors. How do I hibernate enable my > interceptors ? What order are your filters listed in? d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail

[S2] hibernate and interceptors

2007-05-03 Thread Flemming Seerup
I'm using org.springframework.orm.hibernate3.support.OpenSessionInViewFilter with this mapping in web.xml hibernateFilter /* It's working just fine for my actions, but my interceptors fails with lazy loading errors. How do I hibernate enable my in

Re: proble in configuring hibernate with struts 2

2007-03-27 Thread Dave Newton
--- struts2 <[EMAIL PROTECTED]> wrote: > I don't want 2 getter/setter one in action and one > for hibernate pojo. I want to use the same for both. Expose the POJO in the action and use the fieldnames in the JSP: etc. > how do i can configure that in servlet.xml. In spri

proble in configuring hibernate with struts 2

2007-03-27 Thread struts2
hi all, i am trying to configure a same application with hibernate. I have a login.jsp and login.java(action) class. right now i am using my action class to check user name and password values entered by user against the one hard coded in the clas. Now i want database connectivity with hibernate

struts2+spring+hibernate multiple datasources

2007-03-23 Thread Philippe Le Gal
Hi, I'm looking for an example for the access of multiple datasources (mysql) on different mysql servers. Is the solution to put many declarations of in applicationcontext.xml? Thx in advance Philippe - To unsubscribe, e-ma

Re: [OT] Re: Struts 2.0.6, Spring 2.0.2, Hibernate 3.2 Issue

2007-03-08 Thread Ravi Mangalagiri
Its all working now. I moved the OpenSessionInViewFilter all the way up in web.xml and it works fine.. Thanks a lot -ravi On 3/7/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- Ravi Mangalagiri wrote: > I did move OpenSessionInViewFilter all the way > up. no luck

Re: [OT] Re: Struts 2.0.6, Spring 2.0.2, Hibernate 3.2 Issue

2007-03-07 Thread Dave Newton
--- Ravi Mangalagiri wrote: > I did move OpenSessionInViewFilter all the way > up. no luck Did you also try setting the init-params? What is your current_session_context_class set to? connection.release_mode? transaction.factory_class? d. __

Re: Struts 2.0.6, Spring 2.0.2, Hibernate 3.2 Issue

2007-03-07 Thread Mike Baroukh
agiri <[EMAIL PROTECTED]> wrote: > When I debug . looks like the OpenSessionInViewFilter > keeps the session open after the jsp is painted. I don't > understand why the session is not kept open around the actual > action method executed. This is a Hibernate issue, no

[OT] Re: Struts 2.0.6, Spring 2.0.2, Hibernate 3.2 Issue

2007-03-07 Thread Dave Newton
--- Ravi Mangalagiri wrote: > Thats what I though initially but it doesn't look > that way... To me that makes it look even *more* that way since now the filter is active because you've defined the filter after the initial Action. When you now call an Action from within a JSP the filter wo

Re: Struts 2.0.6, Spring 2.0.2, Hibernate 3.2 Issue

2007-03-07 Thread Ravi Mangalagiri
> understand why the session is not kept open around the actual > action method executed. This is a Hibernate issue, not S2. I am using the OpenSessionInView filter with no difficulties; the issues I have had in the past have been related to either how the DAOs are generated (I modified th

Re: [OT] Re: Struts 2.0.6, Spring 2.0.2, Hibernate 3.2 Issue

2007-03-07 Thread Ravi Mangalagiri
Dave, I did move OpenSessionInViewFilter all the way up. no luck Mike, I don't have any *.do in web.xml . all my actions use *.action suffix -ravi On 3/7/07, Ravi Mangalagiri <[EMAIL PROTECTED]> wrote: I did .. same thing On 3/7/07, Dave Newton <[EMAIL PROTECTED]

Re: [OT] Re: Struts 2.0.6, Spring 2.0.2, Hibernate 3.2 Issue

2007-03-07 Thread Ravi Mangalagiri
I did .. same thing On 3/7/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- Ravi Mangalagiri wrote: > Thats what I though initially but it doesn't look > that way... To me that makes it look even *more* that way since now the filter is active because you've defined the filter

Re: Struts 2.0.6, Spring 2.0.2, Hibernate 3.2 Issue

2007-03-07 Thread Dave Newton
--- Ravi Mangalagiri <[EMAIL PROTECTED]> wrote: > When I debug . looks like the OpenSessionInViewFilter > keeps the session open after the jsp is painted. I don't > understand why the session is not kept open around the actual > action method executed. This is a Hibe

Struts 2.0.6, Spring 2.0.2, Hibernate 3.2 Issue

2007-03-07 Thread Ravi Mangalagiri
It all started when I tried to lazy load a associated object. I have my app fully integrated with struts, spring and hibernate. Use Case: I call a simple action, in my action class, I get the business object through the dao which has spring transaction boundaries set. In my jsp I get the

Struts 2.0.6, Spring 2.0.2, Hibernate 3.2 Issue

2007-03-07 Thread Ravi Mangalagiri
It all started when I tried to lazy load a associated object. I have my app fully integrated with struts, spring and hibernate. Use Case: I call a simple action, in my action class, I get the business object through the dao which has spring transaction boundaries set. In my jsp I get the

Re: struts/hibernate/tomcat question

2007-01-02 Thread uni
Hi Rick, I am using a utility class as proposed in the book "Hibernate in Action". The session and the transaction is stored in a ThreadLocal. The utility class itself has the following methods: - getSession / closeSession - beginTransaction / commitTransaction / rollbackTransacti

struts/hibernate/tomcat question

2007-01-02 Thread Rick Schumeyer
The examples I have seen (in S1) for using hibernate with struts involve using a plugin which creates a hibernate sessionFactory and stores it in session context. Each Action then retrieves the sessionFactory from the session and passes it to a model bean. It is my understanding that if I

RE: Struts with hibernate

2006-10-19 Thread MADISHETTY, ASHOK [AG-Contractor/8042]
Subject: reg:Struts with hibernate hai, I am working on struts with hibernate.I included all jar file into libraries. Whenever i am deplyong and execute firstjsp it faces the problem like java.lang.NoClassDefFoundError: org/hibernate/Session action.EmployeeAction.execute(EmployeeAction.java

reg:Struts with hibernate

2006-10-19 Thread Gomathi
hai, I am working on struts with hibernate.I included all jar file into libraries. Whenever i am deplyong and execute firstjsp it faces the problem like java.lang.NoClassDefFoundError: org/hibernate/Session action.EmployeeAction.execute(EmployeeAction.java:31

Re: [HELP][Struts 2] problem initializing hibernate in spring xml file

2006-09-08 Thread David Durham
This is a mysql related issue. Garner Shawn wrote: ERROR main org.hibernate.tool.hbm2ddl.SchemaExport - Access denied for user: '[EMAIL PROTECTED]' to database 'agejsoft' ERROR main org.hibernate.tool.hbm2ddl.SchemaExport - Unsuccessful: create table products (product_id integer not null auto_in

RE: RE: [HELP][S2] spring configuration of hibernate

2006-09-08 Thread David Friedman
Hibernate C3P0 is (or used to be) the default connection pooling mechanism for Hibernate. I believe it is auto detected unless you specify another connection pool in your hibernate.cfg.xml or hibernate.properties files. The C3P0 project can be found at http://c3p0.sourceforge.net and these links

[HELP][Struts 2] problem initializing hibernate in spring xml file

2006-09-08 Thread Garner Shawn
ERROR main org.hibernate.tool.hbm2ddl.SchemaExport - Access denied for user: '[EMAIL PROTECTED]' to database 'agejsoft' ERROR main org.hibernate.tool.hbm2ddl.SchemaExport - Unsuccessful: create table products (product_id integer not null auto_increment, product_name varchar(255), product_desc varc

Re: [HELP][S2] spring configuration of hibernate

2006-09-07 Thread Ted Husted
With Struts 2, something to keep in mind is that it already uses Spring under the covers. There should already be a Spring 1.2.8 listener included the default web.xml. Generally, you can just put applicationContext.xml in the WEB-INF and have at it. Using Hibernate with Struts 2 shouldn't

RE: RE: [HELP][S2] spring configuration of hibernate

2006-09-07 Thread Garner Shawn
What is all this hibernate.c3p0 stuff and where can I find documentation on what to use? Where can I find the spring-hibernate3 examples at? Last I knew the props were just suppose to be prefixed with "hibernate." Thanks, Shawn -- Forwarded message -- From: "

RE: [HELP][S2] spring configuration of hibernate

2006-09-07 Thread David Friedman
I do things a little differently in my spring 2.0 + hibernate3.2.0.cr2 config (and it sure looks like you are using a spring 2.0 release candidate to get the destroy-method attribute). Just note that my someDAO name of class example.MyHibernateDAOImpl extends HibernateDAOSupport and implements exa

[HELP][S2] spring configuration of hibernate

2006-09-06 Thread Garner Shawn
create classpath:/com/age/j/soft/hibernate I'm using Tomcat 5.5.17 and all the logg

Re: [shale] and ejb 3.0 and hibernate working together example

2006-07-05 Thread stephan opitz
it works as ear project with access to the ejbs by prewriting the ear-archive name 2006/7/1, stephan opitz <[EMAIL PROTECTED]>: i've looked hours for it and it didn't work... using eclipse... also examples from inet whicht i imported in eclipse... out-of-container ejb shouldn't be that problem

Re: Struts and Hibernate

2006-07-03 Thread Adam Hardy
Hi David, there is no default mechanism to get struts to manipulate a Hibernate pojo with child objects like that. You have to manually find the user from lesUtilisateurs and then set it on the Task. You can do the read automatically though using dot notation as you have already tried. Adam

Struts and Hibernate

2006-07-03 Thread DOUILLARD David
Hello, I'm working on struts and hibernate. J'ai une tache qui est affectée à un utilisateur. I have a Actionform named Task. Private Integer code ; Private String codeus ; // Login of user Private String libelle; I have also a POJO Task. Private Integer code; Private User user;

Re: [shale] and ejb 3.0 and hibernate working together example

2006-07-01 Thread stephan opitz
i've looked hours for it and it didn't work... using eclipse... also examples from inet whicht i imported in eclipse... out-of-container ejb shouldn't be that problem but it is... i've used the glassfish reference implementation. also built a jar containing the meta-inf (& persistence.xml) craig

Re: [shale] and ejb 3.0 and hibernate working together example

2006-06-30 Thread Craig McClanahan
On 6/30/06, Adam Brod <[EMAIL PROTECTED]> wrote: I had to put my directory structure like this: [mywebapp]\WEB-INF\classes\META-INF\persistence.xml It didn't work when I put it in a top-level META-INF directory. It also works if the persistence.xml file is in the META-INF directory of a jar

Re: [shale] and ejb 3.0 and hibernate working together example

2006-06-30 Thread Adam Brod
pond to "Struts Users Mailing List" To "Struts Users Mailing List" cc Subject Re: [shale] and ejb 3.0 and hibernate working together example hello, i defined my ejb 3.0... created a persistence.xml with a pu in the meta-inf folder. using eclipse with maven2 plugin

Re: [shale] and ejb 3.0 and hibernate working together example

2006-06-30 Thread stephan opitz
ght now writing on an application using mailreader as base... thats why it will be great using/learning from yours... using hibernate and ejb 3.0 is not so simple - i could find an example... maybe you have one? or can implement an how to look like in mailreader? stephan 2006/6/29, Craig McClanahan <

Re: [shale] and ejb 3.0 and hibernate working together example

2006-06-29 Thread stephan opitz
thx... thats great... i learned on studying the mailreader example... when it is ready to service... i'm right now writing on an application using mailreader as base... thats why it will be great using/learning from yours... using hibernate and ejb 3.0 is not so simple - i could fi

Re: [shale] and ejb 3.0 and hibernate working together example

2006-06-29 Thread Craig McClanahan
On 6/29/06, stephan opitz <[EMAIL PROTECTED]> wrote: hello... does exist any kind of good example which include in the controller component hibernate with normal pojos or maybe already ejb 3.0??? I am almost through with a Shale+EJB3 (well, actually its Shale+JPA) example. It's

[shale] and ejb 3.0 and hibernate working together example

2006-06-29 Thread stephan opitz
hello... does exist any kind of good example which include in the controller component hibernate with normal pojos or maybe already ejb 3.0??? stephan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: hibernate

2006-05-08 Thread Kumar deepak
Hi, Please have a look at http://www.roseindia.net/hibernate. Regards Deepak Kumar "Manopriya Jagadeesan , Tidel Park - Chennai" <[EMAIL PROTECTED]> wrote: Hi all, I need a good start for hibernate.Can anyone suggest

Re: FW: StrutsTestCase & Hibernate

2006-05-06 Thread Adam Hardy
I think unit tests on everything are always a good idea - the problem comes if you start making them 'more' than just unit tests. Ideally you should be able to unit test action classes quickly with mock objects or stubs for both the business tier below and the MVC controller tier above. Stru

<    1   2   3   4   5   6   7   8   9   10   >