Re: Struts file upload issue

2008-11-29 Thread Dave Newton
Yeah, I think you'd have to tweak something to create that change. If I have time tomorrow I'll take a quick look as well. Dave --- On Sat, 11/29/08, Khawaja-Shahzad Butt <[EMAIL PROTECTED]> wrote: > But i don't see any option in the file interceptor to > store the file > temporarily. This issu

Re: Struts file upload issue

2008-11-29 Thread Khawaja-Shahzad Butt
Thanks for the reply. But i don't see any option in the file interceptor to store the file temporarily. This issue behaves the same way in IE and FF(Firefox). It would be great to have the file attached while there's a validation error so that the user doesn't have to reattach it. I am sure some

Re: Struts file upload issue

2008-11-29 Thread Dave Newton
AFAIK it's a browser issue; it won't keep the file name in the file select box. I haven't looked, but it might be possible to save the file anyway, though, via interceptor ordering or an interceptor modification--not sure. Dave --- On Sat, 11/29/08, Khawaja-Shahzad Butt <[EMAIL PROTECTED]> wro

Struts file upload issue

2008-11-29 Thread Khawaja-Shahzad Butt
Hi, I am having an issue with struts file upload during validation. On the page when there's a validation error, the browsed/attached file drops. Does anyone know a work around it, to have the previously attached file in tact, meaning if i have attached a file and hit submit and got the validatio

Re: [S2] Handling input result on a CRUD action

2008-11-29 Thread Burton Rhodes
Just read Dave's thought. Much better. On 11/29/08, Burton Rhodes <[EMAIL PROTECTED]> wrote: > Just a thought but why don't put a redirect acrtion in your result > 'input' on your update action. That way if it fails it will run > prepareEdit. > > On 11/29/08, Adam Ruggles <[EMAIL PROTECTED]> wrote

Re: [S2] Handling input result on a CRUD action

2008-11-29 Thread Dave Newton
--- On Sat, 11/29/08, Burton Rhodes <[EMAIL PROTECTED]> wrote: > Just a thought but why don't put a redirect acrtion in your result > 'input' on your update action. That way if it fails it will run > prepareEdit. Under default circumstances you'd lose your error messages. Dave

Re: [S2] Handling input result on a CRUD action

2008-11-29 Thread Burton Rhodes
Just a thought but why don't put a redirect acrtion in your result 'input' on your update action. That way if it fails it will run prepareEdit. On 11/29/08, Adam Ruggles <[EMAIL PROTECTED]> wrote: > > I have a problem I'm trying to solve when the validation fails on a crud > action. This action h

Re: Does Struts 1.3.x supports PUT and DELETE methods of HTTP

2008-11-29 Thread Paul Benedict
I definitely see this as a worthy 1.4 enhancement. On Thu, Sep 4, 2008 at 1:06 PM, Laurie Harper <[EMAIL PROTECTED]> wrote: > Kamlesh123 wrote: >> >> Hi, >> >> I want to know that whether Struts 1.3.x or any lower version of Struts >> support HTTP PUT, DELETE and HEAD methods. >> >> I need to use

Re: Pagination Questions

2008-11-29 Thread Adam Ruggles
Personally I think it would be a bad idea to buffer the data from the db, since most users when performing a search will only look at the first page of results. It would be better to simply return a limited set of results from the DB. Otherwise you might be fetching data the user will never see.

Re: [S2] Handling input result on a CRUD action

2008-11-29 Thread Adam Ruggles
Do you think I would need to check the actionErrors/fieldErrors rather then just check for the input return value? newton.dave wrote: > > You could just check to see if there are any errors before running the > prepare logic; this could be done in an interceptor as well > "prepareWhenErrors" o

Re: Best IDE for DOJO

2008-11-29 Thread Adam Ruggles
I've never used IDEA, but I do like Eclipse with the aptana plugin. I believe it even has a DOJO specific piece to their plugin. nikunj-2 wrote: > > > > Dear All, > > Which IDE is best to implement DOJO, eclipse, IDEA or other? > > Is any open source IDE available, which gives developer

Re: Struts iterator -

