[an error occurred while processing this directive]
Taglib : tagColor
[an error occurred while processing this directive]
[
Search
|
Home Page
|
Index Java Servlet
]
Index
Presentation
With JSP you can create and add a new
TAGs
in your site.
The
taglib
directive :
<%@
taglib uri
="tag_library_URI"
prefix
="tag_prefix"
%>
You can use the new tag :
<
tag_prefix:tag_method
>
... votre code ...
</
tag_prefix:tag_method
>
tagColor
With this component you can add a "tag" librarie to colorized the java code send in your JSP page. It's easy to add other language in this tag librarie. .
Sample JSP code :
<%@
taglib uri
="javaside-taglib.tld"
prefix
="javaside"
%>
<
javaside:srcColor code="java"
>
... your JAVA code ...
</
javaside:srcColor
>
Parameters :
Name
Required
Comments
code
No
To chose the language
Only "java" in the current version
css
No
To use CSS, define css prefix to use
Sample with css="jv" you use :
jvcom : for comments
jvstr : for strings
jvkw1 / jvkw2 / jvkw3 : For java keyword
cmcolor
No
Without CSS to change default comments color (#40B040)
kw1color
kw2color
No
Without CSS to change default java keyword color (#0000F0 / #FF0000)
Samples use :
Sample 1 :
srcColor_us.jsp
sample 2 :
Use this to test this tag with your java code.
Your source code : (use CSS
)
Download :
taglib :
tagColor.zip
tld :
javaside-taglib.tld
[an error occurred while processing this directive]
[an error occurred while processing this directive]