cancel
Showing results for 
Search instead for 
Did you mean: 

How to include .css file into jsp file in portal application

Former Member
0 Kudos

Hi,

I have included a .css file in a .jsp file using following tag :

<link rel="<%=componentRequest.getWebResourcePath()%>/css/ts.css">.

I have kept .css file under /dist/css folder.

Preview of jsp file is fine but when I upload the jsp file and .css file to server, Look and feel of the screen is changing. When I paste the style code in jsp file, look and feel is fine.

Can some body suggest me that why the look and feel is changing when I put the style code in css file and include it in jsp.

Thanks in advance.

Manish

Accepted Solutions (0)

Answers (2)

Answers (2)

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Kudos

Hi Manish,

If you'ld like, send the PAR and I'll take a quick look.

daniel.wroblewski@sap.com.

Daniel

Former Member
0 Kudos

Hello

We're using <link rel="stylesheet" type="text/css" href="http://ourserver/eclib/css/ecstandard.css">

between <head> and </head>

It works.

Hope it helps.

Regards

Benoit