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>
Ïà¹ØÎĵµ£º
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 (Java Server Pages)ÊÇ·þÎñÆ÷¶ËµÄ½Å±¾ÓïÑÔ£¬ÊÇÒ»ÖÖÔÚHTMLÒ³ÃæÖмÓÈëJavaÓïÑÔ¶øÉú³É¶¯Ì¬Ò³ÃæµÄ¼¼Êõ£º¼ÓÈëÁËеıêÇ©£¨<%£¬%>£¬…£©¡£
JSPÊÇÒÔJavaºÍServletΪ»ù´¡¿ª·¢¶ø³ÉµÄ¶¯Ì¬ÍøÒ³Éú³É¼¼Êõ£¬ËüµÄµ×²ãʵÏÖÊÇJava Servlet¡£
JSPÒ³ÃæÓÉHTML´úÂëºÍǶÈëÆäÖеÄJava´úÂëËù×é³É¡£·þÎñÆ÷ÔÚÒ³Ãæ±»¿Í» ......
//ÏÂÃ棬´ÓÇëÇóÖеõ½ÊôÐÔ ÎªÒ»¸ö À࣬£¬»áÅжÏÊÇ·ñΪnull£¬£¬ÈçΪnullÔòʵÀý»¯
// id Öµ Ï൱ÓÚ class µÄ ¶ÔÏóÃû
<jsp:useBean id="order" class="com.entity.Order" scope="request" />
<==>
<%
Order order=(Order)request.getAttribute("order");
if(order==null)
  ......
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 ......