Skip to Content
0
Former Member
Feb 27, 2009 at 05:17 AM

Apply a custom style sheet to the web pages.

70 Views

I have created custom page layout by changing the jsp and xml files. Now I want to use a custom style sheet.

I have uploaded my custom style sheet at "etc/wpceditor/css/runtime/myfile.CSS"

I don't know how to test if my page layout is using this style sheet (myfile.css). ???

How should I link my custom page layout to this style sheet (myfile.css) ?

I have also tried to include the myfile.css in my project (par) changed the jsp file

<%@ page import="com.sapportals.portal.prt.component.IPortalComponentResponse"%> 
<%@ page import="com.sapportals.portal.prt.resource.IResource"%>
<% IPortalComponentResponse componentResponse = 
		(IPortalComponentResponse)pageContext.getAttribute(javax.servlet.jsp.PageContext.RESPONSE);
	IResource myfile = componentRequest.getResource(IResource.CSS, "css/myfile.css"); 
	componentResponse.include(componentRequest, myfile); %>

Can you tell me how to test if am using the style sheet myfile.css ?

Thanks

Srinivas