Re: Struts File Upload Issue

2011-05-27 Thread Alejandro García Gil
Have you exceeded the maximum size of the file? 2011/5/26 Paweł Wielgus poulw...@gmail.com Hi, maybe validation is not permitting action to be called in this situations? Best gretings, Paweł Wielgus. 2011/5/26 vijayaraja...@cognizant.com: Hi, I have a query regarding file

Re: When start tomcat6 always got java.lang.NoClassDefFoundError: com/opensymphony/xwork2/util/finder/ClassFinder$InfoBuildingVisitor Error!

2011-05-27 Thread Mohamed SIDI
You have to copy the jar in your classpath and redeploy your application after, it should work 2011/5/27 Martin Gainty mgai...@hotmail.com copy xwork-core-2.2.1.jar to WEB-INF\lib Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de

Re: When start tomcat6 always got java.lang.NoClassDefFoundError: com/opensymphony/xwork2/util/finder/ClassFinder$InfoBuildingVisitor Error!

2011-05-27 Thread Maurizio Cucchiara
I don't think that the exception is referring to the xwork library, the xwork library is present (see the stacktrace). It seems rather that the xwork ClassFinder is not able to find your ActionClass. On 27 May 2011 09:56, Mohamed SIDI mhm.s...@gmail.com wrote: You have to copy the jar in your

RE: Struts File Upload Issue

2011-05-27 Thread VijayaRajan.S
Hi Alejandro, It sometimes happens even for very small files. Regards, Vijayarajan S -Original Message- From: Alejandro García Gil [mailto:alejandro.garcia@gmail.com] Sent: Friday, May 27, 2011 11:51 AM To: Struts Users Mailing List Subject: Re: Struts File Upload Issue Have you

RE: Struts File Upload Issue

2011-05-27 Thread Jason Pyeron
-Original Message- From: vijayaraja...@cognizant.com [mailto:vijayaraja...@cognizant.com] Sent: Friday, May 27, 2011 6:58 To: user@struts.apache.org Subject: RE: Struts File Upload Issue Hi Alejandro, It sometimes happens even for very small files. Is there a proxy between

RE: Struts File Upload Issue

2011-05-27 Thread Martin Gainty
did you determine which class validation is producing the error? i assume cognizant is paying you tm Martin Gainty __ Verzicht und Vertraulichkeitanmerkung Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so

Can we use spring-plugin to inject a HttpServletRequest onto a bean?

2011-05-27 Thread Miguel
Hi, I'm using spring to inject dependencies in my application. I added a module I had previously developed that had the code in some class (request is a HttpServletRequest): private String getIpAddress() { request = ServletActionContext.getRequest();

Re: Can we use spring-plugin to inject a HttpServletRequest onto a bean?

2011-05-27 Thread Dave Newton
What specifically do you need an actual request for? This strikes me as coupling your design to the servlet spec, and there's rarely a strong reason to do that past the web layer itself. The idea on injecting a request just seems wrong. Is that a Struts 2 interceptor you're trying to inject it in

Re: Can we use spring-plugin to inject a HttpServletRequest onto a bean?

2011-05-27 Thread Miguel
Hi Dave, On Fri, 2011-05-27 at 08:10 -0400, Dave Newton wrote: What specifically do you need an actual request for? This strikes me as coupling your design to the servlet spec, and there's rarely a strong reason to do that past the web layer itself. The idea on injecting a request just seems

Re: Can we use spring-plugin to inject a HttpServletRequest onto a bean?

2011-05-27 Thread Andrew Lee
Dave is right that it suggests its bad design but if you really need it you can get your action to implement servletrequestaware: http://struts.apache.org/2.0.11/struts2-core/apidocs/org/apache/struts2/interceptor/package-summary.html Might be better to create a threadlocal in an interceptor to

Struts2 Plugins inside IoC

2011-05-27 Thread Frans Thamura
hi all i found that springmvc register all their bean in the appcontex.xml any reason, why struts2 better rather using this method thx F

Re: Can we use spring-plugin to inject a HttpServletRequest onto a bean?

2011-05-27 Thread Miguel
On Fri, 2011-05-27 at 13:24 +0100, Miguel wrote: Hi Dave, On Fri, 2011-05-27 at 08:10 -0400, Dave Newton wrote: What specifically do you need an actual request for? This strikes me as coupling your design to the servlet spec, and there's rarely a strong reason to do that past the web

Re: Struts2 Plugins inside IoC

2011-05-27 Thread Mohamed SIDI
Can you be more clear about what you like to understand 2011/5/27 Frans Thamura fr...@meruvian.org hi all i found that springmvc register all their bean in the appcontex.xml any reason, why struts2 better rather using this method thx F -- Cordialement Mohamed

Re: Can we use spring-plugin to inject a HttpServletRequest onto a bean?

2011-05-27 Thread Dave Newton
On Friday, May 27, 2011, Miguel wrote: Following my previous email and agreeing with you on this,  I might, of course, get off the request hook by changing the request injection with injecting, for example, those two properties (username and ipaddress) to this class, but the underlying problem

