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

jsp¶Ë¿Ú¼ì²âÒÔ¼°ÓòÃû¼ì²â

<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>
</tr>
<tr>
<td height="30" align="right">²¿Ê𷾶£º</td>
<td align="left"><input name="cxtPath" type="text" class="input" value="<%=request.getContextPath()%>"/></td>
<td align="left">ϵͳÒѾ­¼ì²â³öÄúµÄ²¿Ê𷾶£¬ÇëÎð¸Ä¶¯</td>
</tr>
<tr>
<td height="30" align="right">¶Ë¿ÚºÅ£º</td>
<td align="left"><input name="port" type="text" class="input" value="<%=request.getServerPort()%>"/></td>
<td align="left">ϵͳÒѾ­¼ì²â³öÄúµÄ¶Ë¿ÚºÅ£¬ÇëÎð¸Ä¶¯</td>
</tr>


Ïà¹ØÎĵµ£º

jspµ¼Èëexcel

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 ......

JSP»ù´¡

Ò»¡¢JSP¼ò½é
JSP (Java Server Pages)ÊÇ·þÎñÆ÷¶ËµÄ½Å±¾ÓïÑÔ£¬ÊÇÒ»ÖÖÔÚHTMLÒ³ÃæÖмÓÈëJavaÓïÑÔ¶øÉú³É¶¯Ì¬Ò³ÃæµÄ¼¼Êõ£º¼ÓÈëÁËеıêÇ©£¨<%£¬%>£¬…£©¡£
JSPÊÇÒÔJavaºÍServletΪ»ù´¡¿ª·¢¶ø³ÉµÄ¶¯Ì¬ÍøÒ³Éú³É¼¼Êõ£¬ËüµÄµ×²ãʵÏÖÊÇJava Servlet¡£
JSPÒ³ÃæÓÉHTML´úÂëºÍǶÈëÆäÖеÄJava´úÂëËù×é³É¡£·þÎñÆ÷ÔÚÒ³Ãæ±»¿Í» ......

jsp±ê×¼¶¯×÷

//ÏÂÃ棬´ÓÇëÇóÖеõ½ÊôÐÔ ÎªÒ»¸ö À࣬£¬»áÅжÏÊÇ·ñΪnull£¬£¬ÈçΪnullÔòʵÀý»¯
// id Öµ  Ï൱ÓÚ  class µÄ ¶ÔÏóÃû
<jsp:useBean id="order" class="com.entity.Order" scope="request" />
<==>
<%
 Order order=(Order)request.getAttribute("order");
 if(order==null)
  ......

JSPÖÐÒ³Ãæ×Ô¶¯¶¨Ê±Ë¢ÐÂ


1.JSPÖÐÒ³Ã涨ʱˢÐÂ
Java
´úÂë < type="application/x-shockwave-flash" width="14" height="15" src="http://penghuaiyi.javaeye.com/javascripts/syntaxhighlighter/clipboard_new.swf" src="http://penghuaiyi.javaeye.com/javascripts/syntaxhighlighter/clipboard_new.swf" flashvars="clipboard=%3C%25%0A%20%20 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