WebSphere Portal Server - Regarding Custom tags in Portlets

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > June 2007 > Regarding Custom tags in Portlets





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Regarding Custom tags in Portlets

2007-06-25, 1:24 pm

Hello All,
I need to implement custom tags in my project, so wrote all the required code(tld, tag handler class,etc) and placed it on the page.
I am using WebSphere Portal Server v5.1.0.1,in RAD, the tld file is given below:

<?xml version="1.0" encoding="UTF-8"?>


<taglib>

<tlib-version>1.2</tlib-version>

<jsp-version>1.2</jsp-version>
<shortname>trail</shortname>
<tag>
<name>kar</name>
<tagclass>com.miracle.tag.Data</tagclass>
<info>THIS IS DATA CONNECTION TRAIL</info>
<bodycontent>EMPTY</bodycontent>
<attribute>
<name>usname</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>passwd</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
</taglib>


And when i use the above code, it is throwing an PortletUnavailableException , and it is saying version problem
Jessica Garcia-Glennie

2007-06-25, 1:24 pm

Does the DOCTYPE declaration at the top of your tld match the version of your jsp-version attribute? You didn't include it in your post, but it should be http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd, I think.

2007-06-25, 1:24 pm

Thank You, i didn't give the DOCTYPE , i will try now.
ThankYou
Mahmoud Matouk

2007-06-26, 1:21 pm

Hi, are you using RAD 7.0 or 6.0 ??

check the Java level for compiled jars and make sure it is 1.4 not 5.0

2007-06-26, 1:21 pm

Does JSR168 support custom tags?,
i tried using the DOCTYPE element but the custom tags are only working in the IBM API, i am getting JasperException in JSR168.
Please give your valuable suggestions, very urgent, need this for my project.

2007-06-26, 1:21 pm

I am using RADv6.0, it is set 1.4

2007-06-26, 1:21 pm

I tried using it , custom tags are working fine in IBM portlets,
but i am getting JasperException in JSR168 portlets, does it support custom tags?
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com