A "tooltip" is the HTML title attribute in the anchor tag <a href="..." title="This appears when you hover over the anchor text">this is the anchor text</a>
The struts <s:a ..> tag has a title attribute. -B James Neff <[EMAIL PROTECTED] th.com> To user@struts.apache.org 06/18/2008 06:32 cc AM Subject expressions in s:a tag attributes Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED] he.org> I'm trying to add a tooltip to an s:a tag. I couldn't get the tooltip attribute to work so now I am trying to get a tooltip via an onmouseover Javascript. The Javascript code works and I get my tooltip but the text in the tooltip I want when I create the s:a tag. Here is my code: <s:iterator value="codes"> <s:a href="#" onmouseover="ddrivetip('${codeDescription}', 300)" onmouseout="hideddrivetip()"> <s:property value="code"/> </s:a> </s:iterator> My problem is the ${codeDescription} in the onmouseover attribute. The compiler is giving me this error: "According to TLD or attribute directive in tag file, attribute onmouseover does not accept any expressions" How do I get the value of the field codeDescription to print into my onmouseover script? Thanks in advance, James --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- This message, together with any attachments, is intended only for the use of the individual or entity to which it is addressed. It may contain information that is confidential and prohibited from disclosure. If you are not the intended recipient, you are hereby notified that any dissemination or copying of this message or any attachment is strictly prohibited. If you have received this message in error, please notify the original sender immediately by telephone or by return e-mail and delete this message, along with any attachments, from your computer. Thank you. --------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]