custom portal header css scripts not loading

Hi,

I have created the portal component to load the custom css/images/scripts. I have added below lines in the .jsp and not working. Please suggest the steps. Also we need to load multiple files. We are on 7.3 portal.

<%@ page import=”com.sapportals.portal.prt.resource.IResource” %>
<Html>
<Head>
<%
IResource rs = componentRequest.getResource(IResource.CSS, “css/ex1.css”);
response.addResource(rs);
%>
</Head>
<body>
<h1>This is header 3</h1>
<h2>This is header 2</h2>
<p>This is a paragraph</p>
</body>
</html>

Hi, I have created the portal component to load the custom css/images/scripts. I have added below lines in the .jsp and not working. Please suggest the steps. Also we need to load multiple files. We are on 7.3 portal. <%@ page import="com.sapportals.portal.prt.resource.IResource" %> <Html> <Head> <% IResource rs = componentRequest.getResource(IResource.CSS, "css/ex1.css"); response.addResource(rs); %> </Head> <body> <h1>This is header 3</h1> <h2>This is header 2</h2> <p>This is a paragraph</p> </body> </html>

custom portal header css scripts not loading

Very Helpfull

User Rating: Be the first one !
Doctor Asked on June 6, 2017 in SAP PORTAL.
Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.