File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "Style sheet problems" Watch "Style sheet problems" New topic

Style sheet problems

Cameron Park
Ranch Hand

Joined: Apr 06, 2001
Posts: 371
Hi, I have a JSP related question. There is a tag
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?
vaibhav punekar
Ranch Hand

Joined: Jan 20, 2001
Posts: 134
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.

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 Headley<br /><a href="" target="_blank" rel="nofollow"></a>
I agree. Here's the link:
subject: Style sheet problems
It's not a secret anymore!