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ÎļþÖеĴíÎóºÍÒì³££¬Ö»ÓÐÔÚ³öÏÖ´íÎóµÄÒ³ÃæÖвſÉÓá£
Ïà¹ØÎĵµ£º
²Ù×÷·½·¨£º windows------preferences----------ËÑË÷ html----------ÕÒµ½ html SourceÕâÏî---------
ÕÒµ½ content assist (¼ûÏÂͼ)------Prompt when these¡£¡£¡£¡£ºóÃæÓиöÊäÈë¿ò£¨ÀïÃæÓиöСÓںţ©½ô¸ú СÓںźóÃæÊäÈëÒ»¸ö ¿Õ¸ñ¼ü £¬-----------apply----------ok¡£
ÔÚhtmlÖбà¼Ê ......
ÍøÕ¾×öÍêºó£¬²¢²»ÊÇÖ±½Ó·Åµ½·þÎñÆ÷£¨Tomcat£©ÖÐÈ¥ÔËÐУ¬¶øÊÇÏȽ«Æä´ò°ü³ÉWarÎļþ£¬ÔÙ°ÑWarÎļþ·Åµ½·þÎñÆ÷ÖÐÈ¥ÔËÐУ¬ÄÇÑù¸ü·½±ã
ÄÇôÔõÑù½«Ò»¸öJspÍøÕ¾´ò°üÄØ£¿£¿£¿
Ò».·½·¨Ò»
½øÈëcmdµ½dosÃüÁîÐÐÏ£¬½øÈëJspWeb(×¢ÒâÒª½øÈëJspWebĿ¼£¬¼´½øÈëÄãÒª´ò°üµÄÍøÕ¾µÄ¸ùĿ¼)
ÔÙÏÂÒ»²½
......
Ê×ÏÈ,˵һÏÂ301Öض¨ÏòµÄÒâÒåÓë×÷ÓÃ(ÍøÉÏÕÒµÄÏà¹Ø×ÊÁÏ)
ÆäʵÕâ¾ÍÉæ¼°µ½ÁËSEOµÄ֪ʶ¡£
ʲôÊÇ301תÏò£¿
´ÓËÑË÷ÒýÇæÓÅ»¯½Ç¶È³ö·¢£¬301Öض¨ÏòÊÇÍøÖ·Öض¨Ïò×îΪ¿ÉÐеÄÒ»ÖÖ°ì·¨¡£µ±ÍøÕ¾µÄÓòÃû·¢Éú±ä¸üºó£¬ËÑË÷ÒýÇæÖ»¶ÔÐÂÍøÖ·½øÐÐË÷Òý£¬Í¬Ê±ÓÖ»á°Ñ¾ÉµØÖ·ÏÂÔÓеÄÍⲿÁ´½ÓÈçÊýתÒƵ½ÐµØÖ·Ï£¬´Ó¶ø²»»áÈÃÍøÕ¾µÄÅÅÃûÒòΪÍøÖ ......
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´úÂë<%@ 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 ......