plugins power and their behavior

2009-09-25 Thread Frans Thamura
hi all i am debuging the plugins, and still confuse anyone here that working and create a plugins of struts, can u share your experience, tips and trick so i can debug better a lot of magic but still blank, esp if compare with IoC of Spring that more understanable Frans -

Re: File upload issue with Struts 2.1.6 (uploaded file is always null in action)

2009-09-25 Thread Dale Newfield
hisameer wrote: Well, I dont see any typo here. image/jpg, not image.jpg And I assume the email process stripped out the 'name="allowedTypes">' and '' parts? -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.or

Re: File upload issue with Struts 2.1.6 (uploaded file is always null in action)

2009-09-25 Thread hisameer
Well, I dont see any typo here.I have tried almost everthing. I made sure that the name must match whatever is there in the jsp page.If you see something might be typo let me know. Only the interceptors which are defined in the action mapping I copied from the struts website. -Sameer newton.dav

Re: archive?

2009-09-25 Thread Bill Bohnenberger
Thanks, Antonio. On Fri, Sep 25, 2009 at 12:22 PM, Antonio Petrelli < antonio.petre...@gmail.com> wrote: > 2009/9/25 Dale Newfield : > > Bill Bohnenberger wrote: > >> > >> Is there a searchable archive for this mailing list? > > > > http://www.nabble.com/Struts---User-f206.html > > Or, more web 2

Re: archive?

2009-09-25 Thread Bill Bohnenberger
Thanks, Dale. On Fri, Sep 25, 2009 at 12:21 PM, Dale Newfield wrote: > Bill Bohnenberger wrote: > >> Is there a searchable archive for this mailing list? >> > > http://www.nabble.com/Struts---User-f206.html > > -Dale > > - > To

Re: File upload issue with Struts 2.1.6 (uploaded file is always null in action)

2009-09-25 Thread Dave Newton
hisameer wrote: image/jpeg,image/gif,image/png,image/bmp,image.jpg Is that a typo? Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional co

Re: File upload issue with Struts 2.1.6 (uploaded file is always null in action)

2009-09-25 Thread hisameer
Hi Dale, I have added two jar files in the application these jar files are: commons-fileupload-1.2.1.jar,commons-io-1.3.2.jar.Let me know if there is a need to add additional jars. I am not getting any file name or content type so I think nothing is passed to the action class, all the values are

Re: Type Conversion and Lists

2009-09-25 Thread Dave Newton
Stephen Turner wrote: Hello, I'm trying to get objects placed in a List using the type conversion functionality built into Struts 2 (2.0.14)/Java 1.4. The bean that should be in the list is called "Grocery", with attributes "name" and "quantity". My action class has a List called "groceries".

Re: Nullpointerexception s:select tag on name="alist[#status.index].something"

2009-09-25 Thread Anandkris
Hi Musachy, Thanks for the reply. I debugged and just found that the select tag could not render "children[i]" as a list element.As I mentioned before if I change children[i] to children(i), just to try whats happening, the page loads fine. Since we work on Agile and had a deadline of an hr or so,

Re: archive?

2009-09-25 Thread Antonio Petrelli
2009/9/25 Dale Newfield : > Bill Bohnenberger wrote: >> >> Is there a searchable archive for this mailing list? > > http://www.nabble.com/Struts---User-f206.html Or, more web 2.0: http://struts.markmail.org/ Antonio - To unsubsc

Re: archive?

2009-09-25 Thread Dale Newfield
Bill Bohnenberger wrote: Is there a searchable archive for this mailing list? http://www.nabble.com/Struts---User-f206.html -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: u

archive?

2009-09-25 Thread Bill Bohnenberger
Is there a searchable archive for this mailing list? - Bill

Re: File upload issue with Struts 2.1.6 (uploaded file is always null in action)

2009-09-25 Thread Dale Newfield
hisameer wrote: Thanks for your reply. I tried to put the method public void setUploadFile(File file) but no success, file is still null in the action. Are the other two setters (ContentType, FileName) called? Do you have the appropriate interceptor in place for this action? I believe there's a

Re: File upload issue with Struts 2.1.6 (uploaded file is always null in action)

