on 05-10-2006 11:25 AM
Hi all,
I am customising the Portal logon page, and I need to include a new Hyperlink "contact" on the click of which a new JSP needs to be rendered.
Including the following code does not help me though it is mapping to the correct JSP -
<a href="<%=contactjsp%>" class="boxlinks1">Contact us</a>
where contactjsp = /irj/portalapps/com.sap.portal.runtime.newlogon/PORTAL-INF/myFile.jsp - at runtime
I have also noticed that in the umLogonpage.jsp, the links to "register now", "Support" etc have been configured using aliases like the one below -
<a class=urLnk href="<%=inPortal?proxy.getAlias("gotoHelpPage"):logonBean.getLogonURL(proxy,"gotoHelpPage=")%>">
How can I configure my hyperlink in a similar manner? Since providing the direct path does not open the JSP, gives me a runtime error -
<b>File [portalapps/myPar/PORTAL-INF/myFile.jsp] not found in application root of alias [irj] of J2EE application [sap.com/irj].</b>Please suggest.
- Ashwini.
Hi Ashwini,
Try to use UrlGenerator service for generating a url to a JSP component. Exp,
IUrlGeneratorService service = (IUrlGeneratorService) PortalRuntime.getRuntimeResources().getService(IUrlGeneratorService.KEY);
IPortalUrlGenerator generator = (IPortalUrlGenerator) service.getSpecializedUrlGenerator(IPortalUrlGenerator.KEY);
String result = generator.generatePortalComponentUrl(request, 'projectName.componentNameAsDefinedInPortalapp');
or else you can get the iView url, by previewing the iView you want to open in the portal.
cheers
Kiran
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 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.