Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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


Win a copy of The Software Craftsman this week in the Agile forum!
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?
 
Have you tried LearnNowOnline? http://www.learnnowonline.com/
 
subject: form and html-el:form Problems