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

jspµÄ¸Å¿ö



 
JSP³£ÓÃÎÊ´ð
ÊÕ²Ø



< type="text/javascript">
document.body.oncopy = function() {
if (window.clipboardData) {
setTimeout(function() {
var text = clipboardData.getData("text");
if (text && text.length > 300) {
text = text + "\r\n\n±¾ÎÄÀ´×ÔCSDN²©¿Í£¬×ªÔØÇë±êÃ÷³ö´¦£º" + location.href;
clipboardData.setData("text", text);
}
}, 100);
}
}

JSP³£ÓÃÎÊ´ð
1¡¢ÈçºÎ»ìºÏʹÓÃJspºÍSSI #include?
ÔÚJSPÖпÉÒÔʹÓÃÈçÏ·½Ê½°üº¬´¿HTML£º
<!--#include
file="data.inc"-->
µ«ÊÇÈç¹ûdata.incÖаüº¬JSP CODE £¬ÎÒÃÇ¿ÉÒÔʹÓãº
<%@include
file="data.inc"%>
2¡¢ÈçºÎÖ´ÐÐÒ»¸öḬ̈߳²È«µÄJSP?
Ö»ÐèÔö¼ÓÈçÏÂÖ¸Áî
<%@ page
isThreadSafe="false" %>
3¡¢JSPÈçºÎ´¦ÀíHTML FORMÖеÄÊý¾Ý?
ͨ¹ýÄÚÖõÄrequest¶ÔÏó¼´¿É£¬ÈçÏ£º
<%
String
item = request.getParameter("item");
int howMany = new
Integer(request.getParameter("units")).intValue();
%>
4¡¢ÔÚJSPÈçºÎ°üº¬Ò»¸ö¾²Ì¬Îļþ?
¾²Ì¬°üº¬ÈçÏ£º<%@ include file="copyright.html"
%>
¶¯Ì¬°üº¬ÈçÏ£º<jsp:include page="copyright.html"
flush="true"/>
5¡¢ÔÚJSPÖÐÈçºÎʹÓÃ×¢ÊÍ?
Ö÷ÒªÓÐËÄÖз½·¨£º
1¡£<%-- Óë --%>
2¡£//
3¡£
/**Óë**/
4¡£<!--Óë-->
6¡¢ÔÚJSPÖÐÈçºÎÖ´ÐÐä¯ÀÀÖض¨Ïò?
ʹÓÃÈçÏ·½Ê½¼´¿É£ºresponse.sendRedirect("http://ybwen.home.chinaren.com/index.html
");

Ò²ÄÜÎïÀíµØ¸Ä±äHTTP HEADERÊôÐÔ£¬ÈçÏ£º
<%
response.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY);

String


Ïà¹ØÎĵµ£º

JSP¿ª·¢Ä£Ê½

  ¿ª·¢Ó¦ÓóÌÐò¹ý³ÌÖеÄģʽ¸ÅÄGOFÊÇÃæÏò¶ÔÏóÈí¼þģʽµÄȨÍþ£¬Ëü½«ÃæÏò¶ÔÏóµÄÉè¼Æģʽ·ÖΪÈýÖÖ»ù±¾ÀàÐÍ£º´´½¨Ä£Ê½£¬½á¹¹Ä£Ê½ºÍÐÐΪģʽ¡£
  ²ÉÓÃJSP¿ª·¢ÍøÕ¾µÄÈýÖÖģʽ£º
1.Ö±½ÓʹÓÃJSP
  ¿ª·¢Ð¡ÐÍÍøÕ¾£¬ÔÚJSPÒ³ÃæÖлìºÏHTMLºÍJava´úÂ룬ʹӦÓóÌÐòÄÑÒÔά»¤ºÍÀ©Õ¹;
2.ʹÓÃJSP+JavaBean
  ÔÚҳà ......

jsp¶ÁÈ¡ÅäÖÃÎļþÂÒÂë½â¾ö

Properties properties = new Properties();
   
    File file = new File(request.getRealPath("/") +"\\WEB-INF\\classes\\configs.properties");
    FileInputStream fiStream = new FileInputStream(file);
    InputStreamRe ......

html¡¢asp¡¢php¡¢jsp ½ûÖ¹»º´æµÄ·½·¨

HTML:
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
<META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT">
<META HTTP-EQUIV="expires" CONTENT="0">
PHP£º
header("Expires: Mon, 26 Jul 1997 ......

jsp:useBean±êÇ©

jsp:useBean±êÇ©ÓÃÓÚÖ¸¶¨ÔÚµ±Ç°JspÒ³ÃæÖÐÒªÓõ½µÄJavaBean
¸ñʽ£º<jsp:Bean id=? scope=? class=? />
id£º×Ô¶¨ÒåÒ»¸öÔÚµ±Ç°Ò³ÃæÖÐÒªÒýÓõÄJavaBean(¼´JavaÀà)µÄÒ»¸ö¶ÔÏóÃû(¸Ã¶ÔÏóÔÚºóÃæµÄ´úÂëÖоͿÉÒÔµ÷ÓÃÆäËùÊôµÄJavaBeanÖеÄÊôÐԺͷ½·¨)
scope£ºÓÃÓÚÖ¸¶¨¸ÃJavaBeanµÄ×÷Ó÷¶Î§£¬È¡ÖµÈçÏÂ
   &nbs ......

jspÖаüº¬.html Ò³Ã棬³öÏÖÂÒÂë

JSPÊÇÈÝÒ׳öÏÖÂÒÂëÎÊÌ⣬²»¹ýÄãֻҪעÒâÒÔϼ¸µã¾ÍÒ»¶¨Äܸ㶨 ¿É²Î¿¼http://www.historycreator.com/bbs/2009-10/19/033181872.html
1¡¢±£Ö¤ÄãµÄÎı¾±àÂëÓëÄãËùÆÚÍûµÄ±àÂëÏà·û£¨ÓÃд×Ö°å´ò¿ªÄãµÄÒ³ÃæÈ»ºóÎļþÁí´æΪ£¬ÔÚ±àÂëλÖÃÑ¡ÔñÄãÆÚÍûµÄÎı¾±àÂ룬GB2312¶ÔÓ¦ANSI£¬UTF8µ±È»¶ÔÓÚUTF8ÁË£©
2¡¢±£Ö¤´úÂëÀïÃæµÄÉùÃ÷±àÂëÓëÄ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