RE: Struts Spring dependency

2015-02-20 Thread Tamer Erdogan
Thanks, I'll try it. -Original Message- From: Dave Newton [mailto:davelnew...@gmail.com] Sent: Friday, February 20, 2015 14:44 To: Struts Users Mailing List Subject: Re: Struts Spring dependency (Personally, I'd just try it.) If it's not being used, it's not being

Re: Struts Spring dependency

2015-02-20 Thread Dave Newton
(Personally, I'd just try it.) If it's not being used, it's not being used--we don't have any way of knowing if it *actually* isn't being used short of looking at it, but if you say it works without it, then it probably isn't. Dave On Fri, Feb 20, 2015 at 8:42 AM, Tamer Erdogan wrote: > Hi, >

Re: Struts + Spring

2014-01-25 Thread Ken McWilliams
Could you please explain further what it is you are trying to do. Struts2 does things differently, if you are open to change there is probably a nice way to resolve your issue. If we know a bit more... I'm certain we could supply a much better answer than telling you to use the "chain" result type.

Re: Struts, spring integration while using struts annotations

2012-03-04 Thread Łukasz Lenart
2012/3/5 Puneet Babbar 2 : > This may sound dumb, but I am new and don’t know about CLA. > What is CLA? https://cwiki.apache.org/WW/editing-the-documentation.html > And where can I file the issue? https://issues.apache.org/jira/browse/WW Regards -- Łukasz http://www.lenart.org.pl/ mobile +48

RE: Struts, spring integration while using struts annotations

2012-03-04 Thread Puneet Babbar 2
Subject: Re: Struts, spring integration while using struts annotations 2012/3/5 Puneet Babbar 2 : > How can we get this added? There are two ways, full CLA and send to ASF or fill an issue with description of the problem and someone will update the docs. Kind regards -- Łukasz h

Re: Struts, spring integration while using struts annotations

2012-03-04 Thread Łukasz Lenart
2012/3/5 Puneet Babbar 2 : > How can we get this added? There are two ways, full CLA and send to ASF or fill an issue with description of the problem and someone will update the docs. Kind regards -- Łukasz http://www.lenart.org.pl/ mobile +48 606 323 122, office +27 11 0838747 Warszawa JUG con

RE: Struts, spring integration while using struts annotations

2012-03-04 Thread Puneet Babbar 2
o" in context of using annotataions using convention plugin. How can we get this added? Regards Puneet babbar -Original Message- From: Łukasz Lenart [mailto:lukasz.len...@googlemail.com] Sent: Wednesday, February 29, 2012 5:34 PM To: Puneet Babbar 2; Struts Users Mailing List Subje

Re: Struts, spring integration while using struts annotations

2012-02-29 Thread Łukasz Lenart
o: Puneet Babbar 2 > Cc: Struts Users Mailing List > Subject: Re: Struts, spring integration while using struts annotations > > 2012/2/29 Puneet Babbar 2 : >> Tried after you suggested it, but doesn’t work :( > > Did you try to debug SpringObjectFactory#buildBean methods ? >

Re: Struts, spring integration while using struts annotations

2012-02-29 Thread Łukasz Lenart
2012/2/29 Puneet Babbar 2 : > Tried after you suggested it, but doesn’t work :( Did you try to debug SpringObjectFactory#buildBean methods ? Regards -- Łukasz http://www.lenart.org.pl/ mobile +48 606 323 122, office +27 11 0838747 Warszawa JUG conference - Confitura http://confitura.pl/ --

RE: Struts, spring integration while using struts annotations

2012-02-29 Thread Puneet Babbar 2
Users Mailing List Subject: Re: Struts, spring integration while using struts annotations Hi, there is no need to define a spring bean for your struts actions. At least when you use a struts.xml. I have not tried what happens when you use annotations. As far as I now, all struts actions will be

RE: Struts, spring integration while using struts annotations

2012-02-29 Thread Puneet Babbar 2
Tried after you suggested it, but doesn’t work :( -Puneet -Original Message- From: Łukasz Lenart [mailto:lukasz.len...@googlemail.com] Sent: Wednesday, February 29, 2012 2:12 PM To: Struts Users Mailing List Subject: Re: Struts, spring integration while using struts annotations 2012/2

Re: Struts, spring integration while using struts annotations

2012-02-29 Thread Per Pascal Grube
t; Regards > > Puneet > -Original Message- > From: Steven Yang [mailto:kenshin...@gmail.com] > Sent: Wednesday, February 29, 2012 12:16 PM > To: Struts Users Mailing List > Subject: Re: Struts, spring integration while using struts annotations > > check this h

Re: Struts, spring integration while using struts annotations

2012-02-29 Thread Per Pascal Grube
t; Regards > > Puneet > -Original Message- > From: Steven Yang [mailto:kenshin...@gmail.com] > Sent: Wednesday, February 29, 2012 12:16 PM > To: Struts Users Mailing List > Subject: Re: Struts, spring integration while using struts annotations > > check this h

Re: Struts, spring integration while using struts annotations

2012-02-29 Thread Łukasz Lenart
2012/2/29 Puneet Babbar 2 : > Thanks for replying to my post, I have already checked that link but still no > clue as to how to make spring plugin work with the convention plugin. > > Suppose I have an Action  - > @Action("/login-page") Did you try to use "login-page" ? Namespace "/" should be de

RE: Struts, spring integration while using struts annotations

2012-02-28 Thread Puneet Babbar 2
- From: Steven Yang [mailto:kenshin...@gmail.com] Sent: Wednesday, February 29, 2012 12:16 PM To: Struts Users Mailing List Subject: Re: Struts, spring integration while using struts annotations check this http://struts.apache.org/2.0.8/docs/spring-plugin.html you can use spring along with the

Re: Struts, spring integration while using struts annotations

2012-02-28 Thread Steven Yang
check this http://struts.apache.org/2.0.8/docs/spring-plugin.html you can use spring along with the annotation in the convention-plugin such as @Action, etc On Tue, Feb 28, 2012 at 6:01 PM, Puneet Babbar 2 wrote: > Hi, > > I am using struts annotations with my applications, I need to add spring

RE: Struts, Spring, Hibernate and multiple Sessionfactories

2010-10-17 Thread Martin Gainty
ffet 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: Sun, 17 Oct 2010 12:46:22 + > Subject: Re: Struts, Spring, Hibernate and multiple Sessionfactories &g

Re: Struts, Spring, Hibernate and multiple Sessionfactories

2010-10-17 Thread Raymond He
1) In this multi-tenant app, it is OK. Every operation just need to access one tenant datasource in the thread .2) Thread local is not appropriate in distributed architecture. sometimes we should access 2 or more datasourses at the same time in ONE thread. 2010/10/16, Dave Newton

Re: Struts, Spring, Hibernate and multiple Sessionfactories

2010-10-17 Thread Eduard Neuwirt
Raymond, I found a possible solution here: http://blog.springsource.com/2007/01/23/dynamic-datasource-routing TenantId is hold in the Struts UserSession and shall be shared with spring layer. The described solution uses ThreadLocal for this purpose. Is it possible to provide this tenantId to th

Re: Struts, Spring, Hibernate and multiple Sessionfactories

2010-10-16 Thread Dave Newton
2010/10/16 Raymond He : > To Li Ying and Dave New ton, multiple datasources is a common > requirement in large scale e-commerce  and telecom application. I know; that's what I said. Dave - To unsubscribe, e-mail: user-unsubscr..

Re: Struts, Spring, Hibernate and multiple Sessionfactories

2010-10-16 Thread Raymond He
To Li Ying and Dave New ton, multiple datasources is a common requirement in large scale e-commerce and telecom application. I used a data object to table mapping to do DB routing vertically, pk hashing to route horizontally. The r

Re: Struts, Spring, Hibernate and multiple Sessionfactories

2010-10-15 Thread Brian Thompson
On Fri, Oct 15, 2010 at 11:43 AM, Dave Newton wrote: > On Fri, Oct 15, 2010 at 12:39 PM, Brian Thompson > wrote: >>> Ever had a client that wanted/required their data segregated from >>> everybody else's (this is not uncommon at all)? Ever wanted to >> Apparently, it is uncommon.  I've never enc

Re: Struts, Spring, Hibernate and multiple Sessionfactories

2010-10-15 Thread Dave Newton
On Fri, Oct 15, 2010 at 12:39 PM, Brian Thompson wrote: >> Ever had a client that wanted/required their data segregated from >> everybody else's (this is not uncommon at all)? Ever wanted to > Apparently, it is uncommon.  I've never encountered such a demand. That... makes it uncommon?! >> restr

Re: Struts, Spring, Hibernate and multiple Sessionfactories

2010-10-15 Thread Brian Thompson
On Fri, Oct 15, 2010 at 10:22 AM, Dave Newton wrote: >> I'm not sure what reasons there would be to have it make sense >> to store each entity in its own identically-structured DB. > > Ever had a client that wanted/required their data segregated from > everybody else's (this is not uncommon at all

Re: Struts, Spring, Hibernate and multiple Sessionfactories

2010-10-15 Thread Dave Newton
> I'm not sure what reasons there would be to have it make sense > to store each entity in its own identically-structured DB. Ever had a client that wanted/required their data segregated from everybody else's (this is not uncommon at all)? Ever wanted to restrict tool access to data without jumpin

Re: Struts, Spring, Hibernate and multiple Sessionfactories

2010-10-15 Thread Brian Thompson
On Fri, Oct 15, 2010 at 9:45 AM, Dave Newton wrote: > That's really difficult to read. Agreed. More whitespace would be nice, Martin. > > On Fri, Oct 15, 2010 at 10:38 AM, Martin Gainty wrote: >> a database schema represents the entire structure (tables and relationships >> of >> those table

Re: Struts, Spring, Hibernate and multiple Sessionfactories

2010-10-15 Thread Dave Newton
That's really difficult to read. On Fri, Oct 15, 2010 at 10:38 AM, Martin Gainty wrote: > a database schema represents the entire structure (tables and relationships of > those tables) of the there is no need for multiple databases when your > database > schema contains the persisted entities (ta

Re: Struts, Spring, Hibernate and multiple Sessionfactories

2010-10-15 Thread Frans Thamura
Every extend mapp to different injection to what lli ying said /m/ -Original Message- From: Eduard Neuwirt Date: Fri, 15 Oct 2010 16:37:56 To: Struts Users Mailing List; Subject: Re: Struts, Spring, Hibernate and multiple Sessionfactories Hi Frans, would you mind to explain it

Re: Struts, Spring, Hibernate and multiple Sessionfactories

2010-10-15 Thread Li Ying
I think i don't understand what you want exactly. Can you tell me what you want to achieve? And what your code looks like? 2010/10/15 Eduard Neuwirt : > Hi Li, > > thanks for the answer. I didn't get how does it work within the > ? In this case ist the the question is how to access > to the app

RE: Struts, Spring, Hibernate and multiple Sessionfactories

2010-10-15 Thread Martin Gainty
> Date: Fri, 15 Oct 2010 14:50:17 +0200 > Subject: Struts, Spring, Hibernate and multiple Sessionfactories > From: eduard.neuw...@googlemail.com > To: user@struts.apache.org > > Hello, > > I am looking for an elegant solution for the following situation. > > I have a multitenant struts/spr

Re: Struts, Spring, Hibernate and multiple Sessionfactories

2010-10-15 Thread Eduard Neuwirt
- > From: Eduard Neuwirt > Date: Fri, 15 Oct 2010 16:16:35 > To: Struts Users Mailing List > Reply-To: "Struts Users Mailing List" > Subject: Re: Struts, Spring, Hibernate and multiple Sessionfactories > > Hi Li, > > thanks for the answer. I didn't get

Re: Struts, Spring, Hibernate and multiple Sessionfactories

2010-10-15 Thread Frans Thamura
How about make different implementation So Tenant1 extends tenanta Tenant2 extends tenantb /m/ -Original Message- From: Eduard Neuwirt Date: Fri, 15 Oct 2010 16:16:35 To: Struts Users Mailing List Reply-To: "Struts Users Mailing List" Subject: Re: Struts, Spring, Hib

Re: Struts, Spring, Hibernate and multiple Sessionfactories

2010-10-15 Thread Eduard Neuwirt
Hi Li, thanks for the answer. I didn't get how does it work within the struts-spring plugins ? In this case ist the the question is how to access to the application context directly from struts session. I could not find any information in the docu. Regards Eduard 2010/10/15 Li Ying > If you

Re: Struts, Spring, Hibernate and multiple Sessionfactories

2010-10-15 Thread Li Ying
If you want to use multi-DB for multi-tenant (let's say tenant01 and tenant02) I think you can create config file should likes: and then, in your java code, you can get different bean instance for different tenant via [ID], code looks like: BeanFactory.getBean("sessionFactory_" + te

Re: Struts, Spring, Hibernate and multiple Sessionfactories

2010-10-15 Thread Marshall Gunter
I have seen a horizontal partitioning of data using Hibernate that hides the SessionFactories, etc in a ConfigUtil class. The idea goes something like this. The ConfigUtil establishes all SessionFactories and stores them in a map with their associated identifier (ID, class, whatever you choose) as

Re: Struts, Spring, Hibernate and multiple Sessionfactories

2010-10-15 Thread Li Ying
We developed a multi-tenant app last year. But we didn't separate their data into different DB. Instead, we stored all data in one DB, and add a [tenant_id] column to all tables to distinguish which tenant it belong. I think this is a simpler solution. When you need to add new tenant, you can s

Re: Struts + Spring 3

2010-03-09 Thread Frans Thamura
you can use david's perfect example github.com/dlwhitehurst/appfuse-rest -- Frans Thamura Meruvian. Experiential Tempation of Java and Enterprise OpenSource Meruvian jTechnopreneur Program (S1) telah hadir, Dapatkan benefit bagi SMK yang melakukan mapping SKKD, dg program beasiswa dari Gunadar

Re: Struts - Spring - hibernate and lazy initialization

2008-04-02 Thread Yayo
Sorry, more explanation is needed... I've got to launch a "batch process" it's not a batch but it's a long lasting process that could raise a timeout and tomcat will kill the worker thread... So I've launched a worker of my own to do the job and inform the user with a progress indicator or the like

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 and taht

Re: Struts - Spring - hibernate and lazy initialization

2008-04-02 Thread Gabriel Belingueres
Try to post a stack trace or something more meaningful, but first of all, as a general architectural guideline, try first to refactor your code to avoid circular dependencies. 2008/4/2, Yayo <[EMAIL PROTECTED]>: > Hi, > > I'm developing a struts - spring based application. > > I've got actions-de

Re: Struts + spring

2007-10-19 Thread Ádamo Azambuja
i use this: MappingDispatchActionSupport now i dont need to put the execute method on my actions. When i call some like localhost/myAction.do they call one method with name myAction inside my Action java file. :-) God bless spring :-) 2007/10/19, Antonio Petrelli <[EMAIL PROTECTED]>: > > 2007/10/1

Re: Struts + spring

2007-10-19 Thread Antonio Petrelli
2007/10/19, Ádamo Azambuja <[EMAIL PROTECTED]>: > ok, i forget to put method on the url, but i really need to put they there? > they cant take my action name and use this like the method param? If you don't need it, don't use DispatchAction! Use a simple action. Antonio -

Re: Struts + spring

2007-10-19 Thread Ádamo Azambuja
Now i put the Spring to control my actions and they dont work with my method property, some one know what is happening? now i use type="org.spring struts-config: 2007/10/19, Ádamo Azambuja <[EMAIL PROTECTED]>: > > ok, i fo

Re: Struts + spring

2007-10-19 Thread Ádamo Azambuja
ok, i forget to put method on the url, but i really need to put they there? they cant take my action name and use this like the method param? 2007/10/19, Antonio Petrelli <[EMAIL PROTECTED]>: > > 2007/10/19, Ádamo Azambuja <[EMAIL PROTECTED]>: > > > > Error log > > StandardWrapperValve[action]: Se

Re: Struts + spring

2007-10-19 Thread Antonio Petrelli
2007/10/19, Ádamo Azambuja <[EMAIL PROTECTED]>: > > Error log > StandardWrapperValve[action]: Servlet.service() for servlet action threw > exception > javax.servlet.ServletException: Request[/usuarioList] does not contain > handler parameter named 'method'. This may be caused by whitespace in the

Re: Struts Spring

2007-02-13 Thread Dave Newton
--- 황성준 <[EMAIL PROTECTED]> wrote: > I don't have found the > struts2-spring-plugin-2.0.5.jar. Where is it? Showcase application has one. Dave Any questions? Get answers on any topic at www.Answers.yah

Re: Struts + Spring 2.0

2006-08-04 Thread Nicolas De Loof
I've updated the wiki. Please review it as my english is so bad... Wendy Smoak a écrit : On 8/3/06, Nicolas De Loof <[EMAIL PROTECTED]> wrote: I've looked a Struts-scripting, but AFAIK this requires me to rewrite all my struts-config.xml to set the Action java source as parameter. Lot's of my

Re: Struts + Spring 2.0

2006-08-03 Thread Wendy Smoak
On 8/3/06, Nicolas De Loof <[EMAIL PROTECTED]> wrote: I've looked a Struts-scripting, but AFAIK this requires me to rewrite all my struts-config.xml to set the Action java source as parameter. Lot's of my action already use a parameter and I don't want to change my projet (huge) struts-configs.

Re: Struts + Spring 2.0

2006-08-03 Thread Nicolas De Loof
Have you looked at Struts Scripting? It would be interesting to see how your approach differs from this. (And whether Struts Scripting works with Spring 2.0 the way you need it to.) I've looked a Struts-scripting, but AFAIK this requires me to rewrite all my struts-config.xml to set the Act

Re: Struts + Spring 2.0

2006-08-03 Thread Wendy Smoak
On 8/3/06, Nicolas De Loof <[EMAIL PROTECTED]> wrote: To those of you that are using Struts with Spring, I've searched a way to make my actions hot-reloadable (no recompile neither redeploy) for quick prototyping using Spring 2.0 groovy scripted bean, without having to hardly change my existing

Re: Struts + Spring + Hibernate

2005-11-02 Thread netsql
I use a diferent stack, this one: http://ibatis.apache.org/petstore.html not what you asked for but.. Martin Ravell wrote: Are there some developers here who use this solution? Does someone have a good tutorial or sample to indicate? (I've already seen "Wiring your web applications with Open So

RE: Struts + Spring + Hibernate

2005-11-02 Thread Martin Ravell
> Are there some developers here who use this solution? > Does someone have a good tutorial or sample to indicate? (I've already >seen "Wiring your web applications with Open Source java"..thanks :o)) > > Thanks for your feedback on this architecture :o) > Check out Matt Raible's Equinox projec

Re: Struts + Spring + Hibernate

2005-11-02 Thread James Mitchell
generator for the interfaces when using these 3 framework? Because, I'm afraid on the number of classes we have to develop to only retrieve one row in a table! Thanks for help - Original Message - From: Wendy Smoak To: Struts Users Mailing List Sent: Wednesday, Novembe

Re: Struts + Spring + Hibernate

2005-11-02 Thread Gaet
, I'm afraid on the number of classes we have to develop to only retrieve one row in a table! Thanks for help - Original Message - From: Wendy Smoak To: Struts Users Mailing List Sent: Wednesday, November 02, 2005 5:16 PM Subject: Re: Struts + Spring + Hibernate On 11/

Re: Struts + Spring + Hibernate

2005-11-02 Thread Wendy Smoak
On 11/2/05, Gaet <[EMAIL PROTECTED]> wrote: > > > Are there some developers here who use this solution? > Does someone have a good tutorial or sample to indicate? (I've already > seen "Wiring your web applications with Open Source java"..thanks :o)) > For the Struts + Spring part, Ted recently pos

RE: Struts/Spring integration & Struts 1.3

2005-04-05 Thread Marco Mistroni
Struts Users Mailing List' Subject: Re: Struts/Spring integration & Struts 1.3 Marco: This is clumsy, but you could probably figure out a way to instantiate commands and chains as Spring managed beans and then, rather than looking them up in a catalog, you could look them up in the Ap

Re: Struts/Spring integration & Struts 1.3

2005-04-05 Thread Ted Husted
Since Struts 1.3.x is unreleased, a better place for a thread like this might be the DEV list. On Apr 4, 2005 11:53 PM, Joe Germuska <[EMAIL PROTECTED]> wrote: > Marco: > > This is clumsy, but you could probably figure out a way to > instantiate commands and chains as Spring managed beans and the

Re: Struts/Spring integration & Struts 1.3

2005-04-04 Thread Joe Germuska
Marco: This is clumsy, but you could probably figure out a way to instantiate commands and chains as Spring managed beans and then, rather than looking them up in a catalog, you could look them up in the ApplicationContext. If you did this, then it would be easy to set up your commands with re

Re: Struts + Spring or Struts versus Spring

2005-03-31 Thread Ted Husted
+1 for Pro Spring. Soup to Nuts. Well done. On Wed, 30 Mar 2005 10:31:52 -0500, Fumo, Vince <[EMAIL PROTECTED]> wrote: > Don't know if it's appropriate to do this, but I am adding my 2c as well. > I've been using Spring and Hibernate with Struts for some time now and have > found it to be excellen

Re: Struts + Spring or Struts versus Spring

2005-03-30 Thread Matt Raible
On Mar 30, 2005, at 5:35 AM, Ted Husted wrote: Spring is a large project with several components. The Spring Core works just fine with Struts. You can use it to instantiate your business objects from Struts Actions. Aside from Spring Core, the Spring project also includes a Spring MVC component. Sp

RE: Struts + Spring or Struts versus Spring

2005-03-30 Thread Fumo, Vince
t; that covers the entire framework quite well. -Original Message- From: Joe Germuska [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 30, 2005 9:40 AM To: Ted Husted; Struts Users Mailing List Subject: Re: Struts + Spring or Struts versus Spring In short, what Ted said. More elaborately, I&

Re: Struts + Spring or Struts versus Spring

2005-03-30 Thread Joe Germuska
In short, what Ted said. More elaborately, I've been using Spring with a lot of Struts web apps, and I'm very happy with the combination. Spring does a whole lot more than Struts ever wanted to do, and you can use as much or as little of it as you like. And even though Spring MVC exists as a

Re: Struts + Spring or Struts versus Spring

2005-03-30 Thread Ted Husted
Spring is a large project with several components. The Spring Core works just fine with Struts. You can use it to instantiate your business objects from Struts Actions. Aside from Spring Core, the Spring project also includes a Spring MVC component. Spring MVC does overlap with Struts. Spring MVC