Re: File Upload size restriction ??

2003-07-18 Thread Nicolas De Loof
I submited a bug on bugzilla for this. I discovered that I get this strange freeze 
when generated HTML is *long*. As I
use the validator, I restricted the generated javascript to the 3 functions we use on 
the webapp and it works. If I add
some hundred of basic HTML at JSP end, if freeze.

You should try to limit generated HTML size, until someone founds the problem (no idea 
for myself, neither reading the
code nor using a debugger).

Nico.



 I'm experiencing the EXACT same problem (Win2000, Struts
 1.1 RC 1, Weblogic 7, Sun JDK 1.3.1_07).

 I've noticed that if my input forward is a simple JSP, it
 works fine.  Also, it works fine if the input forward is a
 tile definition which simply specifies a JSP, like this:

 definition name=tile.struts.upload.upload
 path=/upload.jsp/

 However, it hangs if I try to get fancy and use some
 inheritance in my definitions, like this:

definition name=tile.struts.upload.upload
 extends=tile.main
put name=window.title.key
 value=key.title.window.home/
put name=body.tile
 value=tile.struts.upload.upload.body/
/definition
definition name=tile.struts.upload.upload.body
 extends=tile.main.body.internalTitle
put name=title.key/
put name=content.tile value=/upload.jsp/
/definition

 It does eventually come back with the error message, but
 only after 5 - 10 minutes (and I see the second request
 just like Nico mentioned).  If I switch to JRockit 1.3.1,
 it hangs forever (well, at least as long as lunch :-)

 Nicolas, have you or anyone else discovered a
 solution/workaround?  Thanks!

 best,

 garthabrindoid

 Nicolas De Loof wrote:
  That's what I was trying to do and discovered that upload
  behaviour changes when going over Struts configured
  file-size limit (4Mo in my case).
 
  With a 3Mo file it works fine. With a 4,4Mo file I get
  errors on logs but upload goes on in the browser, and
  after a  long while (3 minutes) I get others validate()
  logs (related with no-file errors) and the errors are
  displayed on browser.
 
  I don't understand why I get TWO TIMES validate() logs !!
 
  If i set the size-limit to 6M, 4,4Mo upload works well
  in less than a seconds, but a  10Mo upload takes more
 than
  5 minutes. I get file-size error logs in the first
 request
  seconds, browser stays for a  (long) while and I get
  second validation error logs.
 
  Using IP or machine name doesn't change anything.
 
  Nico.


 __
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!
 http://sbc.yahoo.com

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: File Upload size restriction ??

2003-07-17 Thread Gartha Brindoid
I'm experiencing the EXACT same problem (Win2000, Struts
1.1 RC 1, Weblogic 7, Sun JDK 1.3.1_07).

I've noticed that if my input forward is a simple JSP, it
works fine.  Also, it works fine if the input forward is a
tile definition which simply specifies a JSP, like this:

definition name=tile.struts.upload.upload
path=/upload.jsp/

However, it hangs if I try to get fancy and use some
inheritance in my definitions, like this:

   definition name=tile.struts.upload.upload
extends=tile.main
   put name=window.title.key
value=key.title.window.home/
   put name=body.tile
value=tile.struts.upload.upload.body/
   /definition
   definition name=tile.struts.upload.upload.body
extends=tile.main.body.internalTitle
   put name=title.key/
   put name=content.tile value=/upload.jsp/
   /definition

It does eventually come back with the error message, but
only after 5 - 10 minutes (and I see the second request
just like Nico mentioned).  If I switch to JRockit 1.3.1,
it hangs forever (well, at least as long as lunch :-)

Nicolas, have you or anyone else discovered a
solution/workaround?  Thanks!

best,

garthabrindoid

Nicolas De Loof wrote: 
 That's what I was trying to do and discovered that upload
 behaviour changes when going over Struts configured
 file-size limit (4Mo in my case).
 
 With a 3Mo file it works fine. With a 4,4Mo file I get
 errors on logs but upload goes on in the browser, and
 after a  long while (3 minutes) I get others validate()
 logs (related with no-file errors) and the errors are
 displayed on browser.
 
 I don't understand why I get TWO TIMES validate() logs !!
 
 If i set the size-limit to 6M, 4,4Mo upload works well
 in less than a seconds, but a  10Mo upload takes more
than
 5 minutes. I get file-size error logs in the first
request
 seconds, browser stays for a  (long) while and I get
 second validation error logs.
 
 Using IP or machine name doesn't change anything.

 Nico. 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: File Upload size restriction ?? IT DOESN'T WORK ON STRUTS-EXAMPLE

