Home
TeamSite
How to call a custom JSP in TS 6.1
nagappan
I am not able to call a custom JSP from a link in ui_custom File.
1) I created a custom JSP RedirectURL.jsp and put it in the path <iw-home>/local/config/lib/content_center/customer_src/src/
2) added the definition given below in the web.xml located in <iw-home>/local/config/lib/content_center/customer_src/etc
<servlet>
<servlet-name>RedirectURL</servlet-name>
<jsp-file>/RedirectURL.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>RedirectURL</servlet-name>
<url-pattern>/iw/opendeploy/login</url-pattern>
</servlet-mapping>
3) The ui_custom File had the following definition
<link id="cus.common.ODAdminGUI.link"
label="OpenDeploy GUI"
description="OD Admin GUI"
url="/iw/opendeploy/login"
target="_blank">
When I click the link from GUI am getting the error message as saying "unable to locate the /RedirectURL.jsp file".
I feel there is a problem in the mapping between the JSP location and the link.
Please any one can tell me wher to put a custom JSP and how.
Thank you
Nagappan
Find more posts tagged with
Comments
Bill Klish
To call the JSP do the following:
1. move the JSP page into the following directory: $IW_HOME/local/config/lib/content_center/customer_src/web/customer
2. Remove the information that you added in web.xml
3. Change the entry in ui_custom.xml to look like this:
<link id="cus.common.ODAdminGUI.link"
label="OpenDeploy GUI"
description="OD Admin GUI"
url="/iw-cc/customer/RedirectURL.jsp"
target="_blank">
4. Rebuild the content_center web app using make_toolkit.ipl and make sure your JSP compiles
You should be able to test this now from the Content Center UI
It may be beneficial to move the URL into a sub directory underneath web/customer to separate it out from anything else that may be added.
Migrateduser
Hi,
Do you know how I can link to a page that is outside of Teamsite?
Thanks,
Bill Klish
Sure.
Read the user interface customization guide manual for detailed explanations on how to do this. At a high level, you will need to add a link in the ui_custom.xml file for the location outside of teamsite you wish to reference. Then you have to execute make_toolkit and you should be all set.
Hope this helps,
-Bill