cancel
Showing results for 
Search instead for 
Did you mean: 

AutoLogOff Feature in NWDS7.1

Former Member
0 Kudos

Hi All,

We are tring to implment autologoff  feature in CE 7. Portal by using the following document::

http://scn.sap.com/docs/DOC-.

We are facing problem with ::

" componentRequest.getWebResourcePath() " which is present in the TimeOut.jsp in the above link.

We are getting an error message as "componentRequest" is Depricated.

Could you please suggest any alternate solution for this in CE7.1.

Thanks in advance:)

Regards,

Satya

 

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Use either of below:

1#

<%@page import="com.sapportals.portal.prt.component.IPortalComponentRequest"%>

IPortalComponentRequest currentRequest = (IPortalComponentRequest) pageContext.getAttribute(javax.servlet.jsp.PageContext.REQUEST );

String mimeUrl = currentRequest.getWebResourcePath();

or

2#

String mimeUrl = request.getContextPath();

Hope it will help!

MS

Former Member
0 Kudos

Hi naga,

I used both the ways but not able to resolve the issue.

Popup is not coming.

Thanks,

Satya

Former Member
0 Kudos

Did your query to get mimeUrl resolved with the above two options? It will bring you the context path needed to load the JS files. Check (print it on JSP to verify) this and reply.

And if its loading the JS files, then check where/what is missing in your code to get the Popup!

Thanks,

MS

Former Member
0 Kudos

Hi Naga,

Thanks for your suggestions.Working Fine.:)

Regards,

Satya