Re: Struts 2, file tag, accept attribute not working?

2007-12-13 Thread Amit Rana
tag to work? Thanks, Amit. -- Forwarded message -- From: Martin Gainty [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Date: Wed, 12 Dec 2007 21:59:17 -0500 Subject: Re: Struts 2, file tag, accept attribute not working? you can hook the submit event to JS

Re: Struts 2, file tag, accept attribute not working?

2007-12-12 Thread Amit Rana
Hi Anton, Were you able to finally get it to work? I am using 2.0.9 and accept just doens't seem to be doing anything. Regards, Amit. Re: Struts 2, file tag, accept attribute not working? Anton Pussep Sat, 03 Nov 2007 10:09:23 -0800 Modifying FileUploadInterceptor or settings its parameters

Re: Struts 2, file tag, accept attribute not working?

2007-12-12 Thread Raghuveer Rawat
seem to be doing anything. Regards, Amit. Re: Struts 2, file tag, accept attribute not working? Anton Pussep Sat, 03 Nov 2007 10:09:23 -0800 Modifying FileUploadInterceptor or settings its parameters in struts.xml is not a proper solution since I have two s:file fields in my form and both

Re: Struts 2, file tag, accept attribute not working?

2007-12-12 Thread Martin Gainty
: Wednesday, December 12, 2007 5:48 AM Subject: Re: Struts 2, file tag, accept attribute not working? Hi Anton, Were you able to finally get it to work? I am using 2.0.9 and accept just doens't seem to be doing anything. Regards, Amit. Re: Struts 2, file tag, accept attribute not working

Re: Struts 2, file tag, accept attribute not working?

2007-12-12 Thread Dave Newton
--- Martin Gainty [EMAIL PROTECTED] wrote: you can hook the submit event to JS function and then test the content type before submitting head script language=JavaScript type=text/javascript function doSubmit() { if(%{uploadContentType}%=='text/xml') How does JavaScript know the content

Re: Struts 2, file tag, accept attribute not working?

2007-11-03 Thread Anton Pussep
Mailing List user@struts.apache.org Sent: Friday, November 02, 2007 6:03 AM Subject: Struts 2, file tag, accept attribute not working? Hello, I am using the following tag for uploading text files: s:file name=myDoc accept=text/plain / I expected it to recognise wrong content types

Re: Struts 2, file tag, accept attribute not working?

2007-11-03 Thread Martin Gainty
- Original Message - From: Anton Pussep [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Friday, November 02, 2007 12:03 PM Subject: Re: Struts 2, file tag, accept attribute not working? There is no s:head tag, since I am not using Ajax. Thus it should

Struts 2, file tag, accept attribute not working?

2007-11-02 Thread Anton Pussep
Hello, I am using the following tag for uploading text files: s:file name=myDoc accept=text/plain / I expected it to recognise wrong content types, but it accepts any files I upload. What might be the problem here? I tried this with Struts 2.0.9 and 2.0.11. Best, Anton

Re: Struts 2, file tag, accept attribute not working?

2007-11-02 Thread Martin Gainty
Hi Anton which theme is specified in your s:head tag? Martin- - Original Message - From: Anton Pussep [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Friday, November 02, 2007 6:03 AM Subject: Struts 2, file tag, accept attribute not working? Hello, I

Re: Struts 2, file tag, accept attribute not working?

2007-11-02 Thread Anton Pussep
@struts.apache.org Sent: Friday, November 02, 2007 6:03 AM Subject: Struts 2, file tag, accept attribute not working? Hello, I am using the following tag for uploading text files: s:file name=myDoc accept=text/plain / I expected it to recognise wrong content types, but it accepts any