Showing results for 
Search instead for 
Did you mean: 

Link Problem in JSP Dynpage

Active Contributor
0 Kudos

Hi Folks,

My requirement is as follows.

I have jsp file being integrated with JSPDynpage.on the left hand side of the jsp file I am trying to call one more jsp file on hyperlink.I have all my jsp files under pagelet/webapps/holcim/jsp folder.

But my problem is when I click the hypelink in the first jsp I am not able to go the second jsp.It says the reqd file is not found.

I tried with componentRequest.getWebResourcePath() also.Nothing worked?

The above scenario works perfectly in Tomcat.

Any clues you will be rewarded for really helpful answers.



Accepted Solutions (1)

Accepted Solutions (1)

Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Guru,

In order to access the JSP's via url, you need to create a new component in your portalapp.xml as such:

    <component name="Help">
        <property name="ComponentType" value="JSPNative"/>
        <property name="JSP" value="pagelet/help.jsp"/>

Then in order to create your link in the JSP do the following:

<% String componentName = componentRequest.getComponentContext().getApplicationName();
   String helpUrl = "/irj/servlet/prt/portal/prtroot/"+componentName+".Help";

Hope this helps,


Answers (1)

Answers (1)

Active Contributor
0 Kudos

Hi Marty,

Kool.Its work thanks.

Points assigned )