weblogicÓëwebsphereµÄ²îÒì Ö® jspÖеÄ×¢ÊÍÎÊÌâ
½ñÌì²âÊÔÈËÔ±¸øÎÒÌáÁËÒ»¸öbug£¬ËµÎÒ¿ª·¢µÄÄ£¿é±¨¿ò¼ÜµÄjs´íÎ󣬵±Ê±Ò»Ìý¾ÍãÂÁË£¬ÎÒ±¾µØ²âÊÔÍêȫûÎÊÌ⣬ÔõôÉÏÁË·þÎñÆ÷»á³öÏÖÕâ¸öÎÊÌâÄØ£¿
ÓÚÊÇÎÒÈ¥·þÎñÆ÷ÉϲâÁËÒ»ÏÂ×Ô¼ºÐ´µÄÄǸöÄ£¿é£¬½á¹û±¨µÄ´íÎ󻹺ͲâÊÔÈËÔ±Ìá¸øÎҵĴíÎó²»Ò»Ö£¬ÔÓ»ØÊ£¿ÓÚÊÇÎÒÓÖÕÒµ½Ò»ÃûͬÊ£¬ÈÃËû°ïÎÒ²âһϣ¬±¨µÄ´íÎóÓÖÊÇÁíÍâÒ»¸ö°æ±¾£¬ÕâϸãÁË¡£
û°ì·¨£¬jsµ÷ÊÔ°É£¬½á¹ûµ÷ÊÔÁ˰ëÌ죬ûÓÐÈκνá¹û£¬¼ÈÈ»ÎÒÕâ±ßµÄ´íÎóµ÷ÊÔ²»³öÀ´½á¹û£¬¾ÍÅÜȥͬʵĻúÆ÷Éϵ÷ÁË£¬¹ýÁ˺ðëÌ죬ÖÕÓÚ·¢ÏÖÁËÒ»¸öÎÊÌ⣬¾ÍÊÇÎÒµÄjspÒ³ÃæÖÐÓв¿·Ö´úÂë·ÏÆúÁË£¬±»ÎÒ×¢Ê͵ôµÄ²¿·Ö±¨´í£¬º¹……
½á¹ûÃ÷ÁËÁË£¬ÓÉÓÚ±¾µØÓõÄÊÇweblogic·þÎñÆ÷£¬¶ÔjspµÄ½âÎöÓë·þÎñÆ÷ÉϵÄwebsphere²»Í¬£¬ÂíÉϽ«Ò³ÃæËùÓеÄ×¢ÊÍÈ«²¿È¥µô£¬µÈ·þÎñÆ÷ÖØÐ´ò°ü²âÊÔºó£¬ÖÕÓÚÎÊÌâ½â¾öÁË¡£
Õâ¼þÊ£¬ÔÙ´ÎÖ¤Ã÷Á˱£Ö¤´úÂëµÄ¸É¾»Õû½àÊǶàôµÄÖØÒª£¬ÀË·ÑÁË´ó°ëÌìµÄ¹¤×÷ʱ¼ä£¬ÎÊÌâ¾ÍÔÚ´úÂëµÄ×¢ÊÍÉÏ£¬Ï£Íû¿´µ½´ËÎÄÕµÄÅóÓÑÃǽñºó²»ÒªÔÙ³öÏÖÀàËÆÎÊÌ⣬µ¢Îóʱ¼ä……
Ïà¹ØÎĵµ£º
package com.lsf;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFCell;
import java.sql.*;
import java.io.*;
import java.util.ArrayList;
import java.sql.Co ......
¼òµ¥µÄ˵°É¡£
requestµÄĬÈϱàÂ뷽ʽÊÇISO-8859-1¡£
jsp/htmlÀïÃæµÄcharsetÊôÐÔÊǽâÂëµÄ×Ö·û¼¯¡£
ÎÒÃÇҪͳһÓÃutf-8µÄ±àÂ뷽ʽ¡£
ËùÒÔÒª¶ÔrequestµÄ±àÂ뷽ʽ½øÐÐÉèÖã¬ÕâÑùд£º
request.seCharacterEncoding("utf-8");
È»ºó°ÑÊý¾Ý¿âµÄ±àÂ뷽ʽҲÉè³Éutf-8.
È»ºó¾Í²»»áÓÐÂÒÂë³öÏÖÁË¡£
ÂÒÂëÎÊÌâËãÊÇweb¿ª·¢Öо³£Óöµ½ ......
½üÆÚµÄÒ»¸öÏîÄ¿ÐèҪʵÏÖÉãÏñͷͼÏñ²É¼¯£¬¾¹ýһϵÁеÄÕÛÌÚÒÔºó£¬ÖÕÓÚʵÏÖÁËÕâ¸ö¹¦ÄÜ£¬ÏÖÕûÀíһϡ£
±¾Éí¾Íjava¼¼ÊõÀ´Ëµ£¬ÒªÊµÏÖÉãÏñÍ·¶þ´Î¿ª·¢£¬²É¼¯ÉãÏñͷͼƬ£¬ÐèҪʹÓõ½JMF£¬JMFÊʺÏʹÓÃÔÚj2se³ÌÐòµ±ÖУ¬ÎÒÐèÒªÔÚweb³ÌÐòÖе÷ÓÃÉãÏñÍ·£¬ºÜÃ÷ÏÔJMFÊǸ㲻¶¨ÁË£¬Ïë¹ýдһ¸öapplet³ÌÐò£¬Ö»ÊÇÄǶ«Î÷ÒªÇó¿Í»§¶Ë±ØÐëÒªÓÐjre»·¾ ......
<tr>
<td height="30" align="right">ÓòÃû£º</td>
<td align="left"><input name="domain" type="text" class="input" value="<%=request.getServerName()%>"/></td>
<td align="left">ϵͳÒѾ¼ì²â³öÄúµÄÓòÃû£¬ÇëÎð¸Ä¶¯</td>
</t ......
<c:if>ÓÃÓÚ
Á÷³Ì¿ØÖÆ
Óï·¨
1:
<c:if
test=”testCondition” var=”varName”
[scope=”page|request|session|application”]/>
Óï·¨
2:
<c:if
test=”testCondition” var=”varName”
[scope=&rdquo ......