Re: Unable to upload files in Struts2 with Spring Security filter

2009-09-28 Thread zsundeep
My mistake ... I should have had Spring security filter before struts2 and not the other way. zsundeep wrote: > > I am able to upload files in struts2 (2.1.6) only when I remove the spring > security filter in web.xml. When I use the spring security filter, I get a > null object in File inside

set submit button focus

2009-09-28 Thread fea jabi
Have couple of submit buttons in my JSP All of them have the property as "method". When I try to set the focus for the html:form. how do I set to the focus to a certain submit button. I tried the above. we;ll it did not work. How to do this? your help is appreciated.

Unable to upload files with in Struts2 with Spring Security filter

2009-09-28 Thread zsundeep
I am able to upload files in struts2 (2.1.6) only when I remove the spring security filter in web.xml. When I use the spring security filter, I get a null object in File inside action class. That is the line "testFile.length()" in sample code provided below, throws null-pointer exception. I am us

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

2009-09-28 Thread Martin Gainty
Sameer- which interceptor produced the null fileUpload? or is it both in combination? does the error occur for all uploaded image types when these 2 interceptors are configured in image/jpeg,image/gif,image/png,image/bmp,image.jpg ? Martin __ V

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

2009-09-28 Thread David Canos
try changing the browser, Chrome and Safari works bad with some content-type 2009/9/28 hisameer > > Hi Dave, > > Thanks for pointing out the typo in the code. The issue was not that. After > scratching my head off for a week the issue was in the code: > > > > image/jpeg

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

2009-09-28 Thread hisameer
Hi Dave, Thanks for pointing out the typo in the code. The issue was not that. After scratching my head off for a week the issue was in the code: image/jpeg,image/gif,image/png,image/bmp,image.jpg

Re: restful URL issue

2009-09-28 Thread Musachy Barroso
You want to look at wildcards: http://struts.apache.org/2.x/docs/wildcard-mappings.html That feature that Alex is refering to (coined advanced wildcards for lack of imagination), is in trunk and has not been released yet. musachy On Mon, Sep 28, 2009 at 5:57 AM, Alex Siman wrote: > > Look here

Re: How to get 2.1.8 from Maven Snapshot Repository?

2009-09-28 Thread Wendy Smoak
On Sun, Sep 27, 2009 at 11:12 PM, David C. Hicks wrote: > I've added the snapshot repository to my pom.xml, but I'm still unable > to get the 2.1.8 snapshot release.  I have found a message about 2.1.8 being > available there dated 9/22/09, however.  Is there something else I > should or should no

Re: Problem with available Strus2 Releases

2009-09-28 Thread Wes Wannemacher
Keep an eye out ;) -Wes On Mon, Sep 28, 2009 at 9:08 AM, Greg Lindholm wrote: > On Mon, Sep 28, 2009 at 12:59 AM, Lukasz Lenart < > lukasz.len...@googlemail.com> wrote: > >> >> At least, 2.1.8 was released and it's the latest GA version. >> >> > I've never seen an announcement that 2.1.8 has bee

Re: Problem with available Strus2 Releases

2009-09-28 Thread Greg Lindholm
On Mon, Sep 28, 2009 at 12:59 AM, Lukasz Lenart < lukasz.len...@googlemail.com> wrote: > > At least, 2.1.8 was released and it's the latest GA version. > > I've never seen an announcement that 2.1.8 has been released and GA. Did I miss this?

Re: Problem with available Strus2 Releases

2009-09-28 Thread Alex Siman
2.1.8 is here: http://people.apache.org/builds/struts/2.1.8/ gustavo-49 wrote: > > I even tried to go to the listing from the mirrors and there are no 2.1.7 > or 2.1.8 there: > -- View this message in context: http://www.nabble.com/Problem-with-available-Strus2-Releases-tp25634547p25645166.h

Re: restful URL issue

2009-09-28 Thread Alex Siman
Look here: http://www.nabble.com/parameters-in-url-td25602877.html Restful plugin is not so good as it supposed to be. struts-restful wrote: > > Does anyone know how to get the restful web service to call a method > different to show or edit. > > For example I have the following url > > http

Re: 2.0.14 to 2.1.6: There is no Action mapped for namespace / and action name . - [unknown location]

2009-09-28 Thread nodje
Solved: just have a look on http://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html I wish I new such a file existed, it doesn't seem to be often refered to on google. I stumble upon it while looking for somethig else. It states: Filter Mapping, default Action

restful URL issue

2009-09-28 Thread struts-restful
Does anyone know how to get the restful web service to call a method different to show or edit. For example I have the following url http://localhost:8080/testeg/my/example/example-count/1/count.xml I want this to call the method count in my ExampleCountController. The URl goes to the action a

2.0.14 to 2.1.6: There is no Action mapped for namespace / and action name . - [unknown location]

2009-09-28 Thread nodje
as many, I'm facing this damned error. numerous post about this haven't been ale to solve my problem. I have been trying to migrate from 2.0.14 to 2.1.x in the past, but hard to revert to original version because of this. The application still works if I specify the welcome-file manually in the