Hi all Can any one help me how to use Servlets with CSS? where should I place the css file? I try it: out.println("<link rel=\'StyleSheet\' type='text/css' ref=\'style.css\' />"); By putting same folder the class file and CSS file (in ..-webapps/myappl/WEBINF/classes), but it does help. Please let me know if you can. Thanks
By enabling the localhost_access.log Does not help. The servlet generates the following HTML code: <html> <head> <title>Login page</title> <link rel='StyleSheet' type='text/css' ref='style.css' /> </head> <body> <table align='center'> <form method='get' action='Manager'> <tr><td>UserName:</td><td><input type='text' name='username' /></td></tr> <tr><td>Password:</td><td><input type='password' name='password' /></td></tr> <tr><td colspan='2' align='right'><input name='submit' type='submit' value='Login' /></td></tr> </form> </table> </body> </html> But could use the format of the CSS file. Thanks
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.