java - Css embed in jsp and how to deploy both css and html in jsp -
hi
now @ time being new in java want embed css in jsp using 2 jsp 1 html , other css same dreamweaver done neatbeans , second confusion how both files deploy example our jsp html liey in webapp/myapp/index.jsp
, our css file go? or remain in webapp/myapp/index.jsp,css.jsp
or type of extension give using css in jsp.thanx ans.
create new folder named css or wish under path webapp/myapp/css
, save css files inside.
to link css file jsp file , use following syntax ,
<link rel="stylesheet" href="/webapp/myapp/css/main.css">
hope helps !!
Comments
Post a Comment