struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From whichit <>
Subject styleId attribute in html:form
Date Thu, 11 Oct 2007 14:16:25 GMT

Hello all.

We have a struts form, and we need to have a styleId element (which
translates into a standard HTML id element). When we include it, the page
breaks, with no errors logged, just a blank page. If we leave it out
completely, when the page loads an id element has been included, with the
value set to the name of the form as defined in the struts-config file.
That's not id we need!

So, with the following form declaration the page is fine:

<html:form action="/signup/">

But with this, our page breaks.

<html:form action="/signup/" styleId="fm_1">

In the first case, the HTML gets translated as:

<form id="step1Form" method="post" action="/signup/">
(why did the id get put there automatically?)

Why can't I include my custom styleId?

If I make the form a normal HTML form, everything works fine. What
implications are there for the rest of the struts elements if the form is
declared in this way?

Many thanks!

View this message in context:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message