Using validation with Hibernate...

2008-11-13 Thread Burton Rhodes
I am having trouble getting Struts 2.x to implement validation and hibernate using the HibernateSessionRequestFilter (the pattern suggested on Hibernate.org). When the validation fails, Hibernate will still update the object in the database when the HibernateFilter closes the transaction. I get

Re: Using validation with Hibernate...

2008-11-13 Thread Adam Ruggles
Use a struts interceptor instead of a servlet filter. That way you can check the return type of the action that gets executed and respond appropriately. Burton Rhodes wrote: I am having trouble getting Struts 2.x to implement validation and hibernate using

Re: Using validation with Hibernate...

2008-11-13 Thread Burton Rhodes
getting Struts 2.x to implement validation and hibernate using the HibernateSessionRequestFilter (the pattern suggested on Hibernate.org). When the validation fails, Hibernate will still update the object in the database when the HibernateFilter closes the transaction. I get why this is happening

Re: Using validation with Hibernate...

2008-11-13 Thread Burton Rhodes
you can check the return type of the action that gets executed and respond appropriately. Burton Rhodes wrote: I am having trouble getting Struts 2.x to implement validation and hibernate using the HibernateSessionRequestFilter (the pattern suggested on Hibernate.org). When the validation

Re: Hibernate and Struts

2008-10-17 Thread Anoop
, jygnash [EMAIL PROTECTED] wrote: Hi Anoop, YOu can use the JNDI context to get the Hibernate's SessionFactory. 1) in hibernate-cfg.xml give the jndi name as below hibernate-configuration session-factory name=HibernateSessionFactory 2) in one of your startup servlet or first class handling

Re: Hibernate and Struts

2008-10-16 Thread Hardik Shah
hope this help to you http://hardik4u.wordpress.com Anoop-9 wrote: Hi, We are looking forward to integrating struts with hibernate in our web application project. Could you guide us on how to to integrate them. I tried the hibernate plugin as recommended on the hibernate website

Re: Hibernate and Struts

2008-10-16 Thread jygnash
Hi Anoop, YOu can use the JNDI context to get the Hibernate's SessionFactory. 1) in hibernate-cfg.xml give the jndi name as below hibernate-configuration session-factory name=HibernateSessionFactory 2) in one of your startup servlet or first class handling the request for session

Re: Hibernate and Struts

2008-10-15 Thread Mead Lai
haven't use this plug before. but I think Spring-plug-in, would be better! It's less config! On Wed, Oct 15, 2008 at 11:04 AM, Anoop [EMAIL PROTECTED] wrote: Hi, We are looking forward to integrating struts with hibernate in our web application project. Could you guide us on how

Hibernate and Struts

