cancel
Showing results for 
Search instead for 
Did you mean: 

Adding Doctype definition in top of page

Former Member
0 Kudos

Hi,

I want to add Doctype definition in top of jsp page of an external facing portal application. right now on doing view source it is coming like this

<html><head><LINK REL=stylesheet HREF="/irj/portalapps/com.sap.portal.design.portaldesigndata/themes/portal/Computer_Associates/casctheme/glbl/glbl_nn7.css?7.0.16.0.2">

<LINK REL=stylesheet HREF="/irj/portalapps/com.sap.portal.design.portaldesigndata/themes/portal/Computer_Associates/casctheme/prtl_std/prtl_std_nn7.css?7.0.16.0.2">

---

but want to update the page like this instead of just plain html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

More on application..it is external facing portal application and has custom light framwork which hascutom layout enabled.

Thanks,

Umesh

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I'm also looking how to add the Doctype definition to the top of the page, and I have found how to make the generated content xhtml compliant, but with out the Doctype definition.

There is property of the Portal Runtime Container Extension service to enable xhtml compliant.

In SAP NetWeaver Administrator console http://<host>:50000/nwa go to

Configuration Management -> Infrastructure -> Java System Properties ->

Services->Portal Runtime Container Extension->go to Properties under Extended Details and search xhtml.compliant.

With this option enable the first line of every page is

<html xmlns="http://www.w3.org/1999/xhtml"><head>

But still you don't have the Doctype definition.

Kind Regards,

Alberto