cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Portal logon page is not displayed correctly in IE

Former Member
0 Kudos

How to add

<meta http-equiv="X-UA-Compatible" content="IE=EDGE" /> in header of logon page?

Former Member
0 Kudos

I have modified the look and feel for the certLogon page of SAP portal, but the page is not displaying properly in IE browser .If I view the page in compatibility mode then the page displays correctly. I tried adding below meta tag in the page but the meta tag gets added in the body section of the page instead of in header section.

<meta http-equiv="X-UA-Compatible" content="IE=EDGE" />

Is there any way to add the meta tag in the header section ? Or do we need to do some settings in the SAP portal for the compatibility issue.

Former Member
0 Kudos

I also tried below code in jsp file.

IPortalComponentRequest currentRequest = (IPortalComponentRequest)pageContext.getAttribute(javax.servlet.jsp.PageContext.REQUEST);
IPortalNode portalNode = currentRequest.getNode().getPortalNode();
IPortalResponse portalResponse = (IPortalResponse)portalNode.getValue(IPortalResponse.class.getName());
HtmlDocument htmlDocument = null;
if (portalResponse instanceof PortalHtmlResponse){
PortalHtmlResponse htmlResponse = (PortalHtmlResponse)portalResponse;
htmlDocument = htmlResponse.getHtmlDocument();
if(htmlDocument!=null) {
HtmlMeta meta = htmlDocument.getMeta();
if(meta!=null) {
meta.addAttribute("http-equiv","X-UA-Compatible");
htmlDocument.setMeta(meta);
}
}
}

But it is breaking here in runtime

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

Accepted Solutions (0)

Answers (1)

Answers (1)

architectSAP
Active Contributor
0 Kudos

Hello Mathew,

As per SAP NetWeaver 7.50, Microsoft Edge is only supported for a few limited scenarios:

SAP NetWeaver 7.5 Browser Support PAM

Best regards

Frank

Former Member
0 Kudos

Thanks for the reply .

But when I do F12 in IE and change to edge the logon page appears correctly.

Can you please help how to add <meta http-equiv="X-UA-Compatible" content="IE=9" /> in header of logon page?