It's not a secret anymore!*
The moose likes Struts and the fly likes form and html-el:form Problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "form and html-el:form Problems" Watch "form and html-el:form Problems" New topic
Author

form and html-el:form Problems

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
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:

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

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 ption ...>, <html-el ptions ...> tags, I do not get runtime error message; nonethess, the drop-down menu "cannot" be displayed.

What should I do?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: form and html-el:form Problems
 
Similar Threads
JSP Struts/JSTL Form problem
how to fill a combobox with values from objects in an ArrayList...
Exception creating bean of class org.dhsinfo. content.AddFileForm: {1}'
Drop-Down Menu Has a Hidden Property to be Forwarded Along With the Selection
text field not populating after validate() fails.