cssÑùʽÎÞ·¨ÏÔʾÔÚjspÒ³Ãæ
Ö±½Óͨ¹ýÁ´½ÓÌøתµ½jspÒ³ÃæµÄʱºòcssÑùʽÄÜÕý³£ÏÔʾ£¬
µ«ÊÇͨ¹ýactionºǫ́´¦ÀíÍêÒµÎñÂß¼ºóÌøתÓÃmappingÌøתµ½jspµÄʱºòÕû¸öÑùʽ¶¼Ã»ÓÐÏÔʾÁË
Ôõô½â¾ö
ллÁË
ÔõôûÈ˻شð°¡
¾ÍÊÇͨ¹ýspring·ÃÎÊjsp cssÏÔʾ²»³öÀ´
ÔÚÒ³ÃæÌøתµÄʱºò·¾¶·¢ÉúÁ˱仯£¬¿ÉÒÔ³¢ÊÔÓþø¶Ô·¾¶¡£
ÄãjspÒ³Ãæµ¼ÈëÑùʽµÄ·¾¶Ð´¾ø¶Ô·¾¶
Èç¹ûÄãдµÄÏà¶Ô·¾¶ ÒòΪÌøתµÄ·½Ê½²»Í¬ ·¾¶¾Í²»Í¬ÁË
Óþø¶Ô·¾¶
/ÏîÄ¿/CSS·¾¶
ÎÒÕâÎÊÌâÄãµÃ×¢Òâһϣ¬ÎÒÔÚJSPÖÐÒ²Óöµ½¹ýÕâ¸öÎÊÌ⣡ȷ¶¨CSSÒýÈë·¾¶ÕýÈ·µÄʱºò
Java code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
Ò²¼ì²éÏÂJSPÍ·²¿µÄDOCTYPEÉùÃ÷¡£ÈçÉÏ¡£¡£
ÔÚ×ñѱê×¼µÄÈκÎWebÎĵµÖУ¬DOCTYPE¶¼ÊÇÒ»Ïî±ØÐèµÄÔªËØ¡£Ëü»áÓ°Ïì´úÂëÑéÖ¤£¬²¢¾ö¶¨ÁËä¯ÀÀÆ÷×îÖÕÈçºÎÏÔʾÄãµÄwebÎĵµ¡£¡£¡£
н¨JSPµÄÉùÃ÷£¬Í¬Ñù²»ÄÜÏÔʾCSSÑùʽµÄʱºò£¬¾Í»»¸öÄÜÕý³£ÏÔʾµÄÉùÃ÷²¿·Ö£¬Ó¦¸Ã¾ÍûÎÊÌ⣬¥Ö÷ºÃÔË!
¼ì²éÒ»ÏÂÄãµÄ·¾¶ÎÊÌâ°É£¡
½¨ÒéÓÃstrutsµÄ·½·¨Ð´Â·¾¶
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
×¢Òâ ÕâÀïµÄbasePath ÊǸù·¾¶
°ÉËù
Ïà¹ØÎÊ´ð£º
ÎÒµãºóÍËʱÊÇ¿Õ°×Ò³Ãæ
ÐèˢвÅÄÜÏÔʾ
Õâ¸öÔõô´¦Àí°¡
Çë´ó¼Ò°ï°ïæ
°ÑÎÊÌâ˵µÄÏêϸһЩ£¬ÕâÑùÓÐÖúÓÚÎÊÌâµÄ»Ø¸´£¬¼°´ð°¸µÄ׼ȷÐÔ£¡
ÎÒ¾õµÃÊÇÄãµÄä¯ÀÀÆ÷Æ÷µÄÎÊÌâ°É£¬ÎÒÒÔÇ°Óöµ½¹ýÕâÑùµÄÎÊÌ⣬°ÑIEµÄËùÓÐÊôÐÔÖ ......
//Óÿͻ§µÄsessionµÄid½¨Á¢Ò»¸öÁÙʱÎļþ£º
//String tempFileName=(String)session.getId();
String tempFileName = (String)session.getId();
//out.println(& ......
jsÖеķ½·¨£¬²»ÄÜÔÚjspÖе÷ÓÃÔõô½â¾ö£¿¼±£¡£¡!
²»Ã÷°×Òâ˼
ºÃºÃ¼ì²éÊDz»ÊÇ·¾¶µÄÎÊÌ⣬ºÜÓпÉÄÜ·¾¶²»¶Ôµ¼Öµ÷Óò»µ½
Ìùһϵ÷ÓõĴúÂë¿´¿´°¡~~
ÓÐûÓÐÕýÈ·ÒýÓÃjs£¿º¯ÊýÓÐûÓгõʼ»¯£¿....
jsp´úÂë±¾À´¾ ......
Óм¸ÖÖÓû§£¬ÆäȨÏÞ²»Í¬¡£Ö»ÓÐÌض¨È¨ÏÞµÄÓû§²ÅÄܽøÐÐÏàÓ¦²Ù×÷¡£ÎÒÏëÔÚjspÒ³ÃæÀï½øÐÐÕâ¸öÉèÖÃ
<input type="submit" value="ÐÞ¸Ä"/> ,ÎÒÏëÈÃÖ»ÓÐÌض¨È¨ÏÞµÄÓû§²ÅÄÜ°´Õâ¸ö°´Å¥£¬·ñÔò±¨ ......
ÎҵijÌÐòÈçÏ£º
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv=&q ......