facebook

Inclusion of CSS file is not working in JSP.

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #264746 Reply

    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.

    #264813 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

    CSS can be tricky, you have to learn how your browser handles it’s elements. Start with something simple, like setting the body of the page to have a background of “Red” and get that working, then go from there.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Inclusion of CSS file is not working in JSP.

You must be logged in to post in the forum log in