ÈçºÎÏòÒ»¸öjsp´«µÝÁ½¸öÒÔÉϵIJÎÊý
ÓÐÁ½ÖÖ´«²Î·½Ê½
Ò»¡¢get·½Ê½£º
ÕâÖÖ·½Ê½½«²ÎÊýдÔÚurlÖУ¬¾ÙÀýÀ´Ëµ£¬Èç¹ûÄ¿±ê´«²ÎÒ³ÃæÊÇtarget.jsp,ÄÇôÔÚurlÀï¿ÉÒÔÕâôд£º
http://..../target.jsp? <Param1> = <value1> & <Param2> = <value2> &...
¿ÉÒÔ´«µÝ¶à¸ö²ÎÊý¡£
ÔÚtarget.jspÖУ¬ÓÃrequest.getParameter( " <ParamName> ");»ñÈ¡£»
¶þ¡¢post·½Ê½
ÕâÖÖ·½Ê½ÊÇÓà <form> ¿òÌå´«µÝ²ÎÊý¡£¾ÙÀýÀ´Ëµ£¬ÈçÐèÒª½«²ÎÊýÓÉsource.jsp´«µÝµ½target.jsp¡£ÄÇôÔÚsource.jspÖÐÐèÒªÕâôд£º
.......
<form name= "form1 " action= "target.jsp " method= "post ">
<input name= " <Param1> " value= " <value1> " type= "text ">
<input name= " <Param2> " value= " <value2> " type= "hidden ">
<!--ÓÃinput±êÇ©µÄhiddenÀàÐÍ£¬ÄÇôÕâ¸öinput±êÇ©ÔÚÒ³ÃæÏÔʾʱ²»»á±»ÏÔʾ£¬µ«¸Ã²ÎÊý»Ø´«µÝµ½formµÄactionÄ¿±êÒ³ÃæÈ¥£¬Õâ¸ö·½·¨¿ÉÄܶÔÄã´«²ÎÓÐÓÃ-->
.....
</form>
ÔÚtarget.jsp¶ËͬÑùÓÃrequest.getParameter( " <ParamName> ");»ñÈ¡£»
Ïà¹ØÎĵµ£º
CGI¾ÍÊÇweb·þÎñÆ÷¸¨Öú³ÌÐò£¬ºÍservletÊÇÒ»¸ö×÷Óá£
----jspÓÐʲô-----
------------------------------------------------------
jsp¿ÉÒÔ°üÀ¨Ê²Ã´£º
1¡¢jsp½Å±¾£¨³ÌÐòƬ¶Î£©£º
<% ... %>
2¡¢jsp±í´ïʽ£º
<%= ... %>
3¡¢jsp3ÖÖÖ¸Á
<%@ page attribute="xxx" %>
<%@ taglib attribut ......
ÔªÎÊÌâÀ´×ÔJSPÓëServletµÄ±È½Ï¡£
ÎÒÃÇÖªµÀServletÄܹ»Ê¹µÃJAVA´úÂë²»ÓÃÏñAppletÄÇÑùÔÚ¿Í»§ä¯ÀÀÆ÷ÖÐÔËÐУ¬Ëü»áÔÚÄã¿ØÖƵÄÒ»¸öÓ¦Ó÷þÎñÆ÷ÉÏÔËÐС£ÔÚûÓÐʲô±³¾°ÖªÊ¶µÄÇ°ÌáÏÂÎÒĬÈÏÕâÊÇÒ»ÖÖ¹æÔò£¬¼´Servlet¾ÍÊÇÕâÑù·¢Õ¹ÆðÀ´µÄ¡£ÔÚʵ¼ÊÓ¦ÓÃÖе±ÎÒÃÇÇëÇóÒ»¸öJSPÒ³ÃæµÄʱºò£¬JSPÊ×Ïȱ»×ª ......
×÷Õß: Dudu, ¡¡³ö´¦:ITר¼ÒÍøÂÛ̳,¡¡ÔðÈαà¼: ³Â×Óç÷,¡¡
2009-09-18 13:00
¡¡¡¡CLOB¿ÉÓÃÓÚ´æ·Å´óÎı¾Êý¾Ý,×î¶à¿É´æ´¢4GBÊý¾Ý,ÔÚÓ¦Óÿª·¢ÖбȽϳ£¼û.javaÌṩµÄsql.ClobÀàÓëÖ®¶ÔÓ¦.ËüÌṩÁ½¸ö·½·¨À´¶ÁÈ¡ClobµÄÊý¾Ý:
¡¡¡¡ÓÃORACLE9i¡¢oracle8¡¢Óкܳ¤µÄÒ»¶Îʱ¼ä£¬ÎÒ°ÑÓÃÓÚJSPÖÐÐèҪעÒâµÄÎÊÌâÔÚÕâÀïд³öÀ´£¬½ö¹©´ó¼Ò²Î¿¼Á ......
ÓÃORACLE9i¡¢oracle8¡¢Óкܳ¤µÄÒ»¶Îʱ¼ä£¬ÎÒ°ÑÓÃÓÚJSPÖÐÐèҪעÒâµÄÎÊÌâÔÚÕâÀïд³öÀ´£¬½ö¹©´ó¼Ò²Î¿¼ÁË¡£
¡¡¡¡Ò»¡¢ÈçºÎÈ¥´¦ÀíClob¡¢BLOBµÄ´óÀàÐÍ
¡¡¡¡CLOB¿ÉÓÃÓÚ´æ·Å´óÎı¾Êý¾Ý,×î¶à¿É´æ´¢4GBÊý¾Ý,ÔÚÓ¦Óÿª·¢ÖбȽϳ£¼û.javaÌṩµÄsql.ClobÀàÓëÖ®¶ÔÓ¦.ËüÌṩÁ½¸ö·½·¨À´¶ÁÈ¡ClobµÄÊý¾Ý:
¡¡¡¡getCharacterStream() ·½·¨·µ»Ø° ......
1. RequestDispatcher.forward()
ÊÇÔÚ·þÎñÆ÷¶ËÆð×÷ÓÃ,µ±Ê¹ÓÃforward()ʱ,Servlet engine´«µÝHTTPÇëÇó´Óµ±Ç°µÄServlet or JSPµ½ÁíÍâÒ»¸öServlet,JSP »òÆÕͨHTMLÎļþ,Ò²¼´ÄãµÄformÌá½»ÖÁa.jsp,ÔÚa.jspÓõ½ÁËforward()Öض¨ÏòÖÁb.jsp,´ËʱformÌá½»µÄËùÓÐÐÅÏ¢ÔÚ b.jsp¶¼¿ÉÒÔ»ñµÃ,²ÎÊý×Ô¶¯´«µÝ. µ«forward()ÎÞ·¨Öض¨ÏòÖÁÓÐframe ......