cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to use hbj tags in my JSP

Former Member
0 Kudos

Hi all,

I am involved with customisation of the portal logon screens. I am working with the com.sap.portal.runtime.logon.par file. I have added a new JSP to this par. On click of the Submit button on this JSP page, for doing the processing, I created a JSP Dynpage component. But I am unable to add hbj tags to my JSP page, though I have added -

<%@taglib uri="tagLib" prefix="hbj" %> in my JSP page

I have also made the <b>application-config</b> entry in the Portal-app.xml-

<property name="PrivateSharingReference" value="com.sap.portal.htmlb"/>

And in the component that I created, I have added the following code to the component profile tags-

<component-profile>
        <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
</component-profile>

It gives me the error:

Portal Runtime Error

An exception occurred while processing a request for :

iView : mylogon.default

Component Name : mylogon.default

Error in parsing taglib 'tagLib' tag in web.xml or .tld file of the taglib library..

Can anyone please suggest what could this be due to?

Is there any other way in which I can implement my submit logic of the new JSP that I have added to the logon PAR (Because the processing of existing pages happens in the SAPlogonLogic.java which exists in umelogonbase.jar)

- Regards,

Ashwini.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

HI Ashwini,

Apart from what yoga said,if the problem still exists

may be the tld file got corrupted. Try to paste it once again and then try deploying. It worked for us. It might work for you too.

Hope it helps.

Regards,

Vivekanandan

Former Member
0 Kudos

Hi Vivek,

can you please give me the location of the tld file?

-Ashwini.

Former Member
0 Kudos

Hi Ashwini,

Check if htmlb.jar and com.sap.portal.htmlb_api.jar are added to the project.

If not, add them manually to ur project.

The tld file will be in this location.


usr\sap\J2e\Jc00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\portalapps\com.sap.portal.htmlb\taglib\htmlb.tld

Try taking a backup copy of this file and replace this file from another server. It may help.

Regards,

Harini S

Former Member
0 Kudos

Hi,

Pls try application-config tag like this

<application-config>

<property name="PrivateSharingReference" value="com.sap.portal.htmlb">

</property>

<property name="SharingReference" value="com.sap.portal.runtime.application.soap">

</property>

</application-config>

Also check component tag is in this order

<component name="AddAccounts">

<component-config>

<property name="ClassName" value="Test">

</property>

<property name="JSP" value="pagelet/test.jsp">

</property>

</component-config>

<component-profile>

<property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld">

</property>

</component-profile>

</component>

regards,

Sujesh

Former Member
0 Kudos

Hi Sujesh,

I tried this one out too.. but didnt help..

Ashwini.

Former Member
0 Kudos

Hi Ashwini

Change PrivateSharingReference in component-config to SharingReference and try.

<b><property name="SharingReference" value="com.sap.portal.htmlb"/></b>

Also check whether you have deleted the below specified lines in component-config of portalapp.xml file.

<property name="ComponentType" value="jspnative"/>

<property name="JSP" value="pagelet/xxx.jsp"/>

Let me know the results.

Regards

Yoga

Former Member
0 Kudos

Hi yoga,

I tried the option as you suggested, But i get the same error i was previously getting:

Portal Runtime Error

An exception occurred while processing a request for :

iView : mylogon.default

Component Name : mylogon.default

Error in parsing taglib 'tagLib' tag in web.xml or .tld file of the taglib library..

-Ashwini.