• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tooltip in struts 2

 
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using struts 2. I wanted to have the tooltip attribute with <html:a tag. I tried doing that by ><html:a href="/test.action" required="true" tooltip="Tool tip here">, but it doesnt work.

Any advise on this.. I searched the forum and I dont find the exact answer..
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which version of S2? Are you really using "html" as the S2 tag prefix?! I would strongly advise against that, since it will create confusion (S1 used "html" as the traditional prefix for the S1 HTML-oriented tags) and it's inaccurate, since many S2 tags don't produce HTML.
 
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
With Struts2 you can do something like this for tooltip -

<a href="<s:url action='logout'/>" title="click here to log out">Sign Out</a>

make sure you have struts tags loaded -
<%@ taglib prefix="s" uri="/struts-tags" %>
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's something quite different than S2's tooltip support.
 
vishwa venkat
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
David,

I know thats a tweak that we did for displaying the tooltip, served our purpose. let me know if you have any ideas.

Thanks,
-Visu
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's the standard HTML hover text; the tooltip support of S2 is JavaScript-based. The tag docs have tooltip info.
 
reply
    Bookmark Topic Watch Topic
  • New Topic