Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

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

Anton Pussep

2007-11-02


There is no s:head tag, since I am not using Ajax. Thus it should be the
default xhtml.

Best,
Anton

Martin Gainty wrote:
> Hi Anton
>
> which theme is specified in your s:head tag?
>
> Martin-
> ----- Original Message -----
> From: "Anton Pussep" <anton-ml@(protected)>
>
> To: "Struts Users Mailing List" <user@(protected)>
> 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 files
>> I upload. What might be the problem here?
>>
>> I tried this with Struts 2.0.9 and 2.0.11.
>>
>> Best,
>> Anton
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.