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

JSPÖÐÎÄÂÒÂë´¦Àí°ì·¨ תÔصģ¬ºÃ³¤°¡~~~

jspÖÐÎÄÏÔʾÂÒÂë½â¾ö·½°¸2006-12-27 22:56
Ò»¡¢JSPÒ³ÃæÏÔʾÂÒÂë
¶þ¡¢±íµ¥Ìá½»ÖÐÎÄʱ³öÏÖÂÒÂë
Èý¡¢Êý¾Ý¿âÁ¬½Ó
´ó¼ÒÔÚJSPµÄ¿ª·¢¹ý³ÌÖУ¬¾­³£³öÏÖÖÐÎÄÂÒÂëµÄÎÊÌ⣬¿ÉÄÜÒ»ÖÁÀ§ÈÅ×ÅÄú£¬ÎÒÏÖÔÚ°ÑÎÒÔÚJSP¿ª·¢ÖÐÓöµ½
µÄÖÐÎÄÂÒÂëµÄÎÊÌâ¼°½â¾ö°ì·¨Ð´³öÀ´¹©´ó¼Ò²Î¿¼¡£
Ò»¡¢JSPÒ³ÃæÏÔʾÂÒÂë
ÏÂÃæµÄÏÔʾҳÃæ(display.jsp)¾Í³öÏÖÂÒÂ룺
<html>
<head>
<title>JSPµÄÖÐÎÄ´¦Àí</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<%
out.print("JSPµÄÖÐÎÄ´¦Àí");
%>
</body>
</html>
¶Ô²»Í¬µÄWEB·þÎñÆ÷ºÍ²»Í¬µÄJDK°æ±¾£¬´¦Àí½á¹û¾Í²»Ò»Ñù¡£Ô­Òò£º·þÎñÆ÷ʹÓõıàÂ뷽ʽ²»Í¬ºÍä¯ÀÀÆ÷
¶Ô²»Í¬µÄ×Ö·ûÏÔʾ½á¹û²»Í¬¶øµ¼Öµġ£½â¾ö°ì·¨£ºÔÚJSPÒ³ÃæÖÐÖ¸¶¨±àÂ뷽ʽ(gb2312),¼´ÔÚÒ³ÃæµÄµÚÒ»
ÐмÓÉÏ£º<%@ page contentType="text/html; charset=gb2312"%>£¬¾Í¿ÉÒÔÏû³ýÂÒÂëÁË¡£ÍêÕûÒ³ÃæÈçÏÂ
£º
<%@ page contentType="text/html; charset=gb2312"%>
<html>
<head>
<title>JSPµÄÖÐÎÄ´¦Àí</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<%
out.print("JSPµÄÖÐÎÄ´¦Àí");
%>
</body>
</html>
¶þ¡¢±íµ¥Ìá½»ÖÐÎÄʱ³öÏÖÂÒÂë
ÏÂÃæÊÇÒ»¸öÌá½»Ò³Ãæ(submit.jsp)£¬´úÂëÈçÏ£º
<html>
<head>
<title>JSPµÄÖÐÎÄ´¦Àí</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<form name="form1" method="post" action="process.jsp">
<div align="center">
<input type="text" name="name">
<input type="submit" name="Submit" value="Submit">
</div>
</form>
</body>
</html>
ÏÂÃæÊÇ´¦ÀíÒ³Ãæ(process.jsp)´úÂ룺
<%@ page contentType="text/html; charset=gb2312"%>
<html>
<head>
<title>JSPµÄÖÐÎÄ´¦Àí</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<%=request.getParameter("name")%>
</body>
</html>
Èç¹ûsubmit.jspÌá½»Ó¢ÎÄ


Ïà¹ØÎĵµ£º

JavaBeanÓëJSP¿ª·¢£¬EL±í´ïʽºÍ×Ô¶¨Òå±êÇ©ÈëÃÅ

JavaBeanµÄ×÷ÓÃÊÇ·â×°Êý¾ÝµÄ
Ìص㣺Õâ¸öjavaÀà±ØÐë¾ßÓÐÒ»¸öÎ޲εĹ¹Ô캯Êý£¬ÊôÐÔ±ØÐë˽Óл¯£¬ÊôÐÔ±ØÐëͨ¹ýpublic·½·¨¸øÆäËû³ÌÐòµ÷ÓÃ
ÆäËü³ÌÐò¿ÉÒÔͨ¹ý·´Éä¼¼ÊõʵÀý»¯JavaBean¶ÔÏ󣬲¢ÇÒͨ¹ý·´ÉäÄÇЩ×ñÊØÃüÃû¹æ·¶µÄ·½·¨£¬´Ó¶ø»ñÖªJavaBeanµÄÊôÐÔ£¬½ø¶øµ÷ÓÃÆäÊôÐÔ±£´æÊý¾Ý¡£
³ÉÔ±ÓëÊôÐÔµÄÇø±ð£ºÀà³ÉԱûÓÐget,set·½·¨£¬Àൠ......

