To the SAP Portal Community,
The portal logon application (NWP 7.3 SP03) "/tcsecumelogonui" is modified to cater for an external facing portal.
The JSP page: logonpage.jsp does not output a DOCTYPE tag in the HTML produced.
As a result the external facing page is
1> not compliant with WCAG 2.0 AA standards
2> CSS does not render properly in IE (7 & 8), due to the absence of the DOCTYPE declaration.
One example is that the "style= margin:auto" is ignored by IE and the page is misalligned.
I could not find any notes / threads on how to include the doctype tage in the final HTML (which can appear above the opening <HTML> tag.
approaches:
1> JSP:ROOT tag is introduced in JSP 2.0 and not yet supported by NWP.
The following code when added causes a blank page to be rendered.
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns="http://www.w3.org/1999/xhtml" version="2.0">
<jsp:output omit-xml-declaration="false" doctype-root-element="html"
doctype-public="-//W3C//DTD XHTML 1.0
Transitional//EN" doctype-
system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
</jsp:root>
2> Response object
String doctype = (String) "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";
response.getOutputStream().println(doctype);
it overwrites the entire response.
3> Add the line in HTML or useing a jsp include directive
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd">
results in the line available within the body tag, and hence of not much use.
We need a way to include the doctype to be compliant with WCAG 2.0 AA for our external facing portal.
Looking forward to your response.
Regards,
amit chawathe
References:
1> http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/24955
2> http://help.sap.com/saphelp_nw73/helpdata/en/23/c0e240beb0702ae10000000a155106/content.htm