cancel
Showing results for 
Search instead for 
Did you mean: 

Portal Login Page in IE Standard Mode

kai_unewisse3
Active Contributor
0 Kudos

Hi,

i tried several possibilities to render the Portal login page in standard mode.
By default IE renders in Quirks mode.


I tried the following :

- Adding tags in the login page at the top

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

Result : Line shows up as first entry in the body.


- Setting the tag <!DOCTYPE html> by using SAP note 1697320 (Adding

doctype to the logon application pages)

Result: doctype is set in WebAS Login (e.g. /nwa) , but not in the portal login.



- Adding the header information by using the response object :

<% response.setHeader("x-ua-compatible", "IE=Edge"); %>

Result : Does not show up in HTML



Anyone has another idea ?


Thanks,

Kai






Accepted Solutions (1)

Accepted Solutions (1)

saar_dagan
Employee
Employee
0 Kudos

Hi,

You can check my blog for setting the doctype:

BR,

Saar

Answers (5)

Answers (5)

vdurgarao09
Contributor
0 Kudos

Hi Kai Unewisse,

I am also getting this issue please tell me your issue is resolved or not.

Resolved means tell me the steps.

Regards,

Durga Rao.

0 Kudos

This message was moderated.

Former Member
0 Kudos

Shipulin, the below is what I received:

Unauthorized

Access to this place or content is restricted. If you think this is a mistake, please contact your administrator or the person who directed you here.

0 Kudos

Hi !

Check my blog about setting doctype on logon page


Regards,

Mike

0 Kudos

Hi Kai,

If it is portal component,and you have portal request you can try this:

portalRequest.getServletResponse(false).addHeader("X-UA-Compatible", "IE=Edge");

Please note that in NW versions this is not the way to customize your logon page, you can read here:

Developing a Custom Logon Screen - Developing Authentication Enhancements on the AS Java - SAP Libr...

BTW, IE10 and above render in standard by default.

Regards,

Naama

Former Member
0 Kudos

Hi Naama,

The sap.com~tc~sec~ume~logon~ui.war file is not an APC, how do you get portalRequest and where are you referring this to be used.. in JSP??

portalRequest.getServletResponse(false).addHeader("X-UA-Compatible", "IE=Edge");

In case you are referring response object in JSP, I've never found that as useful in adding the above as <meta> tag during runtime. Did you ever implemented this and successful? Can you please share me the code snippet or a case study?

Thanks, MS

0 Kudos

Hi Naga,

You are right,

If you configure logon page correctly you will not have a portal request,

Please do the steps Edison gave.

Regards,

Naama

0 Kudos

Hi,

Just got these steps you can perform to apply a workaround that enables rendering of a

<!DOCTYPE html>

for logon screens in Portal and I decided to share it here as it might be helpful until SAP implements that by default:

This should enable a customer to write a markup that will successfully render in different IE versions in "Standards" Mode.

"" ** \\ Before doing it I suggest you to backup the current content so you will be able to rollback the settings in case of any issue you get during this process. // ** "" 

1) Create iView: copy Portal Applications -> com.sap.portal.runtime.logon -> certlogon and paste as PCD object "Portal Content".

2) Edit the permissions of the newly created iView add the Group Everyone with both "Admin read" and "End User" checked.

3) Edit the iView using the support "PCD Inspector" tool and add for it a String property with id "com.sap.portal.prt.html5.compliant" and value "true"

4) Apply SAP note "#1713259 - PRT support for HTML5 doctype" Setting the PRT html5.compliant property to "iViewDependent"

5) Follow SAP documentation http://help.sap.com/saphelp_nw73/helpdata/en/1a/3afd4e641b8f42ac07bb77fe30375b/frameset.htm  to create your own authscheme.xml file in the custom file replace the entries

"<frontendtarget>com.sap.portal.runtime.logon.certlogon</frontendtarget>" with

"<frontendtarget>pcd:portal_content/certlogon</frontendtarget>"

***If you created the iView under a different ID or location adjust accordingly.

6) Restart the whole cluster for the authscheme.xml configuration to take effect.

Inside the Portal the different logon JSP files are only part of the markup maintained by the Portal Runtime. The logon screen can appear for just one iView inside of a Page of other anonymous iViews.

As such if other iViews do not declare that they are HTML5 compliant the Logon iView will render again in Quirks mode.

Hope this helps,

Edison Büttenbender

kai_unewisse3
Active Contributor
0 Kudos

HI, thanks. I saw this steps also in a blog from SAP 1 or 2 Months ago..         

former_member193379
Active Contributor
0 Kudos

Hi Kai,

Please use the <meta> tag as below and please also confirm that you have added this <meta> tab just after <head> tag.
<!doctype html>
<html>
<head>
<meta http-equiv=”X-UA-Compatible” content=”IE=8">
All references to custom CSS and JavaScript files go after this <meta> tag.
Other attributes are:
•“IE=edge”
•“IE=10″
•“IE=EmulateIE10″
•“IE=9″
•“IE=EmulateIE9
•“IE=8″
•“IE=EmulateIE8″

Thanks,
Hamendra

kai_unewisse3
Active Contributor
0 Kudos

Hi Hamendra,

As i wrote in the question, adding tags directly is not successful in the portal login page.

They appear in the body and will be ignored by the browser.

former_member193379
Active Contributor
0 Kudos

Hi Kai,

I am in the impression that you are changing logonPage.jsp of logon WAR file. You have to do like this.

Thanks,

Hamendra

kai_unewisse3
Active Contributor
0 Kudos

Hi Hamendra,

When i changed the file logonPage.jsp, the tags appeared in the body.

Did you tried your solution in the logonPage.jsp and it showed up in the header ?

Kai

detlev_beutner
Active Contributor
0 Kudos

Hi Kai,

1.) Note 1697320 -- or better: the implementation -- should change. As suggested in and repeated now in my "main thread" about this issue, with response from SAP before, , I would open an OSS message, as the reason to restrict the possibilities of the login page especially for the portal do not hold any longer.

2.) "Adding the header information by using the response object: <% response.setHeader("x-ua-compatible", "IE=Edge"); %> Result : Does not show up in HTML" -- of course not. It should write it into the http header, which anyhow is a valid (even generally the best) way to influence the mode. Anyhow, please check with httpWatch or a similar tool if the header gets really set AND if it is the only x-ua-compatible Header... (and the correct form also would be "X-UA-Compatible", but I'm not sure if IE cares; anyhow, httpWatch always signals the name as lower case even if it is a mixed upper/lower case, don't let you irritate by that).

Best regards

Detlev

PS: Not about the logon page, but the mixture of portal and non-portal stuff within the portal and the different IEs, there's a good overview:

former_member193379
Active Contributor
0 Kudos

Hi Kai,

I have the knowledge of this but I never applied in EP.

Thanks,

Hamendra