wood burning stoves*
The moose likes Servlets and the fly likes Style sheet problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Style sheet problems" Watch "Style sheet problems" New topic
Author

Style sheet problems

Cameron Park
Ranch Hand

Joined: Apr 06, 2001
Posts: 371
Hi, I have a JSP related question. There is a tag
<LINK REL=STYLESHEET
HREF="JSP-Styles.css"
TYPE="text/css">
inside a sample JSP file. I know it's not part of JSP, but I need help on what it is. Can anyone help me?
Thanks.
vaibhav punekar
Ranch Hand

Joined: Jan 20, 2001
Posts: 134
Hi,
Stylesheet is a separate class in which you define the accessories for your Html display such as header ,footer,font type,size,bgColor,etc.This class is placed in the same package where the Jsp is.You then use a tag as specified by you,that will import all these parameters from the ".css" class.So the code for this is separated from the actual business logic and you can concentrate on your logic instead of these trivial things.Code is also easy to understand in such case.
Is it enough?I ve not written any .css file but ve used it .
I think it is enough.


VAIBHAV <BR>SCJP
ryan headley
Ranch Hand

Joined: Jun 28, 2000
Posts: 156
I don't really prefer to have it lumped together with the term "class" because that makes it sound like programming or even Java terminology itself.
I look at it like a reference file that you place in your HTML so the web browser can then read that file and interpret a normal HTML tag, (or custom one you've "created") to see what attributes to add to it.
Such as you could specify the H1 tag of html to always be of a specific font, and color, etc and put that in your css file. That way if you ever want to change it you only have to modify one file, not a ton of HTML files.
Hope that helps.
Ryan


Ryan Headley<br /><a href="http://www.sudovi.com" target="_blank" rel="nofollow">http://www.sudovi.com</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Style sheet problems
 
Similar Threads
How do I call method of jsp from servlets?
how to complie jsp
Who knows good tutorials of Servlet and JSP
how to dispaly the selected value of a dropdown list
what is the use of flush in jsp:include?