Font Tag is deprecated see
http://www.w3.org/TR/html401/present/graphics.html#edef-FONT
If you are on JSP 2.0 it is very easy to write a Tag yourself. Just
override doTag() method of SimpleTagSupport class.
See:
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/jsp/tagext/SimpleTagSupport.html
http://www.sitepoint.com/print/jsp-2-simple-tags - very simple tutorial.
I think tomcat 5.x comes bundled with basic examples you should be able
to find examples in webapp jsp-examples.
Look in folder TOMCAT_HOME\webapps\jsp-examples\jsp2\simpletag for
HelloWorldSimpleTag.java.html
Thanks,
Vijay Venkataraman
Bart Busschots wrote:
Anything you can do with a font tag you can do with CSS. In this day
and age no one should be using font tags anymore!
Bart.
Pankaj Gupta wrote:
I dont think CSS can work in this case as the CSS would be static. I
want to display color of the font based on the value of severity of
message i.e. if the message is critical it should be displayed in
red, info in blue, etc. i.e. It would depend on the value of a form
bean property.
Li wrote:
why not use CSS?
On 7/17/06, Pankaj Gupta <[EMAIL PROTECTED]> wrote:
Hi All,
I want to create a custom tag which wraps the plain html font tag in
such a way that it fetches the color of the font to be displayed on a
pre-configured severity level. Can anyone pl suggest how can I do
that.
regards,
Pankaj
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
------------------------------DISCLAIMER------------------------------
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient.
Lisle Technology Partners Pvt. Ltd. and any of its subsidiaries each
reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the
individual sender, except where the message states otherwise and the
sender is authorized to state them to be the views of any such entity.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]