[jboss-user] [Security & JAAS/JBoss] - Re: Form Based Authentication with Stylesheet

jahratero do-not-reply at jboss.com
Mon Jan 21 09:01:40 EST 2008


Hello ragavgomatam,

First of all thanks for your reply.
I've tried putting "style class="header" instead of "class"header".
Unfortunately, no success.
When I point my browser to http://localhost:8080/numberG/pages/style.css it does present the stylesheet!

It looks indeed like my CSS is getting hold up somewhere, but I don't know the where or what is the issue.

This is my page:

  | <html xmlns="http://www.w3.org/1999/xhtml">
  | <head>
  | 	<title>ServiceCom MVS</title>
  |     <link rel="StyleSheet" href="/pages/styles.css" type="text/css"/>
  | 
  | </head>
  | 	<body style="background-image url(/bg-header.jpg)">
  | 
  | 			<p style class="header">
  | 			<h1>Please log in X</h1>
  | 			</p>
  | 
  | 			<form method="POST" action="j_security_check">
  | 				User Name: <input type="text" name="j_username" /><br />
  | 				Password: <input type="password" name="j_password" /><br />
  | 				<input type="submit" value="Login" />
  | 			</form>
  | 	<TABLE>
  | 		<TR><TH CLASS="TITLE">Loggie</TH></TR>
  | 	</TABLE>
  | 
  | 			<p style="color:blue">
  | 				This is the last line!
  | 			</p>
  | 			<p style class="header">
  | 				This is the last line!
  | 			</p>
  | 	</body>
  | </html>
  | 


And this my CSS:

  | BODY { background-color: #FDF5E6 }
  | 
  | TH.TITLE   { background-color: #FFAD00;
  |              font-size: 50px;
  |              font-family: Arial Black, Arial, Helvetica, sans-serif;
  | }
  | 
  | .header
  | {
  | 	color:blue;
  | }
  | 
  | .messages
  | {
  | 	color:red;
  | 	font-family:tahoma;
  | 	font-size:10px;
  | }
  | 
  | .inputs
  | {
  | 	font-size:60%;
  | 	height:18;
  | }
  | 


Both file are located in a 'pages' directory where also the WEB-INF directory is located.
You think that would be a problem?

-Yuri

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121842#4121842

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121842



More information about the jboss-user mailing list