2003-07-01 Thread Nicolas De Loof
I made some test on another Win2k PC with tomcat 4.1.24
I get the same browser waiting bug with *long* JSP on this config.

I can send a modified struts-upload.war file (1Mo) if you want to test
(upload.jsp changed to add 900 HTML lines)

Nico


 Making lot of tests, it seems that my problem does occur if the generated HTML is 
 long. I made this test on
 struts-upload example webapp :

 install struts-upload.war
 edit /upload.jsp to add long text (I use struts-validator javascript : 730 lines )
 try to upload a  2Mo file

 - jsp is compiled shortly after file submit
 - browser wait for long time before displaying error messsage

 Could someone please make this test on his config ? I'm not sure this troubles 
 doesn't come from my environment
(tomcat
 4.1.24 - eclipse - win2k - IE 6sp1).



 Nico.




 - Original Message - 
 From: Nicolas De Loof [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Monday, June 30, 2003 3:43 PM
 Subject: Re: File Upload size restriction ?? [TilesRequestProcessor ?]


  I'm back with my FileUpload problem ...
 
  Here is what I've done to search the problem :
  I added struts-upload example classes and mappings to my app : it works
  I migrate it to use my classes (form-bean, actions) : it works
  I migrate it to use my JSPs : it works
  I migrate it to use my Tiles definition : it fails (browser waits 10 minutes...)
 
  Her is my mapping :
  action path=/upload
  name=UploadForm
  scope=request
  input=select
  validate=true
  type=webapp.action.UploadAction
  forward name=select
  path=tiles:upload.select /
  forward name=success
  path=tiles:upload.done /
  /action
 
  If I replace tiles:upload.select by /upload.jsp (that is used in body of this 
  tile) it works fine : I get
quickly
 an
  error saying file is too large.
 
  Any idea what I can do to go deeper in my bug tracking ?
 
  Nico.
 
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



File Upload size restriction ??

2003-06-30 Thread Marc
Hallo,

I have short question according file-upload with struts:

What happens, when the configured maximal buffersize (element 
controller maxFileSize=2500K / in struts-config) is exceeded by an 
user-upload ?

The data seems to be ignored, but how can I deteced such a case so that 
I can send an error-message back to the user ?

I never got this MaxLengthExceededException mentioned in the API.

Any hints ?

Thank you

Markus



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


File Upload size restriction ??

2003-06-30 Thread Marc
Hallo,

I have short question according file-upload with struts:

What happens, when the configured maximal buffersize (element 
controller maxFileSize=2500K / in struts-config) is exceeded by an 
user-upload ?

The data seems to be ignored, but how can I deteced such a case so that 
I can send an error-message back to the user ?

I never got this MaxLengthExceededException mentioned in the API.

Any hints ?

Thank you

Markus



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: File Upload size restriction ??

2003-06-30 Thread Marc
Uups,

found the answer in one of the strus-examples.

Here it is for those who are interested.

Regards

Markus



 /**
 * Check to make sure the client hasn't exceeded the maximum 
allowed upload size inside of this
 * validate method.
 */
public ActionErrors validate(ActionMapping mapping, 
HttpServletRequest request)
{
ActionErrors errors = null;
//has the maximum length been exceeded?
Boolean maxLengthExceeded = (Boolean)

request.getAttribute(MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED);
if ((maxLengthExceeded != null)  
(maxLengthExceeded.booleanValue()))
{
errors = new ActionErrors();
errors.add(ERROR_PROPERTY_MAX_LENGTH_EXCEEDED, new 
ActionError(maxLengthExceeded));
}
return errors;

}



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: File Upload size restriction ??

2003-06-30 Thread Nicolas De Loof
I'm using fileupload too and have difficulties to send errors about file size.

Are you able to send an error message with this code ?

In my application validate method returns errors (I can see it in logs) when file is 
too large, but browser does'nt
display error JSP (waintg ...). I thing it is waiting for the file to be uploaded or 
something like this.

I'm using tomcat 4.1.24 an IE 6 on Windows 2000.

Nico.


 Uups,

 found the answer in one of the strus-examples.

 Here it is for those who are interested.

 Regards

 Markus




   /**
   * Check to make sure the client hasn't exceeded the maximum
 allowed upload size inside of this
   * validate method.
   */
  public ActionErrors validate(ActionMapping mapping,
 HttpServletRequest request)
  {
  ActionErrors errors = null;
  //has the maximum length been exceeded?
  Boolean maxLengthExceeded = (Boolean)

 request.getAttribute(MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED);
  if ((maxLengthExceeded != null) 
 (maxLengthExceeded.booleanValue()))
  {
  errors = new ActionErrors();
  errors.add(ERROR_PROPERTY_MAX_LENGTH_EXCEEDED, new
 ActionError(maxLengthExceeded));
  }
  return errors;

  }



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: File Upload size restriction ??

2003-06-30 Thread Nicolas De Loof
In fact I've got this strange behaviour :

- Form-bean is validated a first time. 
MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED is setted and an
ActionError is returned by validate().

- browser go on uploading for a long time ... (5 minutes for 10Mo upload on localhost)

- validate is called A SECOND TIME.
MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED is setted and an ActionError is 
returned by validate().

- browser show errors.


My code looks like Struts upload example. I certainly not understood something !

Nico.



 I'm using fileupload too and have difficulties to send errors about file size.

 Are you able to send an error message with this code ?

 In my application validate method returns errors (I can see it in logs) when file is 
 too large, but browser does'nt
 display error JSP (waintg ...). I thing it is waiting for the file to be uploaded or 
 something like this.

 I'm using tomcat 4.1.24 an IE 6 on Windows 2000.

 Nico.


  Uups,
 
  found the answer in one of the strus-examples.
 
  Here it is for those who are interested.
 
  Regards
 
  Markus
 
 
 
 
/**
* Check to make sure the client hasn't exceeded the maximum
  allowed upload size inside of this
* validate method.
*/
   public ActionErrors validate(ActionMapping mapping,
  HttpServletRequest request)
   {
   ActionErrors errors = null;
   //has the maximum length been exceeded?
   Boolean maxLengthExceeded = (Boolean)
 
  request.getAttribute(MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED);
   if ((maxLengthExceeded != null) 
  (maxLengthExceeded.booleanValue()))
   {
   errors = new ActionErrors();
   errors.add(ERROR_PROPERTY_MAX_LENGTH_EXCEEDED, new
  ActionError(maxLengthExceeded));
   }
   return errors;
 
   }
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: File Upload size restriction ??

2003-06-30 Thread Gemes Tibor
Nicolas De Loof rta:

- browser go on uploading for a long time ... (5 minutes for 10Mo upload on localhost)
 

Thou this is not your main problem, I'd like to add a bit:
I experienced similar behaviour w/ IE and found that changing the URL 
from http://localhost:8080/myontext to
http://my.real.ip.address:8080/mycontext solved the slow upload problem.

Tib

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


File Upload size restriction ??--another question--urgent

2003-06-30 Thread Prashanth.S
Hi all,
Is there any limit on the size of the file to be uploaded when i use struts...
Iam using FormFile interface for struts upload...
Is  there  any limit on the size of the file that is being uploaded...Iam getting 
error when i am uploading large files even though iam not using any validations...
Waiting for reply
Thanking you
Prashanth

Nicolas De Loof [EMAIL PROTECTED] wrote:
In fact I've got this strange behaviour :

- Form-bean is validated a first time. 
MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED is setted and an
ActionError is returned by validate().

- browser go on uploading for a long time ... (5 minutes for 10Mo upload on localhost)

- validate is called A SECOND TIME.
MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED is setted and an ActionError is 
returned by validate().

- browser show errors.


My code looks like Struts upload example. I certainly not understood something !

Nico.



 I'm using fileupload too and have difficulties to send errors about file size.

 Are you able to send an error message with this code ?

 In my application validate method returns errors (I can see it in logs) when file is 
 too large, but browser does'nt
 display error JSP (waintg ...). I thing it is waiting for the file to be uploaded or 
 something like this.

 I'm using tomcat 4.1.24 an IE 6 on Windows 2000.

 Nico.


  Uups,
 
  found the answer in one of the strus-examples.
 
  Here it is for those who are interested.
 
  Regards
 
  Markus
 
 
 
 
  /**
  * Check to make sure the client hasn't exceeded the maximum
  allowed upload size inside of this
  * validate method.
  */
  public ActionErrors validate(ActionMapping mapping,
  HttpServletRequest request)
  {
  ActionErrors errors = null;
  //has the maximum length been exceeded?
  Boolean maxLengthExceeded = (Boolean)
 
  request.getAttribute(MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED);
  if ((maxLengthExceeded != null) 
  (maxLengthExceeded.booleanValue()))
  {
  errors = new ActionErrors();
  errors.add(ERROR_PROPERTY_MAX_LENGTH_EXCEEDED, new
  ActionError(maxLengthExceeded));
  }
  return errors;
 
  }
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: File Upload size restriction ??

2003-06-30 Thread Vic Cekvenich
Try this API.
http://www.servlets.com/cos/index.html
.V
Nicolas De Loof wrote:

In fact I've got this strange behaviour :

- Form-bean is validated a first time. 
MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED is setted and an
ActionError is returned by validate().
- browser go on uploading for a long time ... (5 minutes for 10Mo upload on localhost)

- validate is called A SECOND TIME.
MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED is setted and an ActionError is 
returned by validate().
- browser show errors.

My code looks like Struts upload example. I certainly not understood something !

Nico.



 

I'm using fileupload too and have difficulties to send errors about file size.

Are you able to send an error message with this code ?

In my application validate method returns errors (I can see it in logs) when file is 
too large, but browser does'nt
display error JSP (waintg ...). I thing it is waiting for the file to be uploaded or 
something like this.
I'm using tomcat 4.1.24 an IE 6 on Windows 2000.

Nico.

   

Uups,

found the answer in one of the strus-examples.

Here it is for those who are interested.

Regards

Markus



 /**
 * Check to make sure the client hasn't exceeded the maximum
allowed upload size inside of this
 * validate method.
 */
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request)
{
ActionErrors errors = null;
//has the maximum length been exceeded?
Boolean maxLengthExceeded = (Boolean)
request.getAttribute(MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED);
if ((maxLengthExceeded != null) 
(maxLengthExceeded.booleanValue()))
{
errors = new ActionErrors();
errors.add(ERROR_PROPERTY_MAX_LENGTH_EXCEEDED, new
ActionError(maxLengthExceeded));
}
return errors;
}



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   

