07-12-2017 5:14 AM - edited 02-03-2024 10:43 PM
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>
Please follow the below step to check.
I guess maybe the path of CSS is not correct cannot be loaded.
or you can try to using this way to load your CSS files <link href="mystyle.css" rel="stylesheet" type="text/css"/>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.