JSP + SQL server 2000¿ª·¢»·¾³µÄ´î½¨

     ´Ó×òÌ쿪ʼ¾ÍÒ»Ö±ÔÚÍøÉϲéÕÒÊý¾Ý¿âΪSQL server 2000 µÄJSP¿ª·¢»·¾³µÄ´î½¨£¬µ½ÏÖÔÚΪֹÖÕÓÚÄܹ»Õý³£Áª½Ó²¢·ÃÎÊ¡£ÒÔÏÂÊǴµÄ²½Ö裺
1¡¢´ÓÍøÉÏÏÂÔØÒ»¸öSQL server 2000 ¸öÈË°æµÄ°²×°°ü£¬°´ÕÕÌáʾ²Ù×÷£¬µ±ÔÚÉí·ÖÑé֤ʱ£¬Ñ¡Ôñ»ìºÏģʽ£¬Óû§saµÄÃÜÂë¿ÉÒÔΪ¿Õ£¬Ò²¿ÉÒÔ²»Îª¿Õ¡£
2¡¢´ÓÍøÉÏÏÂÔØÒ»¸öSQ ......

¹ØÓÚWEB¿ª·¢ jspµÄ°²È«ÐÔ

     ËäÈ»×öÁË´ó°ëÄêµÄweb¿ª·¢ÁË£¬µ«Ò»Ö±¸¡ÓÚ±íÃ棬¶«Î÷»á×ö£¬µ«ºÜ¶àÔ­Àí²»Í¨£¬ÒªÏë³ÉΪ¼¼ÊõÅ£È˹â»á×öÊÇÔ¶Ô¶²»Ðеģ¬ÒòΪ¼´Ê¹»á×öµ«²»»á½²ÇÒ²»ÄܾÙÒ»·´Èý£¬°¥£¬Ïëµ±Äê¸ßÖÐÊýѧ֮ËùÒÔÕâôºÃ¾ÍÊÇÒòΪ¸ßÖÐÊýѧԭÀíÎÒ¶¼Ò»Çå¶þ³þ£¬¾ÙÒ»·´Èý£¬ÐËÊÖÄíÀ´£¬·´¶øµ½ÁËÏÖÔÚÓе㼱¹¦½üÀû£¬¼±ÓÚÇó³É£¬ÎÒÕâ²»Êǵ¹ÍËÁË ......

(¶þ)Tomcat+JSPÅäÖà TO ÍõÀÏʦ

Ò»¡¢°²×°jdk²¢ÅäÖÃjdk
     1¡¢Ë«»÷°²×°jdk-6u19-windows-i586(¼Ù¶¨ÄãµÄjdkʹÓÃĬÈÏ°²×°£¬°²×°ÔÚC:\Program Files\Java\jdk1.6.0_19)£»
     2¡¢ÅäÖû·¾³±äÁ¿£¬ÔÚÎҵĵçÄÔ->ÊôÐÔ->¸ß¼¶->»·¾³±äÁ¿->ϵͳ±äÁ¿ÖÐÌí¼ÓÒÔÏ»·¾³±äÁ¿
    (1)ϵͳ±äÁ¿ ......

FckeditorºÍJSP(Java)ÏîÄ¿µÄÕûºÏʵÀý

(תÔرêÇ©£ºfckeditorit ·ÖÀࣺJava)
1.½«FCKeditorĿ¼ÏµÄeditor¿½±´µ½ÏîÄ¿µÄWebContentĿ¼ÏÂ
2.²¢°ÑECKeditor-2.3.jar ºÍ commons-fileupload.jar¿½±´µ½ÏîÄ¿\WebContent\WEB-INF\libĿ¼ÏÂ
3.°Ñ FCKeditor.tld¿½±´µ½ÏîÄ¿\WebContent\WEB-INFÏÂ
4.ÔÚweb.xmlÀïÌí¼ÓÈçÏ´úÂë
´úÂë
<servlet>    ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