on 05-26-2008 2:19 PM
Hi everybody,
I'm developing a J2EE application in NWDS. So I have my 3 modules (EJB module, WEB module and application module)
In my jsp files I'd like to be able to use the htmlb tags so that it has the SAP look and feel. But I don't know how to add these.
Supposably I will need to import a jar file and a *.tld file somewhere in my project but I don't know where to get this *.jar and *.tld nor where I need to import this.
Can somebody help me with this?
Thank you!
Kind regards
Wouter
Edited by: Wouter Delellio on May 26, 2008 3:21 PM
Hi ,
You need to add the following path "/SERVICE/htmlb/taglib/htmlb.tld"
to web.xml, and can use it in the same way.
Thanks
Ritushree
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Wouter,
The tld has to be added in the component profile.
I am pasting the sample portalapps.xml
<?xml version="1.0" encoding="utf-8"?>
<application>
<application-config>
<property name="PrivateSharingReference" value="com.sap.portal.htmlb"/>
</application-config>
<components>
<component name="MaintenancePage">
<component-config>
<property name="ClassName" value="MaintenancePage"/>
<property name="ComponentType" value="jspnative"/>
<property name="JSP" value="pagelet/Maintenance Page.jsp"/>
</component-config>
<component-profile/>
</component>
<component name="output">
<component-config>
<property name="ClassName" value="com.sap.pdk.tech.custompersonalization.output"/>
</component-config>
<component-profile/>
</component>
<component name="selectionScreen">
<component-config>
<property name="ClassName" value="com.sap.pdk.tech.custompersonalization.selectionScreen"/>
</component-config>
<component-profile>
<property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
<property name="PersonalizationClass" value="com.sap.personalizationDialog.selectionScreen"/>
</component-profile>
</component>
</components>
<services/>
</application>
Here you can find the class which is using the htmlb.tld, service tag has been amended in its component profile.
Hope it helps.
Regards,
Prashil
Hi Wouter,
I did that the following way:
1. In the J2EE Application: Add a reference to "com.sapportals.htmlb" to the application-j2ee-engine.xml:
<reference
reference-type="hard">
<reference-target
provider-name="sap.com"
target-type="library">com.sapportals.htmlb</reference-target>
</reference>
2. In your Web Application: Copy the htmlb.tld to your WEB-INF-Folder. You should find the htmlb.tld in your j2ee-engine directory under:
usr/sap/<sid>/jc<xx>/j2ee/cluster/server0/apps/sap.com/com.sapportals.htmlb.ear/servlet_jsp/htmlb/root
3. Add a taglib definition in your web.xml:
<taglib>
<taglib-uri>htmlb</taglib-uri>
<taglib-location>/WEB-INF/htmlb.tld</taglib-location>
</taglib>
4. Add the taglib definition in your JSPs (as you already did):
<%@taglib uri= "htmlb" prefix="hbj"%>
Now you can use htmlb in your JSPs.
There might be other ways to achieve this. But it worked for me
Best regards,
Stefan Brauneis
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.