Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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  ÊǸù·¾¶
  °ÉËù


Ïà¹ØÎÊ´ð£º

jspÌøת

ÎÒµãºóÍËʱÊÇ¿Õ°×Ò³Ãæ
ÐèˢвÅÄÜÏÔʾ
Õâ¸öÔõô´¦Àí°¡
Çë´ó¼Ò°ï°ïæ
°ÑÎÊÌâ˵µÄÏêϸһЩ£¬ÕâÑùÓÐÖúÓÚÎÊÌâµÄ»Ø¸´£¬¼°´ð°¸µÄ׼ȷÐÔ£¡

ÎÒ¾õµÃÊÇÄãµÄä¯ÀÀÆ÷Æ÷µÄÎÊÌâ°É£¬ÎÒÒÔÇ°Óöµ½¹ýÕâÑùµÄÎÊÌ⣬°ÑIEµÄËùÓÐÊôÐÔÖ ......

¹ØÓÚÔÚJSPÖÐÉÏ´«Í¼Æ¬µÄÏà¹ØÎÊÌâ - Web ¿ª·¢ / ÆäËû

//Óÿͻ§µÄsessionµÄid½¨Á¢Ò»¸öÁÙʱÎļþ£º
//String tempFileName=(String)session.getId();
String tempFileName = (String)session.getId();
//out.println(& ......

jsÔÚjspÖв»Äܵ÷ÓÃÎÊÌâ¡£

jsÖеķ½·¨£¬²»ÄÜÔÚjspÖе÷ÓÃÔõô½â¾ö£¿¼±£¡£¡!
²»Ã÷°×Òâ˼

ºÃºÃ¼ì²éÊDz»ÊÇ·¾¶µÄÎÊÌ⣬ºÜÓпÉÄÜ·¾¶²»¶Ôµ¼Öµ÷Óò»µ½

Ìùһϵ÷ÓõĴúÂë¿´¿´°¡~~
ÓÐûÓÐÕýÈ·ÒýÓÃjs£¿º¯ÊýÓÐûÓгõʼ»¯£¿....

jsp´úÂë±¾À´¾ ......

jspÒ³Ãæ¿ØÖƵÄÎÊÌâ

Óм¸ÖÖÓû§£¬ÆäȨÏÞ²»Í¬¡£Ö»ÓÐÌض¨È¨ÏÞµÄÓû§²ÅÄܽøÐÐÏàÓ¦²Ù×÷¡£ÎÒÏëÔÚjspÒ³ÃæÀï½øÐÐÕâ¸öÉèÖÃ
<input type="submit" value="ÐÞ¸Ä"/> ,ÎÒÏëÈÃÖ»ÓÐÌض¨È¨ÏÞµÄÓû§²ÅÄÜ°´Õâ¸ö°´Å¥£¬·ñÔò±¨ ......

jsÔÚjspÖв»Äܵ÷ÓÃÎÊÌâ¡£

ÎҵijÌÐòÈçÏ£º

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv=&q ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