--
Vic Cekvenich,
Struts Instructor,
1-800-917-JAVA
Advanced a href =baseBeans.comStruts Training/a and project recovery in North 
East.
Open Source a href =baseBeans.comContent Management/a  basicPortal sofware
Best practicea href =baseBeans.comStruts Support/a v.1.1 helper ScafflodingXPress


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: File Upload size restriction ??--another question--urgent

2003-06-30 Thread Marc
Prashanth.S wrote:
Hi all,
Is there any limit on the size of the file to be uploaded when i use struts...
Iam using FormFile interface for struts upload...
Is  there  any limit on the size of the file that is being uploaded...Iam getting 
error when i am uploading large files even though iam not using any validations...
Waiting for reply
Thanking you
Prashanth
Don't know about the TomCat capacity with file-uploads, but you must 
define the upload-buffer size within the controler Tag in your 
struts-config XML.

The Struts docu says:

'maxFileSize - The maximum size (in bytes) of a file to be accepted as a 
file upload. Can be expressed as a number followed by a K, M, or 
G, which are interpreted to mean kilobytes, megabytes, or gigabytes, 
respectively. [250M] (optional)'

So if not set, the upload should be limited to 250 MBytes.

Regards

Markus



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: File Upload size restriction ??

2003-06-30 Thread Marc
Nicolas De Loof wrote:
In fact I've got this strange behaviour :

