response already committed

2004-06-14 Thread Ayoub, Ashraf A
Dears, In my struts application I open another application using Url conection, this application gets a PDF file and write it to my output stream. I tried the application and if I run my client code from JSP ==> it work fine, but if I run it inside Struts Action I get that the response is already

Stop on first error not working !!!

2004-06-08 Thread Ayoub, Ashraf A
Dears, I use struts 1.1, and I use client side validation. I just want to set the stop on first error to true, as I don't want alerts to be that big to the user and I want them to appear one after one. I configured it as following, but it is still don't work !!! What

Can set temp directory for file upload on runtime

2004-05-29 Thread Ayoub, Ashraf A
Dears, I'm using struts 1.1, and I want to set the tempDir to a value no non untill runtime, I can set it when servlet initialize, as the location of deploying my application is dynamic, so I will get it and pass an appropriate value to the tempDir I have read that the default value is determi

memFileSize property for upload

2004-05-28 Thread Ayoub, Ashraf A
Dears, I know I posted this question before but I'm really disprate trying to make this work, my problem is on SUN ONE application server 7 platform edition update 2, I try upload file and I get access denied problem, it is a problem as starting from JDK 1.4 there is a server policy file controlli

id attribute and struts not supported

2004-05-27 Thread Ayoub, Ashraf A
Dears, I have HTML code with lots of attribute id in any of its tag, the problem when I convert to struts 1.1, ID is not a valid attribute in struts, the problem I had is that it have lots of Java scipt code based on id attribute, and I don't want to lose all this work done by the HTML designer, i

Struts 1.1 + jakarta common uploads 1 getting empty list although it is multi-part agreed

2004-05-18 Thread Ayoub, Ashraf A
I'm using Struts 1.1, and trying to use the commons file upload version 1 package (from http://jakarta.apache.org/commons/fileupload/index.html ) to handle file upload request in my application, yet I seemed to always get an empty List from the parseRequest function of the org.apache.commons.fileu

Maintaining form data across pages...

2004-05-16 Thread Ayoub, Ashraf A
Dears, I am trying to setup a series of jsp pages (requestForm, confrimation jsp). I set the scope of my requestForm to "session" as to maintain the data across the various jsps, but I get it as if reset is called, after the confirmation page submits. What is the best way to maintain the reque

memFileSize to control the file in memory or on disk

2004-05-15 Thread Ayoub, Ashraf A
Dears, I'm depending on struts in my application, and I have an option for uploading files in my application. The problem is: I want to upload the files and instantly save it to DB ==> so I'm getting the byte[] and write it to the DB, as I don't have permission to write files to disk before upl