Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

include css file in jsp  RSS feed

 
Giriraj Gupta
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello sir,

i want to know that css file can be include in jsp file.

regards
giriraj gupta
 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Giriraj Gupta:
Hello sir,

i want to know that css file can be include in jsp file.

regards
giriraj gupta


You mean linked. Yes, you can link a CSS file with HTML/JSP file.
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's an example:

 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They can also be included with the include directive.
There is an entry in our JSP FAQ that explains include directives and actions.
You can find it here.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65824
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you've progressed out of the stone age and are using a JSP 2.0 container, you can avoid the use of scriplets to obtain the context path by using the EL:



Also be sure to use well-formed HTML syntax and quote all your attributes.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!