- Form-bean is validated a first time. 
MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED is setted and an
ActionError is returned by validate().
- browser go on uploading for a long time ... (5 minutes for 10Mo upload on localhost)

- validate is called A SECOND TIME.
MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED is setted and an ActionError is 
returned by validate().
- browser show errors.

My code looks like Struts upload example. I certainly not understood something !

Nico.
Tried a 135 MBytes upload on localhost. Took 10 sec to complete and the 
returned JSP-paged showed the correct error in the browser.

Maybe you should check first, why the uploads takes so long on your machine.

Regards

Markus



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: File Upload size restriction ??

2003-06-30 Thread Nicolas De Loof
I Tried Struts upload example App and it works fine. So browser or tomcat conf are not 
responsible.

Do you have any idea what I can look at to discover what works wrong on my app ?

Nico.




 Nicolas De Loof wrote:
  In fact I've got this strange behaviour :
  
  - Form-bean is validated a first time. 
  MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED is setted and an
  ActionError is returned by validate().
  
  - browser go on uploading for a long time ... (5 minutes for 10Mo upload on 
  localhost)
  
  - validate is called A SECOND TIME.
  MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED is setted and an ActionError 
  is returned by validate().
  
  - browser show errors.
  
  
  My code looks like Struts upload example. I certainly not understood something !
  
  Nico.
 
 Tried a 135 MBytes upload on localhost. Took 10 sec to complete and the 
 returned JSP-paged showed the correct error in the browser.
 
 Maybe you should check first, why the uploads takes so long on your machine.
 
 Regards
 
 Markus
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: File Upload size restriction ??

2003-06-30 Thread Nicolas De Loof
That's what I was trying to do and discovered that upload behaviour changes when going 
over Struts configured file-size
limit (4Mo in my case)

