Hi,
I’m a newbie to MyEclipe and i’m facing problem while using a .css file in JSP.
Inclusion of it is not causing CSS effects in the JSP.
Css file is :
@CHARSET “ISO-8859-1”;
.form_table{
background : #6699FF none left;
font : bold Verdana Geneva Arial Helvetica sans-serif;
margin : auto;
}
and the JSP where i’m including this css file is:
<%@ page language=”java”%>
<link rel=”stylesheet” type=”text/css” href=”/webResources/classes/form.css”>
<html>
<head>
<title>STRUTS JSP for UserLoginForm form</title>
</head>
<body>
<html:form action=”/userLogin”>
<table class=”form_table”>
<tr>
<td class=”ContentTable” align=”center”>UserName : <html:text property=”userName”/>
</td>
<td class=”ContentTable” align=”center”>Password : <html:password property=”password”/>
</td>
<tr>
</table>
</html:form>
</body>
</html>
At RunTime the included form.css file comes as an .htm file.
Can anybody help me out.