You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Caroline Jen <ji...@yahoo.com> on 2004/10/14 22:22:24 UTC

and Problem

I have a form with a drop-down menu in it.  The
drop-down menu is created using the <html-el:...> tag.

Everything displays well this way:
<html-el:form action="/content/AddFiles">
    <html-el:select property="document">
    <html-el:option value="">-Select-</html-el:option>
    <html-el:options collection="PageBeans"
property="idAndName" labelProperty="name"/>
    </html-el:select>
</html-el>

But, if I add this attribute;
ENCTYPE="multipart/form-data", in the <html-el:form
...> tag like this:
 
<html-el:form ENCTYPE="multipart/form-data"
action="/content/AddFiles">

I get this runtime error in the browser:
Attribute ENCTYPE invalid for tag form according to
TLD'

If I use the <form ENCTYPE="multipart/form-data"
action="/content/AddFiles"> together with the
<html-el:select ...>, <html-el:option ...>,
<html-el:options ...> tags, I do not get runtime error
message; nonethess, the drop-down menu "cannot" be
displayed.

What should I do?

 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: and Problem

Posted by Hubert Rabago <hr...@gmail.com>.
Try "enctype":
http://struts.apache.org/userGuide/struts-html.html#form


On Thu, 14 Oct 2004 13:22:24 -0700 (PDT), Caroline Jen
<ji...@yahoo.com> wrote:
> I have a form with a drop-down menu in it.  The
> drop-down menu is created using the <html-el:...> tag.
> 
> Everything displays well this way:
> <html-el:form action="/content/AddFiles">
>    <html-el:select property="document">
>    <html-el:option value="">-Select-</html-el:option>
>    <html-el:options collection="PageBeans"
> property="idAndName" labelProperty="name"/>
>    </html-el:select>
> </html-el>
> 
> But, if I add this attribute;
> ENCTYPE="multipart/form-data", in the <html-el:form
> ...> tag like this:
> 
> <html-el:form ENCTYPE="multipart/form-data"
> action="/content/AddFiles">
> 
> I get this runtime error in the browser:
> Attribute ENCTYPE invalid for tag form according to
> TLD'
> 
> If I use the <form ENCTYPE="multipart/form-data"
> action="/content/AddFiles"> together with the
> <html-el:select ...>, <html-el:option ...>,
> <html-el:options ...> tags, I do not get runtime error
> message; nonethess, the drop-down menu "cannot" be
> displayed.
> 
> What should I do?
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org