Just an FYI to those that care. I for one, hate using Struts specific tags in my view layer. I've never figured out what the benefit is from straying from standardized HTML tags, especially when they are not needed. So I use regular HTML forms, controls and buttons.
The only requirement to getting this to work properly, is setting the name attribute on your tags, as this is what Struts uses to popular bean properties (at least in my experience). Someone correct me if I'm wrong. Here is an example form that works in Struts without having to use the Struts tags: <form method="post" action="[EMAIL PROTECTED] action="login" /]"> <label for="username">[EMAIL PROTECTED] name="i18n.input.username" /]: </label> <input type="text" name="username" id="username" maxlength="${USERNAME_MAX_LENGTH}" value="${username!}" tabindex="1" /><br /> <label for="password">[EMAIL PROTECTED] name="i18n.input.password" /]: </label> <input type="password" name="password" id="password" maxlength="${PASSWORD_MAX_LENGTH}" value="${password!}" tabindex="2" /><br /> <input type="submit" name="submit" id="submit" value="Login" tabindex="3" /> </form> I'm using Freemarker for my views which is why you see funny tags and expression syntax. But you could just as easily use JSP as well. Cheers, C On 5/23/07, Dave Newton <[EMAIL PROTECTED]> wrote:
--- Alin Tomoiaga <[EMAIL PROTECTED]> wrote: > Besides the fact that we should try and handle all > our tags in a uniform manner and plan for future > changes, is there an extra feature that > <html:submit> brings over <input type="submit"> ? Exactly what I told you the first time. Did you look at the link I provided that gives you a list of (all, but only pay attention to the Struts-specific ones!) attributes that <html:submit.../> uses? http://struts.apache.org/1.2.9/userGuide/struts-html.html#submit altKey, bundle, indexed, titleKey, and property are all Struts-specific (I think)... largely message- and ActionForm-related stuff. d. ____________________________________________________________________________________ It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar. http://tools.search.yahoo.com/toolbar/features/mail/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]