Re: [OT] Re: Job postings

2011-05-27 Thread erikweber
If you need any consulting or development in the Java client-side area (Swing, JFC/AWT, core Java, etc.), feel free to give me a shout. Also I do C++ GUI development, particularly with DirectX. I used to be a server-side developer but have focused on client development for the past seven years

RE: Struts2 Plugins inside IoC

2011-05-27 Thread Ilya Kazakevich
Use struts2-spring plugin to configure actions as spring beans. I use it and it is very cool: Instead of action class=com.example.Class You write: action class=beanId Ilya Kazakevich, Developer JetBrains Inc http://www.jetbrains.com Develop with pleasure! -Original Message- From:

Re: Can we use spring-plugin to inject a HttpServletRequest onto a bean?

2011-05-27 Thread Miguel
On Fri, 2011-05-27 at 09:00 -0400, Dave Newton wrote: On Friday, May 27, 2011, Miguel wrote: Following my previous email and agreeing with you on this, I might, of course, get off the request hook by changing the request injection with injecting, for example, those two properties

Re: When start tomcat6 always got java.lang.NoClassDefFoundError: com/opensymphony/xwork2/util/finder/ClassFinder$InfoBuildingVisitor Error!

2011-05-27 Thread Emi Lu
Good morning, Thank you very much for your inputs! To figure out which jar is missing, I downloaded the xwork-core.jar and complied it. The following files fixed the problem: = . lib/asm-4.0_RC1.jar . lib/asm-commons-4.0_RC1.jar For people might see

Re: Struts2 Plugins inside IoC

2011-05-27 Thread Jeff Black
Hi Frans.    I found your question a little vague.  Would you mind adding some more detail?   jb /   From: Frans Thamura fr...@meruvian.org To: Struts Users Mailing List user@struts.apache.org Sent: Friday, May 27, 2011 7:34 AM Subject: Struts2 Plugins inside IoC hi all i found that springmvc

Re: When start tomcat6 always got java.lang.NoClassDefFoundError: com/opensymphony/xwork2/util/finder/ClassFinder$InfoBuildingVisitor Error!

2011-05-27 Thread Dave Newton
Are you really using all of those S2 plugins? You should not deploy plugins you are not using, as they may change fundamental S2 behavior. If nothing else it is almost certainly a bad idea to include both the codebehind (deprecated) and convention plugins. It's unusual to use both the Dojo and

Re: Upgrading Struts 1.1 to Struts 2 with tiles

2011-05-27 Thread Sachin Lale
I solve this problem by creatig duplicate tiles.xml (tiles 2 configuration) which will be used by Struts2 and the other tiles-defs by struts1. The other change i have to made is to duplicate my layout.jsp for tiles 2. And then every thing is working fine. On 24-05-2011 23:29, Sachin Lale

Struts2 resource property and dynamic population of action in jsp file

2011-05-27 Thread Sachin Lale
Hi, I have two questions: 1. In Jsp while displaying text box and i want this to populate from ApplicationResource.properties file. I did this be adding getText() method like below. Is this the only way? s:textfield name=name label=%{getText('site.name')}/ 2. I want the 'action' property of

Re: Struts2 resource property and dynamic population of action in jsp file

2011-05-27 Thread Dave Newton
On Fri, May 27, 2011 at 10:40 AM, Sachin Lale wrote: 1. In Jsp while displaying text box and i want this to populate from ApplicationResource.properties file. I did this be adding getText() method like below. Is this the only way? s:textfield name=name label=%{getText('site.name')}/ Nope; you

Re: When start tomcat6 always got java.lang.NoClassDefFoundError: com/opensymphony/xwork2/util/finder/ClassFinder$InfoBuildingVisitor Error!

2011-05-27 Thread Emi Lu
Are you really using all of those S2 plugins? You should not deploy plugins you are not using, as they may change fundamental S2 behavior. If nothing else it is almost certainly a bad idea to include both the codebehind (deprecated) and convention plugins. I use both struts1(history libs

Re: When start tomcat6 always got java.lang.NoClassDefFoundError: com/opensymphony/xwork2/util/finder/ClassFinder$InfoBuildingVisitor Error!

2011-05-27 Thread Dave Newton
On Fri, May 27, 2011 at 11:29 AM, Emi Lu wrote: Confirmed. Two tags are used in jsp for now: %@ taglib prefix=sj uri=/struts-jquery-tags              % %@ taglib prefix=sx uri=/struts-dojo-tags % Hmm, okay. Is dojo deprecated? Has been for some time, don't recall for sure how long. Dave

Re: Struts2 resource property and dynamic population of action in jsp file

2011-05-27 Thread Sachin Lale
Thanks Dave. I am using Struts 2.2.3. For #2 question i have a common jsp which is used for both Add and Edit operation. So on the basis of whether it is add/edit i want to set appropriate action. Well one tweak just now came in my mind is to set the action name in request scope and use this