2009-09-25 Thread hisameer
Thanks for your reply. I tried to put the method public void setUploadFile(File file) but no success, file is still null in the action. DNewfield wrote: > > hisameer wrote: >> The uploaded file is always null in my action class: > >> > > >> public void setUpload(File file) { >>

Type Conversion and Lists

2009-09-25 Thread Stephen Turner
Hello, I'm trying to get objects placed in a List using the type conversion functionality built into Struts 2 (2.0.14)/Java 1.4. The bean that should be in the list is called "Grocery", with attributes "name" and "quantity". My action class has a List called "groceries". I have a conversi

Conventions plugin action annotation

2009-09-25 Thread Faisal Shoukat
Can anyone explain how to override the restful URI with the action annotation. In the docs it states that I need to add the action annotation as such @Action("/a/b/controller-name/method.xml") But if I type this address as the url then when debugging I can see that it has set the namespace to /a

Re: Convention plugins problems

2009-09-25 Thread Ingo Hoffmann
Hi John, It seems jetty-run is extracting the WAR already: Extract jar:file:/Users/lasombra/x/bab/Borrow-a-Book.war!/ to /private/ var/folders/tx/tx81A4fxHIqgj+kBEbe3CU+++TI/-Tmp-/ Jetty_0_0_0_0_8080_Borrow.a.Book.waremg8ve/webapp And scanning the WAR is not working either. On 25/09/200

Re: File upload issue with Struts 2.1.6 (uploaded file is always null in action)

2009-09-25 Thread Dale Newfield
hisameer wrote: The uploaded file is always null in my action class: public void setUpload(File file) { this.file = file; } I believe this should be "public void setUploadFile(File file) {...}" -Dale -

Re: Convention plugins problems

2009-09-25 Thread Ingo Hoffmann
No dice. Can't scan inside my compressed war file. On 25/09/2009, at 12:24, Musachy Barroso wrote: that's ok, but expect it to log a lot of "errors" as it will find stuff that is called WhateverAction and are not actions, and try to load it (failing in many cases). These errors can be ignored, t

Re: File upload issue with Struts 2.1.6 (uploaded file is always null in action)

2009-09-25 Thread Paweł Wielgus
Hi, have You tried running showcase app, distributed in struts apps.zip or struts all.zip, there is working example of file upload. Best greetings, Pawel Wielgus. 2009/9/25, hisameer : > > I am having trouble with uploading the file using struts 2.1.6. I have to > upload a picture(.jpg, .bmp,.jpe

File upload issue with Struts 2.1.6 (uploaded file is always null in action)

2009-09-25 Thread hisameer
I am having trouble with uploading the file using struts 2.1.6. I have to upload a picture(.jpg, .bmp,.jpeg,.png,.gif) for one of the business requirement. The application server is JBOSS 5.1.The uploaded file is always null in my action class: I followed exactly the same way mentioned in this h

Re: Blocked trying to get lock: org.apache.log4j.spi.RootLogger

2009-09-25 Thread Simon B
Hi Dave, I'm running into a similar problem, Regards what you did to remidy the problem, i.e. increase the quantity of file descriptors available to the process, am I right in thinking that the process was using > 1024 open file descriptors? Its just when I take a look at our server using the

Re: Convention plugins problems

2009-09-25 Thread Musachy Barroso
that's ok, but expect it to log a lot of "errors" as it will find stuff that is called WhateverAction and are not actions, and try to load it (failing in many cases). These errors can be ignored, they are just annoying. musachy On Fri, Sep 25, 2009 at 8:22 AM, Ingo Hoffmann wrote: > That makes s

Re: Convention plugins problems

2009-09-25 Thread Ingo Hoffmann
That makes sense. Should I enable jar scanning maybe? -Original Message- From: Musachy Barroso Date: Fri, 25 Sep 2009 08:20:29 To: Struts Users Mailing List Subject: Re: Convention plugins problems that makes sense. By the default Convention will not scan jar files, the jar files are fou

Re: Convention plugins problems

2009-09-25 Thread Musachy Barroso
that makes sense. By the default Convention will not scan jar files, the jar files are found using the META-INF directory. If the application is not unpacked, the the plugin will not find the classes. musachy On Fri, Sep 25, 2009 at 5:10 AM, j.ollier wrote: > I have also been trying to get start

Re: Struts convention plugin/ action annotations

2009-09-25 Thread struts-restful
Further to the above I changed my action annotation url to just show @Action("abc") above my method test. The result of this is that now it gets to my controller class but from the debug my default method has been set to show(). When the annotation is evaluated in the DefaultActionProxy class i

Re: Struts convention plugin/ action annotations

2009-09-25 Thread struts-restful
Hi thanks for the prompt reply. I have tried it with the following in my struts.xml file but that did not chnage anything I am still getting the same values. Which way do you recommend using the annotation with the namespace annotation or only the action annotation. Wes Wannemacher wrote: >

RE: How to connect a EJB3 project with struts2

2009-09-25 Thread James Cook
Hi Michael, Looks like I no longer have the project that I did this in. However from memory I can tell you: I used jee:JNDI-Lookup I had the EJB ref set up in the web.xml With the id of the jndi-lookup item I used that as the ref for injecting.. So with S2 it would be autowired... If I get tim

Re: Struts convention plugin/ action annotations

2009-09-25 Thread Wes Wannemacher
Make sure you have slashes in action names enabled - -Wes On Fri, Sep 25, 2009 at 10:22 AM, struts-restful wrote: > > I am trying to override the restful URI using the action annotation as > described in the convention plugin doc > > http://struts.apache.org/2.x/docs/convention-plugin.html#con

Struts convention plugin/ action annotations

2009-09-25 Thread struts-restful
I am trying to override the restful URI using the action annotation as described in the convention plugin doc http://struts.apache.org/2.x/docs/convention-plugin.html#conventionplugin-apply...@actionand@Actionsattheclasslevel According to the docs I can use the following annotation on my method

Re: How to connect a EJB3 project with struts2

2009-09-25 Thread Michael Obster
Hi James, ohh that would be good. I have tried some of the things they have documented on the side. But I didn't get it running. A practical example would be very helpful to get the clou. Kind regards, Michael James Cook schrieb: Hi Michael, Look at the jndi-lookup in the spring manual. h

RE: How to connect a EJB3 project with struts2

2009-09-25 Thread James Cook
Hi Michael, Look at the jndi-lookup in the spring manual. http://static.springsource.org/spring/docs/2.5.6/reference/ejb.html I have done this in the past, so will try to find some example code later - if required. I did find I couldn't use SLSB tag as it required a home interface that no longe

How to connect a EJB3 project with struts2

2009-09-25 Thread Michael Obster
Hi, I wanted to use Struts2 as frontend for an EJB3 application. After reading lots of documentation, I doesn't find out how I do that. I only have found a description how to inject a EJB bean into a Spring bean, but then I need to implement the Spring bean class in the client a second time, w

Re: Convention plugins problems

2009-09-25 Thread j.ollier
I have also been trying to get started with the Convention plugin and was struggling to understand why a webapp which works fine in Tomcat would not work in Jetty. I found that if Jetty does not expand the WAR file then I get this on startup: java.lang.Exception: Could not load WEB-INF/classes/co