With a 3Mo file it works fine.
With a 4,4Mo file I get errors on logs but upload goes on in the browser, and after a 
long while (3 minutes) I get
others validate() logs (related with no-file errors) and the errors are displayed on 
browser.

I don't understand why I get TWO TIMES validate() logs !!

If i set the size-limit to 6M, 4,4Mo upload works well in less than a seconds, but a 
10Mo upload takes more than 5
minutes. I get file-size error logs in the first request seconds, browser stays for a 
(long) while and I get second
validation error logs.

Using IP or machine name doesn't change anything.

Nico.


 Tried a 135 MBytes upload on localhost. Took 10 sec to complete and the
 returned JSP-paged showed the correct error in the browser.

 Maybe you should check first, why the uploads takes so long on your machine.

 Regards

 Markus



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: File Upload size restriction ??

2003-06-30 Thread Marc
Nicolas De Loof wrote:
That's what I was trying to do and discovered that upload behaviour changes when going 
over Struts configured file-size
limit (4Mo in my case)
With a 3Mo file it works fine.
With a 4,4Mo file I get errors on logs but upload goes on in the browser, and after a 
long while (3 minutes) I get
others validate() logs (related with no-file errors) and the errors are displayed on 
browser.
I don't understand why I get TWO TIMES validate() logs !!

If i set the size-limit to 6M, 4,4Mo upload works well in less than a seconds, but a 
10Mo upload takes more than 5
minutes. I get file-size error logs in the first request seconds, browser stays for a 
(long) while and I get second
validation error logs.
Using IP or machine name doesn't change anything.

Nico.
Had some mysterious browser-waits too. That had nothing to do with 
file-uploads in my case, but with some mapping-configuration in the 
struts-config.xml.

I finally got a work around when forwarding from an Action-Servlet 
direct to a jsp-page and not through any ActionMapping.

Never figured out the real problem after I find the workaround.

Did you try the struts-example with an upload-limit ?

If this works without problem too, maybe you should play around with 
some different forward mappings...

regards

Markus



Maybe you



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: File Upload size restriction ?? [TilesRequestProcessor ?]

2003-06-30 Thread Nicolas De Loof
I'm back with my FileUpload problem ...

Here is what I've done to search the problem :
I added struts-upload example classes and mappings to my app : it works
I migrate it to use my classes (form-bean, actions) : it works
I migrate it to use my JSPs : it works
I migrate it to use my Tiles definition : it fails (browser waits 10 minutes...)

Her is my mapping :
action path=/upload
name=UploadForm
scope=request
input=select
validate=true
type=webapp.action.UploadAction
forward name=select
path=tiles:upload.select /
forward name=success
path=tiles:upload.done /
/action

If I replace tiles:upload.select by /upload.jsp (that is used in body of this 
tile) it works fine : I get quickly an
error saying file is too large.

Any idea what I can do to go deeper in my bug tracking ?

Nico.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: File Upload size restriction ?? IT DOESN'T WORK ON STRUTS-EXAMPLE

2003-06-30 Thread Nicolas De Loof
Making lot of tests, it seems that my problem does occur if the generated HTML is 
long. I made this test on
struts-upload example webapp :

install struts-upload.war
edit /upload.jsp to add long text (I use struts-validator javascript : 730 lines )
try to upload a  2Mo file

- jsp is compiled shortly after file submit
- browser wait for long time before displaying error messsage

Could someone please make this test on his config ? I'm not sure this troubles doesn't 
come from my environment (tomcat
4.1.24 - eclipse - win2k - IE 6sp1).



Nico.




- Original Message - 
From: Nicolas De Loof [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, June 30, 2003 3:43 PM
Subject: Re: File Upload size restriction ?? [TilesRequestProcessor ?]


 I'm back with my FileUpload problem ...

 Here is what I've done to search the problem :
 I added struts-upload example classes and mappings to my app : it works
 I migrate it to use my classes (form-bean, actions) : it works
 I migrate it to use my JSPs : it works
 I migrate it to use my Tiles definition : it fails (browser waits 10 minutes...)

 Her is my mapping :
 action path=/upload
 name=UploadForm
 scope=request
 input=select
 validate=true
 type=webapp.action.UploadAction
 forward name=select
 path=tiles:upload.select /
 forward name=success
 path=tiles:upload.done /
 /action

 If I replace tiles:upload.select by /upload.jsp (that is used in body of this 
 tile) it works fine : I get quickly
an
 error saying file is too large.

 Any idea what I can do to go deeper in my bug tracking ?

 Nico.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]