2008-10-14 Thread Anoop
Hi, We are looking forward to integrating struts with hibernate in our web application project. Could you guide us on how to to integrate them. I tried the hibernate plugin as recommended on the hibernate website, however that throws a null pointer exception(when i try to instantiate a session

Stuts-hibernate integration.

2008-10-12 Thread Anoop
Hi, I am working on a project of developing a web application and we have decided to use struts and hibernate together. The problem is in their integration and getting them to work together. I used the struts-hibernate plugin code given at the hibernate site http://www.hibernate.org/105.html. I

Re: Preparable influence hibernate transaction management when using OpenSessionInViewFilter

2008-09-29 Thread Gabriel Belingueres
commits the session and perform the update? I thought it is read-only? But I agree with your idea and and I can see that from the logs the session is closed with the hibernate update. I just do not know why and how this happens. cheers Jack Gabriel Belingueres-2 wrote: I suspect

Re: Preparable influence hibernate transaction management when using OpenSessionInViewFilter

2008-09-28 Thread alvins
in the prepare method. When submit the form, it is loaded again before action's execute() method, then the ParametersInterceptor updates the POJO field, and at the end the OpenSessionInViewFilter commits the Session with the POJO's fields modified, so Hibernate performs the update. 2008/9/24

Re: Preparable influence hibernate transaction management when using OpenSessionInViewFilter

2008-09-28 Thread Jack_Ryde
commits the session and perform the update? I thought it is read-only? But I agree with your idea and and I can see that from the logs the session is closed with the hibernate update. I just do not know why and how this happens. cheers Jack Gabriel Belingueres-2 wrote: I suspect that in case

Re: Preparable influence hibernate transaction management when using OpenSessionInViewFilter

2008-09-28 Thread Jack_Ryde
OpenSessionInViewFilter, hibernate transaction management. Background: We use OpenSessionInViewFilter in our web xml to enable lazy loading in web views. The struts action class provides a basic function in adding, updating and deleting data entity as a controller. Our form fields reference

RE: Preparable influence hibernate transaction management when using OpenSessionInViewFilter

2008-09-28 Thread Martin Gainty
@struts.apache.org Subject: Re: Preparable influence hibernate transaction management when using OpenSessionInViewFilter Thanks for your reply, Gabriel. First of all, in both A and B, we use the same action class variable (POJO) to represent the entity bean. The only difference is the initialize

Re: Preparable influence hibernate transaction management when using OpenSessionInViewFilter

2008-09-25 Thread Gabriel Belingueres
action's execute() method, then the ParametersInterceptor updates the POJO field, and at the end the OpenSessionInViewFilter commits the Session with the POJO's fields modified, so Hibernate performs the update. 2008/9/24 Jack_Ryde [EMAIL PROTECTED]: Keyword: struts2 preparable, spring

Preparable influence hibernate transaction management when using OpenSessionInViewFilter

2008-09-24 Thread Jack_Ryde
Keyword: struts2 preparable, spring OpenSessionInViewFilter, hibernate transaction management. Background: We use OpenSessionInViewFilter in our web xml to enable lazy loading in web views. The struts action class provides a basic function in adding, updating and deleting data entity

Newbie Help: Struts 2 + Spring + Hibernate

2008-09-24 Thread Ryan Detert
but always placed in different locations. For my first app, all I want to do is create a form and have the submitted values placed in a database table. Simple. For my current webapp, I have used a command like this I've had to add a few modules like hibernate to the pom.xml: mvn archetype:create

Re: Newbie Help: Struts 2 + Spring + Hibernate

2008-09-24 Thread David C. Hicks
file. I often use mvn install because it builds, runs unit tests, packages, and installs the artifact in your repository. There are easily a dozen different ways to use Maven to build at various levels. As for hibernate mappings, just don't. I've found that the JPA annotations are cleaner

Re: Struts 2 Hibernate Examples?

2008-09-07 Thread tom` frost
STruts 2 in action has a good chapter on it. On Sat, Aug 30, 2008 at 5:52 AM, Andrew Myers [EMAIL PROTECTED] wrote: Hi, I was hoping someone may be able to send me some links to some useful tutorials or sample apps using Struts 2 and Hibernate, or failing that any good books that might

Re: Struts 2 Hibernate Examples?

2008-09-02 Thread Hardik Shah
this message in context: http://www.nabble.com/Struts-2---Hibernate-Examples--tp19232693p19267363.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: Struts 2 Hibernate Examples?

2008-09-02 Thread Deepak Kumar
Hi Please check http://www.roseindia.net/hibernate http://www.roseindia.net/struts/struts2 Thanks -Original Message- From: Hardik Shah [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 02, 2008 3:33 PM To: user@struts.apache.org Subject: Re: Struts 2 Hibernate Examples? you can

Struts 2 Hibernate Examples?

2008-08-30 Thread Andrew Myers
Hi, I was hoping someone may be able to send me some links to some useful tutorials or sample apps using Struts 2 and Hibernate, or failing that any good books that might guide me through this. Any advice would be greatly appreciated. Thanks! Andrew

RE: Struts 2 Hibernate Examples?

2008-08-30 Thread Deepak Kumar
HI, Please check http://www.roseindia.net/struts/struts2 Thanks -Original Message- From: Andrew Myers [mailto:[EMAIL PROTECTED] Sent: Saturday, August 30, 2008 5:23 PM To: user@struts.apache.org Subject: Struts 2 Hibernate Examples? Hi, I was hoping someone may be able to send me

Re: Struts 2 Hibernate Examples?

2008-08-30 Thread Al Sutton
There's an article in the wiki at http://cwiki.apache.org/S2WIKI/struts-2-spring-2-jpa-ajax.html Al. Andrew Myers wrote: Hi, I was hoping someone may be able to send me some links to some useful tutorials or sample apps using Struts 2 and Hibernate, or failing that any good books that might

RE: RE: Struts2 with JPA/Hibernate using Spring

2008-08-28 Thread Deepak Kumar
Hi, Please check the complete example at http://www.roseindia.net/struts/hibernate-spring/ Thanks -Original Message- From: Håkan Jacobsson [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2008 1:25 AM To: user@struts.apache.org Subject: Ang: RE: Struts2 with JPA/Hibernate using

Re: Struts2 with JPA/Hibernate using Spring

2008-08-28 Thread Edwin Quita
, Aug 27, 2008 at 1:29 PM, Håkan Jacobsson [EMAIL PROTECTED] wrote: Hi, I have a Struts2 web application. I'm using Spring (for autowiring of dependency injection) to integrate JPA and Hibernate in the web app. It's working fine. Now I need to separate the JPA/Hibernate classes into a separate

Struts2 with JPA/Hibernate using Spring

2008-08-27 Thread Håkan Jacobsson
Hi, I have a Struts2 web application. I'm using Spring (for autowiring of dependency injection) to integrate JPA and Hibernate in the web app. It's working fine. Now I need to separate the JPA/Hibernate classes into a separate jar file (the web app will have this jar file as a dependency). How

RE: Struts2 with JPA/Hibernate using Spring

2008-08-27 Thread Martin Gainty
://java.sun.com/xml/ns/persistence/persistence_1_0.xsd example hibernate data-source configured would be petclinic sample ./META-INF/application-context.xml beans bean id=dataSource class=org.springframework.jdbc.datasource.DriverManagerDataSource property name

Ang: RE: Struts2 with JPA/Hibernate using Spring

2008-08-27 Thread Håkan Jacobsson
Martin, Big thanx for a quick answer! If I understand you correctly - both persistence.xml and applicationContext. xml can be placed together with the JPA/Hibernate classes in a jarfile located in WEB-INF/lib in the web app? /regards, Håkan Ursprungligt meddelande Från: [EMAIL

Re: struts-hibernate-mysql date problem

2008-08-24 Thread Dustin Pearce
RuntimeException(Cannot convert + source + to calendar type); } } else if (aClass == String.class) { Date o = (Date) object; return df.format(o); } return null; } } On Aug 22, 2008, at 3:31 AM, Hardik Shah wrote: hi i am using hibernate 3

struts-hibernate-mysql date problem

2008-08-22 Thread Hardik Shah
hi i am using hibernate 3 with s2 my problem is that im mysql table i have field of date type so i have set type date in hb mapping.xml and in pojo(if i am set as string in pojo and mapping file it gives error ) now i have to set date in input as format mm/dd/yy so mysql accepts

Re: struts-hibernate-mysql date problem

2008-08-22 Thread Stephan Schröder
quick and dirty solution: i know that this works if you use hibernate with annotations so i'm certain that there is a possibility to do it with xml. With annotations you can declare whether the data is extracted directly from the property or indirectly over the getter-method of the property

RE: struts-hibernate-mysql date problem

2008-08-22 Thread Nataraj Somaraju
and ParsePosition) Regards Nataraj Tata Consultancy Services No- 9985834848 -Original Message- From: Hardik Shah [mailto:[EMAIL PROTECTED] Sent: Friday, August 22, 2008 4:02 PM To: user@struts.apache.org Subject: struts-hibernate-mysql date problem hi i am

Hibernate UserType and OGNL

2008-08-14 Thread Kropp, Henning
Hi, I am trying to implement a hibernate UserType for all the monetary amounts in my application. I follow the example given in Manning - Java Persistence with Hibernate Chapter 5.3 . I am having difficulties to set and retrieve the value from a jsp due to a lack of understanding how

Re: Hibernate UserType and OGNL

2008-08-14 Thread Lukasz Lenart
( also tried: s:textfield key=bid.amount.amount / ) This is correct public Monetary getAmount() { return amount; } and Monetary beeing: public class Monetary implements Serializable{ private final BigDecimal amount; private final Currency currency; public Monetary(BigDecimal

RE: Hibernate UserType and OGNL

2008-08-14 Thread Martin Gainty
. Date: Thu, 14 Aug 2008 14:19:59 +0200 From: [EMAIL PROTECTED] To: user@struts.apache.org Subject: Re: Hibernate UserType and OGNL ( also tried: s:textfield key=bid.amount.amount / ) This is correct public Monetary getAmount() { return amount; } and Monetary beeing: public

Re: Hibernate UserType and OGNL

2008-08-14 Thread Kropp, Henning
Lukasz Lenart schrieb: ( also tried: s:textfield key=bid.amount.amount / ) This is correct public Monetary getAmount() { return amount; } and Monetary beeing: public class Monetary implements Serializable{ private final BigDecimal amount; private final Currency currency;

Using the iterator to list results from a hibernate join

2008-07-22 Thread Brian Daddino
pair. What I would like to display is the name and all contactmethods in 1 list Example: John Smith phone 555-1212 John Smith fax 555-2323 mailto:[EMAIL PROTECTED] My hibernate query returns a list. List l = session.createQuery(FROM Contact c left join c.contactmethodses).list

Re: Using the iterator to list results from a hibernate join

2008-07-22 Thread Dave Newton
--- On Tue, 7/22/08, Brian Daddino [EMAIL PROTECTED] wrote: I'm new to Struts 2. I have searched the web but can not find anything on my issue. Did you look at the S2 documentation wiki? It answers these questions. What do I put in the value field of my property tag? Here's some

RE: [SPAM] - Re: Using the iterator to list results from a hibernate join - Email has different SMTP TO: and MIME TO: fields in the email addresses

2008-07-22 Thread Brian Daddino
I did look, but I could not find it. Do you have a link? -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2008 11:34 AM To: Struts Users Mailing List Subject: [SPAM] - Re: Using the iterator to list results from a hibernate join - Email has

RE: [SPAM] - Re: Using the iterator to list results from a hibernate join - Email has different SMTP TO: and MIME TO: fields in the email addresses

2008-07-22 Thread Dave Newton
--- On Tue, 7/22/08, Brian Daddino [EMAIL PROTECTED] wrote: I did look, but I could not find it. Do you have a link? http://struts.apache.org/2.x/docs/home.html Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: [SPAM] - Re: Using the iterator to list results from a hibernate join - Email has different SMTP TO: and MIME TO: fields in the email addresses

2008-07-22 Thread Brian Daddino
missing something still? -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2008 12:09 PM To: Struts Users Mailing List Subject: RE: [SPAM] - Re: Using the iterator to list results from a hibernate join - Email has different SMTP TO: and MIME TO: fields

RE: [SPAM] - Re: Using the iterator to list results from a hibernate join - Email has different SMTP TO: and MIME TO: fields in the email addresses

2008-07-22 Thread Brian Daddino
, July 22, 2008 12:09 PM To: Struts Users Mailing List Subject: RE: [SPAM] - Re: Using the iterator to list results from a hibernate join - Email has different SMTP TO: and MIME TO: fields in the email addresses --- On Tue, 7/22/08, Brian Daddino [EMAIL PROTECTED] wrote: I did look, but I could

RE: [SPAM] - Re: Using the iterator to list results from a hibernate join - Email has different SMTP TO: and MIME TO: fields in the email addresses

2008-07-22 Thread Dave Newton
--- On Tue, 7/22/08, Brian Daddino wrote: Instead of making my join in the query, I am just querying out my contacts and using 2 iterators... s:iterator value=contacts status=status s:iterator value=contactmethodses status=status s:property value=firstName/ s:property

Jasypt and Struts2/Spring/JPA(Hibernate)

2008-06-27 Thread Esteve Camps Chust
Hi, has anyone coded this? May you send any example? Thanks to all ;) Esteve

Re: Jasypt and Struts2/Spring/JPA(Hibernate)

2008-06-27 Thread Dave Newton
at [1] (although it doesn't look like anybody has edited it much lately). The Jasypt page has examples with both Hibernate and Spring--have you considered reading the Jasypt documentation? Dave - To unsubscribe, e-mail: [EMAIL

Re: Jasypt and Struts2/Spring/JPA(Hibernate)

2008-06-27 Thread Esteve Camps Chust
anybody has edited it much lately). The Jasypt page has examples with both Hibernate and Spring--have you considered reading the Jasypt documentation? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Jasypt and Struts2/Spring/JPA(Hibernate)

2008-06-27 Thread Dave Newton
and Struts2/Spring/JPA(Hibernate) To: Struts Users Mailing List user@struts.apache.org, [EMAIL PROTECTED] Date: Friday, June 27, 2008, 7:29 AM ok Dave, for the moment I had no found what I was looking for, but it's true sometime's we ask to lists before accessing the docs. I will take a look

Re: Struts 2 And Hibernate Problem

2008-06-26 Thread cree
action. When I leave the page and come to it again the same class [EMAIL PROTECTED] is on the value stack and is what becomes invoked. This would explain why the list of persistent objects is still showing. However in my other struts 2 environment where I am not using hibernate nor spring

Re: Struts 2 And Hibernate Problem

2008-06-26 Thread Lukasz Lenart
Hi, Are you using spring to instantiate your actions? If so, did you setup to not use singletons? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Struts 2 And Hibernate Problem

2008-06-26 Thread cree
-And-Hibernate-Problem-tp18121609p18140542.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Struts 2 And Hibernate Problem

2008-06-25 Thread cree
Hello, I recently have been working on a struts 2 + spring 2 + hibernate system and have come across a problem that I never have when just working on a struts 2 system. I have two action classes, one that prepares the jsp and populates some selects for the user to choose from, and another

Re: Struts 2 hibernate session-per-request

2008-06-17 Thread Laurie Harper
a database 'session'? a Hibernate session? something else?). IIRC, though, your previous problem *was* about web application sessions, as in unwanted sharing of session-scoped data. Perhaps you could explain what you mean by session-per-request? L

Re: Struts 2 hibernate session-per-request

2008-06-17 Thread Al Sutton
2? The term 'session-per-request' doesn't really make a lot of sense, unless you are using 'session' to mean something other than a web application session (perhaps a database 'session'? a Hibernate session? something else?). IIRC, though, your previous problem *was* about web application

Re: Struts 2 hibernate session-per-request

2008-06-17 Thread Antonio Petrelli
2008/6/17 Márcio Gurgel [EMAIL PROTECTED]: Does anyone knows how to implement a session-per-request in Struts 2? If you mean a Hibernate session, you have to implement the Open Session In View pattern, for example using a filter. http://www.hibernate.org/43.html If you are using Spring

Re: Struts 2 hibernate session-per-request

2008-06-17 Thread Márcio Gurgel
I'm gonna try your sugestions and post the result. Thanks a lot! Márcio Gurgel 2008/6/17 Antonio Petrelli [EMAIL PROTECTED]: 2008/6/17 Márcio Gurgel [EMAIL PROTECTED]: Does anyone knows how to implement a session-per-request in Struts 2? If you mean a Hibernate session, you have

Struts 2 hibernate session-per-request

2008-06-16 Thread Márcio Gurgel
Hi Everyone, Some time ago I asked you about a problem with old objects in session. I noted that my application is using diferent sessions to recovery a data from db. Some times the application shows the corect result, other shows old results (with old session). I guess that if I use

integration struts hibernate

2008-05-21 Thread jamiladah
m'aider et me dire qu'est ce que je dois configurer(quels sont les fichiers a modifier)?comment faire? je suis perdu merci d'avance. -- View this message in context: http://www.nabble.com/integration-struts-hibernate-tp17358815p17358815.html Sent from the Struts - User mailing list archive

Re: integration struts hibernate

2008-05-21 Thread Antonio Petrelli
me dire qu'est ce que je dois configurer(quels sont les fichiers a modifier)?comment faire? je suis perdu merci d'avance. -- View this message in context: http://www.nabble.com/integration-struts-hibernate-tp17358815p17358815.html Sent from the Struts - User mailing list archive

use hibernate with struts

2008-05-21 Thread jamiladah
hello, i am building my first application with struts,to connect to my database i used a jdbc driver. now i like to use an ORM (hibernate) for the connection to my database. i don t know how to procede ?what are they the necessary configuration file to modify? can someone help me. please

Re: use hibernate with struts

2008-05-21 Thread Jim Kiley
i like to use an ORM (hibernate) for the connection to my database. i don t know how to procede ?what are they the necessary configuration file to modify? can someone help me. please -- View this message in context: http://www.nabble.com/use-hibernate-with-struts-tp17359204p17359204.html

Re: Struts2 Portlet and Hibernate lazy-loading

2008-05-10 Thread Nils-Helge Garli Hegvik
OpenSessionInViewFilter, what is the recommended approach to the Hibernate lazy-load issue with Struts2 portlets? The Spring Portlet MVC framework has the OpenSessionInViewInterceptor in conjunction with their HandlerMapping structure to solve this issue. Is there something that can be done like

Struts2 Portlet and Hibernate lazy-loading

2008-05-09 Thread Parker Grimes
Hi, Since portlets cannot use servlet session filters like the Spring OpenSessionInViewFilter, what is the recommended approach to the Hibernate lazy-load issue with Struts2 portlets? The Spring Portlet MVC framework has the OpenSessionInViewInterceptor in conjunction with their HandlerMapping

Re: Struts - Spring - hibernate and lazy initialization

2008-04-02 Thread Gabriel Belingueres
-delegates-managers and daos and I use the open session in view filter from hibernate. In some cases I've got to return lazy results to the user so I've got to launch a new worker thread and taht new one doesn't have an hibernate session attached so I've added hibernateInterceptors to my managers

Re: Struts - Spring - hibernate and lazy initialization

2008-04-02 Thread Adam Hardy
Yayo on 02/04/08 20:23, wrote: I'm developing a struts - spring based application. I've got actions-delegates-managers and daos and I use the open session in view filter from hibernate. In some cases I've got to return lazy results to the user so I've got to launch a new worker thread

Re: Struts - Spring - hibernate and lazy initialization

2008-04-02 Thread Yayo
. Also I may want to launch my workers using Quartz scheduling features but... A new thread doesn't have an Hibernate Session attached to it. Now the circular reference. When I add proxies to my manager layer with an hibernateInterceptor wich needs a sessionFactory. Under the managers

Re: [OT] Struts - Spring - hibernate and lazy initialization

2008-04-02 Thread Laurie Harper
This isn't really a Struts issue, since you're asking how to drive your service/dao layout from a thread outside the context of a Struts-served request. What you need to do in that case is to manage the Hibernate session from your worker thread. The thread needs to setup and open the Hibernate

Re: [OT] Struts - Spring - hibernate and lazy initialization

2008-04-02 Thread Yayo
. What you need to do in that case is to manage the Hibernate session from your worker thread. The thread needs to setup and open the Hibernate session before starting its work, and clean it up afterwards. Since you're using Spring to wire your dependencies, you probably need to go through Spring

Re: Struts 2 issue with Spring, Hibernate, and Tiles

2008-03-06 Thread Kelly.Graus
file? Kelly -- View this message in context: http://www.nabble.com/Struts-2-issue-with-Spring%2C-Hibernate%2C-and-Tiles-tp15866292p15878118.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe

Re: Struts 2 issue with Spring, Hibernate, and Tiles

2008-03-06 Thread Othon Reyes Sanchez
. Is there somewhere in the log when the server starts up that shows if it's even using my struts.xml file? Kelly -- View this message in context: http://www.nabble.com/Struts-2-issue-with-Spring%2C-Hibernate%2C-and-Tiles-tp15866292p15878118.html Sent from the Struts - User mailing list archive

Re: Struts 2 issue with Spring, Hibernate, and Tiles

2008-03-06 Thread Othon Reyes Sanchez
even using my struts.xml file? Kelly -- View this message in context: http://www.nabble.com/Struts-2-issue-with-Spring%2C-Hibernate%2C-and-Tiles-tp15866292p15878118.html Sent from the Struts - User mailing list archive at Nabble.com

Re: Struts 2 issue with Spring, Hibernate, and Tiles

2008-03-06 Thread Dave Newton
--- Kelly.Graus [EMAIL PROTECTED] wrote: newton.dave wrote: I tried turning on devMode (added constant name=struts.devMode value=true / to my struts.xml file), but I didn't see any change. I'm thinking that in itself is indicative of a problem. I'm using Eclipse to publish and test this

Re: Struts 2 issue with Spring, Hibernate, and Tiles

2008-03-06 Thread Kelly.Graus
the server, and now my actions are working. So now I just need to get Eclipse to publish it to the correct location somehow. Thanks for the help! Kelly -- View this message in context: http://www.nabble.com/Struts-2-issue-with-Spring%2C-Hibernate%2C-and-Tiles-tp15866292p15879661.html Sent from

Re: Struts 2 issue with Spring, Hibernate, and Tiles

2008-03-06 Thread Othon Reyes Sanchez
-- View this message in context: http://www.nabble.com/Struts-2-issue-with-Spring%2C-Hibernate%2C-and-Tiles-tp15866292p15879661.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail

Re: Struts 2 issue with Spring, Hibernate, and Tiles

2008-03-06 Thread Kelly.Graus
Othon Reyes Sanchez wrote: are you using any plugin for eclipse like lomboz or myeclipse? No, I don't have any additional plugins installed (unless they come with the default Eclipse install). -- View this message in context: http://www.nabble.com/Struts-2-issue-with-Spring%2C-Hibernate

Re: Struts 2 issue with Spring, Hibernate, and Tiles

2008-03-06 Thread Othon Reyes Sanchez
-Hibernate%2C-and-Tiles-tp15866292p15879964.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts 2 issue with Spring, Hibernate, and Tiles

2008-03-06 Thread Dave Newton
--- Kelly.Graus [EMAIL PROTECTED] wrote: Well, it turns out that for some reason, Eclipse isn't publishing my struts.xml file when it's in the classes directory. Moving it to the WEB-INF directory causes it to be published, by it doesn't do anything there. I manually copied it to the correct

Re: Struts 2 issue with Spring, Hibernate, and Tiles

2008-03-06 Thread Kelly.Graus
commands, e-mail: [EMAIL PROTECTED] Hi Dave, That worked! Thanks! Kelly -- View this message in context: http://www.nabble.com/Struts-2-issue-with-Spring%2C-Hibernate%2C-and-Tiles-tp15866292p15880505.html Sent from the Struts - User mailing list archive at Nabble.com

Re: Struts 2 issue with Spring, Hibernate, and Tiles

2008-03-06 Thread Dave Newton
--- Kelly.Graus [EMAIL PROTECTED] wrote: That worked! Thanks! Ah, I remember when programming was a matter of toggling some front-panel switches. Deployment was much less complicated, if not more callus-y. Glad it got worked out :) Dave

Re: Struts 2 issue with Spring, Hibernate, and Tiles

2008-03-06 Thread Al Sutton
, March 06, 2008 5:46 PM Subject: Re: Struts 2 issue with Spring, Hibernate, and Tiles Well, it turns out that for some reason, Eclipse isn't publishing my struts.xml file when it's in the classes directory. Moving it to the WEB-INF directory causes it to be published, by it doesn't do anything

Struts 2 issue with Spring, Hibernate, and Tiles

2008-03-05 Thread Kelly Graus
Hello, I am trying to setup my first Struts 2 project with Spring, Hibernate, and Tiles (and only my second Struts 2 project). I think I have Spring, Hibernate, and Tiles all working correctly. I'm using Tomcat 6, with the newest released versions of Struts, Spring, Hibernate, and Tiles. I

Re: Struts 2 issue with Spring, Hibernate, and Tiles

2008-03-05 Thread Dave Newton
the config browser and see if it indicates any obvious issues and make sure that my action class is deployed correctly. Dave --- Kelly Graus [EMAIL PROTECTED] wrote: I am trying to setup my first Struts 2 project with Spring, Hibernate, and Tiles (and only my second Struts 2 project). I think

Re: HOw to send form parameters to dao in struts2 with hibernate?

2008-03-02 Thread RajiR
@struts.apache.org Date: Wed, 27 Feb 2008 22:23:26 -0800 (PST) To: user@struts.apache.org Subject: HOw to send form parameters to dao in struts2 with hibernate? Hi, By implementing Preparable,ModelDriven,ServletRequestAware interfaces,am able to get the form details and sent those details

Re: HOw to send form parameters to dao in struts2 with hibernate?

2008-03-02 Thread RajiR
-0800 (PST) To: user@struts.apache.org Subject: HOw to send form parameters to dao in struts2 with hibernate? 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

persistence and doubts on usage of hibernate in struts 2

2008-02-29 Thread Vinicius Cubas Brand
Hello. I am having a problem with the usage of hibernate and its persistence mechanism. I have an Action with a method for creation of an entity type and other method for updating. This action implements a Preparable and in its method prepare() I verify if the entity is being created

Re: persistence and doubts on usage of hibernate in struts 2

2008-02-29 Thread Toni Lyytikäinen
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter /filter-class init-param param-namesingleSession/param-name param-valuefalse/param-value /init-param Also, you can define the field to be unique in the Hibernate mapping. That way the object can only be persisted to database

RE: persistence and doubts on usage of hibernate in struts 2

2008-02-29 Thread Kedar Choudhary
I think you will get better answer to your question in hibernate mailing list, as the issue is related to hibernate rather than struts. To disable 'auto-saving' behavior, you can evict the object from hibernate session. So in your prepare method, call session.evict(operator). Then, to save

Re: HOw to send form parameters to dao in struts2 with hibernate?

2008-02-28 Thread sarat.pediredla
used only hibernate.Is it required to use springs inorder to inject dao?Or,can I inject using hibernate and struts2 alone?? And what is the use of interceptor concept?Does it help to do dao injection without using spring?If so,how to use it? Plzzz reply as early as possible

Re: HOw to send form parameters to dao in struts2 with hibernate?

2008-02-28 Thread RajiR
is not injected any where in struts.xml,its throwing nullpointerexception.I have used only hibernate.Is it required to use springs inorder to inject dao?Or,can I inject using hibernate and struts2 alone?? And what is the use of interceptor concept?Does it help to do dao injection without using spring

Re: HOw to send form parameters to dao in struts2 with hibernate?

2008-02-28 Thread Randy Burgess
Mailing List user@struts.apache.org Date: Wed, 27 Feb 2008 22:23:26 -0800 (PST) To: user@struts.apache.org Subject: HOw to send form parameters to dao in struts2 with hibernate? Hi, By implementing Preparable,ModelDriven,ServletRequestAware interfaces,am able to get the form details

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

RE: struts2+Spring+Hibernate Integration

2008-02-27 Thread RajiR
nullpointerexception.I have used only hibernate.Is it required to use springs inorder to inject dao?Or,can I inject using hibernate and struts2 alone?? Replies pl Thanks. RajiR wrote: Hi, In the link provided below,it uses struts1+hibernate+spring.I have done tht and trying

HOw to send form parameters to dao in struts2 with hibernate?

2008-02-27 Thread RajiR
nullpointerexception.I have used only hibernate.Is it required to use springs inorder to inject dao?Or,can I inject using hibernate and struts2 alone?? And what is the use of interceptor concept?Does it help to do dao injection without using spring?If so,how to use it? Plzzz reply as early

struts2+Spring+Hibernate Integration

2008-02-21 Thread RajiR
have loaded same jar double times,but tht's not tht problem.what might b the reason?Does any body came across this one? Also,the link: http://www.roseindia.net/struts/hibernate-spring/integrate.shtml helps in integrating struts1+hibernate+springs.But, since I would like to work with struts2

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

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]

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 session

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

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

<    1   2   3   4   5   6   7   8   9   >