on 08-12-2005 11:41 AM
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.
Regards,
Guru
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">
<component-config>
<property name="ComponentType" value="JSPNative"/>
<property name="JSP" value="pagelet/help.jsp"/>
</component-config>
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,
Marty
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Marty,
Kool.Its work thanks.
Points assigned )
Rdgs,
G
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
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.