Re: File upload issues when maxFileSize is exceeded.

2008-02-08 Thread James Sanders
Thanks Laurie! That's a pretty good idea, and quite possibly what we'll do. The problem with it is that the file is sent along with other form parameters, and if I remember correctly, the Content-Length header is the full length of the body of the post, which would include all the text for those pa

Re: File upload issues when maxFileSize is exceeded.

2008-02-08 Thread James Sanders
Thanks for your response Martin, but as Dave pointed out, we do not have that interface available as we are using 1.2.9. Does anybody know at what point the framework begins to actually save a FormFile and if there is any way to hook into that and check the length before that happens? On Feb 7, 20

James Sanders wants to chat

2007-12-10 Thread James Sanders
--- James Sanders wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-5fb5492210-954f5d12a2-5346bf8a03d22ffb You'

Re: Pass value from validation.xml to error message? Bob Harrison greenhorn Member # 122590 Pass value from validation.xml to error message? Bob Harrison greenhorn Member # 122590 Pass value from vali

2006-08-27 Thread James Sanders
Bob, Niall is completely right that you generally don't want to do this as it is a security hazard, however he is wrong that it cannot be done. You just need to use a custom ValidatorForm rather than relying solely on the validation config file. To do this, make the ActionForm that the ccnum prop

Re: [OT] migrate Struts app from jdk 1.4 to jdk1.5

2006-08-27 Thread James Sanders
I have been getting rid of these warnings without using @SuppressWarnings and in a way that I think makes the casts a bit more explicit. I don't know what you are doing in case (1), but in case (2), you can do this: TreeSet mySet = new TreeSet(); for(Object jobTemplate : request.getSession().ge

Re: Using bean:message from non-struts servlet

2006-08-15 Thread James Sanders
Thank you Rahul, this was exactly what I needed. I was not formerly familiar with the fmt taglib. On 8/15/06, Rahul Akolkar <[EMAIL PROTECTED]> wrote: On 8/15/06, James Sanders <[EMAIL PROTECTED]> wrote: > Puneet, > > Thank you for your response. The problem is that this

Re: Using bean:message from non-struts servlet

2006-08-15 Thread James Sanders
15/06, Puneet Lakhina <[EMAIL PROTECTED] > wrote: On 8/16/06, James Sanders <[EMAIL PROTECTED] > wrote: > > Working within a larger struts system, it became necessary for me to > create > a servlet, which co-exists with, but outside of, the system. This has > worked &g

Using bean:message from non-struts servlet

2006-08-15 Thread James Sanders
Working within a larger struts system, it became necessary for me to create a servlet, which co-exists with, but outside of, the system. This has worked very well, but I now find myself wishing to use the functionality of and MessageResource files in a jsp outside the struts realm. It is not diff