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

JSPµÄÄÚÖöÔÏó

À´Ô´ÓÚ¡¶Java¡¢javaEEÈí¼þ¹¤³Ìʦ¾ÍÒµÇóÖ°Êֲᡷ
1 HttpServletRequestÀàµÄrequest¶ÔÏ󣺴ú±íÇëÇó¶ÔÏó£¬Ö÷ÒªÓÃÓÚ½ÓÊÜ¿Í»§¶Ëͨ¹ýHTTPЭÒéÁ¬½Ó´«Êäµ½·þÎñÆ÷µÄÊý¾Ý¡£
2 HttpServletResponseÀàµÄresponse£º´ú±íÏìÓ¦¶ÔÏó£¬Ö÷ÒªÓÃÓÚÏò¿Í»§¶Ë·¢ËÍÊý¾Ý¡£
3 JspWriterÀàµÄout¶ÔÏó:Ö÷ÒªÓÃÓÚÏò¿Í»§¶ËÊä³öÊý¾Ý£¬OutµÄ»ùÀàÊÇJspWriter¡£
4 HttpSessionÀàµÄsession¶ÔÏó£ºÖ÷ÒªÓÃÀ´·Ö±ð±£´æÿ¸öÓû§ÐÅÏ¢ºÍ»á»°ÐÅÏ¢¡£
5 ServletContextÀàµÄapplication¶ÔÏó£ºÖ÷ÒªÓÃÓÚ±£´æËùÓÐÓ¦ÓÃϵͳÖֵĹ«ÓÐÊý¾Ý£¬ËüÊÇÒ»¸ö¹²ÏíµÄÄÚÖöÔÏ󣬼´Ò»¸öÈÝÆ÷ÖеĶà¸öÓû§¹²Ïíͬһ¸öapplication¶ÔÏó£¬Ö»Òª·þÎñ²»¹Ø±Õ£¬application¶ÔÏó¾ÍÒ»Ö±´æÔÚ¡£
6 PageContextÀàµÄPageContext¶ÔÏ󣬹ÜÀíÍøÒ³ÊôÐÔ£¬´ú±íÍøÒ³µÄÉÏÏÂÎÄ¡£PageContext¶ÔÏóµÄ´´½¨ºÍ³õʼ»¯¶¼ÊÇÓÉÈÝÆ÷×Ô¶¯Íê³ÉµÄ¡£
7 ServletConfigÀàµÄconfig¶ÔÏ󣺴úÂëƬ¶ÎÅäÖòÎÊý£¬ÓÃÓÚservlet³õʼ»¯µÄÅäÖòÎÊý¡£
8 ObjectÀàµÄpage¶ÔÏ󣺴ú±íÕýÔÚÔËÐеÄjspÒ³Ã棬page¶ÔÏó´ú±íjspÒ³Ãæ±àÒëºóµÄservlet¶ÔÏó£¬page¶ÔÏóÖ»ÄÜÔÚµ±Ç°µÄjsp·¶Î§ÄÚʹÓá£
9 exception¶ÔÏ󣺴¦ÀíjspÎļþÖеĴíÎóºÍÒì³££¬Ö»ÓÐÔÚ³öÏÖ´íÎóµÄÒ³ÃæÖвſÉÓá£


Ïà¹ØÎĵµ£º

jspÖеÄÔªËصÄidÖµºÍnameÖµ£¬ÔÚieºÍffÖеÄÇø±ð

document.getElementById("flag")ÔÚieÖУ¬jspÖеÄÔªËØûÓÐidÖµ£¬ÓÐnameֵʱ£¬Ò²Äܲé³öÀ´£¬°´ÕÕnameÖµ²é¡£
µ«ÊÇÔÚfirefoxÖУ¬Èç¹ûûÓÐidÖµ£¬Ôò²é²»³öÀ´¡£ËùÒÔieÖУ¬nameºÍidÓÐʱͨÓ㻵«ÊÇfirefoxÖУ¬ÊÇÓÐÕâÑϸñÇø±ðµÄ¡£ ......

ÈçºÎ½«Ò»¸öJspÍøÕ¾´ò°ü·¢²¼(·¢²¼ÎªWarÎļþ)

 ÍøÕ¾×öÍêºó£¬²¢²»ÊÇÖ±½Ó·Åµ½·þÎñÆ÷£¨Tomcat£©ÖÐÈ¥ÔËÐУ¬¶øÊÇÏȽ«Æä´ò°ü³ÉWarÎļþ£¬ÔÙ°ÑWarÎļþ·Åµ½·þÎñÆ÷ÖÐÈ¥ÔËÐУ¬ÄÇÑù¸ü·½±ã
ÄÇôÔõÑù½«Ò»¸öJspÍøÕ¾´ò°üÄØ£¿£¿£¿
 Ò».·½·¨Ò»
  ½øÈëcmdµ½dosÃüÁîÐÐÏ£¬½øÈëJspWeb(×¢ÒâÒª½øÈëJspWebĿ¼£¬¼´½øÈëÄãÒª´ò°üµÄÍøÕ¾µÄ¸ùĿ¼)
   ÔÙÏÂÒ»²½
  ......

jspÎļþµÄÉÏ´«ºÍÏÂÔزÙ×÷´úÂë

jspÎļþÉÏ´«ºÍÏÂÔØ
package net.jspcn.tool;
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
/**
*
* Title: ÎļþÉÏ´«Àà
* Description: ¼ÈÄܶÔÎļþ½øÐÐÉÏ´«,ÓÖÄÜÈ¡µÃÊäÈë¿òµÄÖµ,×î¶à¿ÉͬʱÉÏ´«255¸öÎļþ
* Copyright: Copyright (c) 2002
* Company: Tekson
* ......

jsp ÍøÂç

 ÔÚtomcatÏÂÕÒµ½tomcat -> conf -> server.xml ÔÚÕâÒ»¾äÖÐÌí¼ÓºìÉ«²¿·Ö
<Connector connectionTimeout="20000" port="9090" protocol="HTTP/1.1" redirectPort="8443" useBodyEncodingForURI="true"
/> <!--URLEncoding=""--> ± ......

Google·ÖÒ³¹¦ÄܵÄjsp±êǩʵÏÖ

 ÏÂÃæÊÇjsp´úÂë<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page import="com.yourcompany.struts.action.Student" %>
<%@ t ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