Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2007

Tip: Looking for answers? Try searching our database.

Practical JSP Tag Files

Thread view: 
Eric Jablow - 07 Aug 2007 03:50 GMT
For a work project, I have written a simple
JSP 2.0 tag file using the JSTL to convert
code like

<hh:label for="name" label="Name"
   accessKey="N" keyClass="akey"
   required="true"/>

to

<label for="name">
 <span class="akey">N</span>ame<em>*</em>
</label>

I find the second one harder to read, and harder
to give a web designer to fill out.

Do any of you know of similar open source tag
files or tag libraries that make common HTML
tasks simpler to perform?  I would be willing
to contribute.

Yes, I know hh:label would need to change
if I wanted to support i18n.  And I'd be using
CSS to style the class and the em.

Signature

Respectfully,
Eric Jablow

Lew - 07 Aug 2007 13:58 GMT
> For a work project, I have written a simple
> JSP 2.0 tag file using the JSTL to convert
[quoted text clipped - 21 lines]
> if I wanted to support i18n.  And I'd be using
> CSS to style the class and the em.

Your tag sports a subset of the capabilities of the <h:outputLabel> tag of
Java Server Faces (JSF). a standard part of JEE.

<http://java.sun.com/javaee/javaserverfaces/1.2/docs/tlddocs/h/outputLabel.html>

Among other things, the JSF tags include the ability to bind to server-side
logic, and can implement AJAX solutions (e.g., following Sun's Java Blueprints).

JSF includes robust support for resource bundles and stylesheets.

Signature

Lew



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.