RE: Forms and Struts Question

Use "styleid" rather than "id" for form controls associated with a <label>.
"id" has a different meaning in struts. the struts docs say to use "styleid"
when it is parsed the html output will be "id" and assistive technology will
see everything as correct and use the label information.

Jim Allan, Webmaster & Statewide Technical Support Specialist
Texas School for the Blind and Visually Impaired
1100 W. 45th St., Austin, Texas 78756
voice 512.206.9315    fax: 512.206.9264  http://www.tsbvi.edu/
"I see the Earth. It is so beautiful."--first words spoken by human in
space.
[Yuri Alekseevich Gagarin, from the Vostok 1, April 12, 1961.]


-----Original Message-----
From: w3c-wai-ig-request@w3.org [mailto:w3c-wai-ig-request@w3.org]On
Behalf Of Lubow Scott
Sent: Tuesday, October 14, 2003 3:34 PM
To: w3c
Subject: Forms and Struts Question



Hi Everyone,
I am having a problem with Forms and Struts for compliance.
Here is an example of what I am trying to do with the struts <html:text>

tag. The following code is what we have in the login.jsp file.

	<tr background="<%=root%>/images/color_lt_blue.gif">
		<td width="32%" align="right" class="body" scope="row"><LABEL
FOR="userName"><a name="login"></a><u>L</u>ogin:</LABEL></td>
		<td width="33%"  class="body"><html:text maxlength="20" size="20"
property="userName" accesskey="l"/></td>
		<td width="35%"><html:submit styleClass="button" value="Login"
accesskey=""/></td>
	</tr>

I understand that to make it  508 compliant, we need to have the <LABEL
FOR=""> correspond to the "id" attribute of the <input> tag that is rendered
when the jsp is compiled. To do this, I tried the following. When I tried to
test the page, it did not load - I received a compile error when trying to
add the "id" attribute to the <html:text> tag with the following code.


	<tr background="<%=root%>/images/color_lt_blue.gif">
		<td width="32%" align="right" class="body" scope="row"><LABEL
FOR="userName"><a name="login"></a><u>L</u>ogin:</LABEL></td>
		<td width="33%"  class="body"><html:text maxlength="20" size="20"
property="userName" id="userName" accesskey="l"/></td>
		<td width="35%"><html:submit styleClass="button" value="Login"
accesskey=""/></td>
	</tr>

Please advise as to how to make applications with struts tags 508-compliant.

Thanks
Scott



---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.525 / Virus Database: 322 - Release Date: 10/9/2003

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.525 / Virus Database: 322 - Release Date: 10/9/2003

Received on Tuesday, 14 October 2003 16:51:11 UTC