2008-11-29 Thread pesho318i
oh my... it was just a syntax error I had, so it did not read the stats attribute. Thanks again for the solution!!! -- View this message in context: http://www.nabble.com/Struts-iterator---tp20743288p20748525.html Sent from the Struts - User mailing list archive at Nabble.com. --

Re: Struts2 XML Handling

2008-11-29 Thread Dave Newton
You could use the REST plugin (S2.1+), use the XSL result, build it using JSP/FreeMarker, or use the same method used by the REST plugin but create your own result type. Dave --- On Sat, 11/29/08, aum strut <[EMAIL PROTECTED]> wrote: > From: aum strut <[EMAIL PROTECTED]> > Subject: Struts2 XM

Re: Struts iterator -

2008-11-29 Thread pesho318i
Hi, and thanks for the help! Wes Wannemacher wrote: > > However, when I use this code, the id is empty (id=""). I guess the code is correct, but somehow this happens. Also, when I try to introduce some control blocks, like: print something on the screen it doesn't print anything. Mayb

RE: [OT] Re: Best IDE for DOJO

2008-11-29 Thread nikunj
Thanks Dave -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Saturday, November 29, 2008 5:44 PM To: Struts Users Mailing List Subject: [OT] Re: Best IDE for DOJO --- On Sat, 11/29/08, nikunj <[EMAIL PROTECTED]> wrote: > Which IDE is best to implement DOJO, eclipse, I

[OT] Re: Best IDE for DOJO

2008-11-29 Thread Dave Newton
--- On Sat, 11/29/08, nikunj <[EMAIL PROTECTED]> wrote: > Which IDE is best to implement DOJO, eclipse, IDEA or other? Personally I think IDEA has the best JavaScript coding support, but "best" is probably a matter of opinion. Dave

Re: [S2] Handling input result on a CRUD action

2008-11-29 Thread Dave Newton
You could just check to see if there are any errors before running the prepare logic; this could be done in an interceptor as well "prepareWhenErrors" or something. Dave --- On Sat, 11/29/08, Adam Ruggles <[EMAIL PROTECTED]> wrote: > I have a problem I'm trying to solve when the validation > fa

Re: upload a file,

2008-11-29 Thread Nils-Helge Garli Hegvik
Did you follow the instructions and installed the required dependencies as described in [1]? Nils-H [1] - http://struts.apache.org/2.0.14/docs/file-upload.html On Sat, Nov 29, 2008 at 9:28 AM, srinivasa_v . <[EMAIL PROTECTED]> wrote: > Hi All , > I am trying to upload a file,but I am getting a e

Best IDE for DOJO

2008-11-29 Thread nikunj
Dear All, Which IDE is best to implement DOJO, eclipse, IDEA or other? Is any open source IDE available, which gives developer friendly environment for DOJO? Regards, Nikunj Mulani Applied Software Pvt. Ltd. Ahmedabad 91-98249 88262

Struts2 XML Handling

2008-11-29 Thread aum strut
HI All, I need to send XML data from my action. Curently in one of action i need to send JSOn data from the action and for this i am using JSON Plugin for sending JSOn data from my action to the frontend. Now i have to send XML data from my action.Do any one have any information about how can we

[S2] Handling input result on a CRUD action

2008-11-29 Thread Adam Ruggles
I have a problem I'm trying to solve when the validation fails on a crud action. This action has add/create, edit/update, and list methods that all get called correctly. Now when the validation fails I have a list of items that I need loaded. Right now I have a prepareEdit and prepareAdd method

upload a file,

2008-11-29 Thread srinivasa_v .
Hi All , I am trying to upload a file,but I am getting a exception can anyone help me * java.lang.RuntimeException*: Unable to load bean org.apache.struts2.dispatcher.multipart.MultiPartRequest (jakarta) - [unknown location] at com.opensymphony.xwork2.inject.ContainerBuilder$4.create(* Contain

Pagination Questions

2008-11-29 Thread Licco
Dear All, I am currently working on pagination to the result of search result. I want to ask which solution is better? 1. After user chooses some criterias and then clicks the search button, the server will return the size of search result and the objects of first page of the search result.