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

jsp£ºinclude+filter

<jsp:include flush="true" page="Index.jsp">
      <jsp:param name="username" value="<%=request.getParameter("username")%>"/>
      <jsp:param name="unit" value="<%=request.getParameter("unit")%>"/>
   </jsp:include>
  /*
* Copyright 2004 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package mypack.filters;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.UnavailableException;
/**
 * <p>Example filter that sets the character encoding to be used in parsing the
 * incoming request, either unconditionally or only if the client did not
 * specify a character encoding.  Configuration of this filter is based on
 * the following initialization parameters:</p>
 * <ul>
 * <li><strong>encoding</strong> - The character encoding to be configured
 *     for this request, either conditionally or unconditionally based on
 *     the <code>ignore</code> initialization parameter.  This parameter
 *     is required, so there is no default.


Ïà¹ØÎĵµ£º

Java/JSPÁ¬½ÓPostgreÊý¾Ý¿â³£¼ûÎÊÌâ½â´ð

Ò»¡¢
ÎÊ£ºorg.postgresql.util.PSQLException: FATAL: no pg_hba.conf entry for host "192.168.254.103", user "postgres",database "postgres", SSL off
´ð£ºPostgreSQÊý¾Ý¿âΪÁ˰²È«£¬Ëü²»»á¼àÌý³ý±¾µØÒÔÍâµÄËùÓÐÁ¬½ÓÇëÇ󣬵±Óû§Í¨¹ýJDBC·ÃÎÊÊÇ£¬¾Í»á±¨Ò»Ð©ÒÔÉϵÄÒì³£¡£Òª½â¾öÕâ¸öÎÊÌâ ......

JSPʵÏÖÎļþÉÏ´«

ʹÓÃRandomAccessFileÀàÌṩµÄ¹¦ÄÜÀ´ÊµÏÖÎļþÉÏ´«¡£µ±ÎÒÃÇÏë¶ÔÒ»¸öÎļþ½øÐжÁд²Ù×÷ʱ£¬¿ÉÒÔ´´½¨Ò»¸öÖ¸Ïò¸ÃÎļþµÄRandomAccessFileÁ÷¼´¿É£¬ÕâÑù¼È¿ÉÒÔ´ÓÕâ¸öÁ÷ÖжÁÈ¡Õâ¸öÎļþµÄÊý¾Ý£¬Ò²Í¨¹ýÕâ¸öÁ÷дÈëÊý¾Ý¸øÕâ¸öÎļþ¡£
ÀûÓÃJavaBean¸ºÔð½«Óû§Ñ¡ÔñµÄÎļþÉÏ´«µ½·þÎñÆ÷¡£bean¿ÉÒÔÈÃÄÚÖöÔÏórequestµ÷Ó÷½·¨getInputStream£ ......

JSPÖж¯Ì¬INCLUDEÓ뾲̬INCLUDEµÄÇø±ð

JSPÖÐÓÐÁ½ÖÖ°üº¬Óï¾ä£º
1. <%@include file="head.jsp" %>
2. <jsp:include page="head.jsp" />
   »òÕߣº
  <jsp:include page="jieshou.jsp">
   <jsp:param name="canshu" value="magci" />
 &nbs ......

ÔÚJSPÖÐʹÓÃJS·½Ê½ÒýÓÃckeditor

×î½üÔÚ×Ô¼º×öµÄÏîÄ¿ÖÐÐèÒªÓõ½ÔÚÏ߱༭Æ÷,ÔÚÍøÉÏËÑÁËÏ£¬·¢ÏÖÁËckeditor£¬µ±È»ÍøÉÏÓкü¸ÖÖÔÚÏ߱༭Æ÷£¬²»ÖªµÀΪʲôѡÔñÁËckeditor,±¾À´´òËãÓÃFckeditorµÄ£¬µ«ÊÇ¿´µ½ÍøÉÏ»¹ÐèÒªµ¼ÈëºÃ¼¸¸öJAR°ü£¬»¹Òª½øÐÐÒ»¶ÑÅäÖã¬ÓеãÂé·³£¬±¾À´ÏîÄ¿ÖÐÒ²¾ÍÓÃһϣ¬»¹ÒªÄÇôÂé·³µØÈ¥ÅäÖá£
ÓÚÊÇÈ¥ckeditorÍøÕ¾ÏÂÔØÁË×îа汾µÄckeditor£¬ ......

jspÓÐÄÄЩ¶¯×÷?×÷Ó÷ֱðÊÇʲô?

JSP¹²ÓÐÒÔÏÂ6ÖÖ»ù±¾¶¯×÷£º
   1.jsp:include£ºÔÚÒ³Ãæ±»ÇëÇóµÄʱºòÒýÈëÒ»¸öÎļþ¡£
   2.jsp:useBean£ºÑ°ÕÒ»òÕßʵÀý»¯Ò»¸öJavaBean¡£
   3.jsp:setProperty£ºÉèÖÃJavaBeanµÄÊôÐÔ¡£
   4.jsp:getProperty£ºÊä³öij¸öJavaBeanµÄÊôÐÔ¡£
   5.jsp:forward£º°ÑÇëÇóתµ½ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