﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-joessy-文章分类-jsp</title><link>http://www.blogjava.net/joessy/category/404.html</link><description>记录工作中遇到的问题及解决办法</description><language>zh-cn</language><lastBuildDate>Thu, 01 Mar 2007 20:53:48 GMT</lastBuildDate><pubDate>Thu, 01 Mar 2007 20:53:48 GMT</pubDate><ttl>60</ttl><item><title>获取JSP中所有参数[转]</title><link>http://www.blogjava.net/joessy/articles/1397.html</link><dc:creator>工作日志</dc:creator><author>工作日志</author><pubDate>Mon, 21 Feb 2005 08:54:00 GMT</pubDate><guid>http://www.blogjava.net/joessy/articles/1397.html</guid><wfw:comment>http://www.blogjava.net/joessy/comments/1397.html</wfw:comment><comments>http://www.blogjava.net/joessy/articles/1397.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/joessy/comments/commentRss/1397.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/joessy/services/trackbacks/1397.html</trackback:ping><description><![CDATA[<DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid">
<DIV><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">package&nbsp;coreservlets;&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>import&nbsp;java.io.</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">;&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>import&nbsp;javax.servlet.</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">;&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>import&nbsp;javax.servlet.http.</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">;&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>import&nbsp;java.util.</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">;&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><BR><IMG id=Codehighlighter1_120_407_Open_Image onclick="this.style.display='none'; Codehighlighter1_120_407_Open_Text.style.display='none'; Codehighlighter1_120_407_Closed_Image.style.display='inline'; Codehighlighter1_120_407_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_120_407_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_120_407_Closed_Text.style.display='none'; Codehighlighter1_120_407_Open_Image.style.display='inline'; Codehighlighter1_120_407_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_120_407_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">/**/</SPAN><SPAN id=Codehighlighter1_120_407_Open_Text><SPAN style="COLOR: #008000">/*</SPAN><SPAN style="COLOR: #008000">*&nbsp;Creates&nbsp;a&nbsp;table&nbsp;showing&nbsp;the&nbsp;current&nbsp;value&nbsp;of&nbsp;each&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>*&nbsp;of&nbsp;the&nbsp;standard&nbsp;CGI&nbsp;variables.&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>*&nbsp;&lt;P&gt;&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>*&nbsp;Taken&nbsp;from&nbsp;Core&nbsp;Servlets&nbsp;and&nbsp;JavaServer&nbsp;Pages&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>*&nbsp;from&nbsp;Prentice&nbsp;Hall&nbsp;and&nbsp;Sun&nbsp;Microsystems&nbsp;Press,&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>*&nbsp;</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #008000">http://www.coreservlets.com/.&nbsp;</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>*&nbsp;&amp;copy;&nbsp;2000&nbsp;Marty&nbsp;Hall;&nbsp;may&nbsp;be&nbsp;freely&nbsp;used&nbsp;or&nbsp;adapted.&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top></SPAN><SPAN style="COLOR: #008000">*/</SPAN></SPAN><SPAN style="COLOR: #000000">&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><BR><IMG id=Codehighlighter1_461_2278_Open_Image onclick="this.style.display='none'; Codehighlighter1_461_2278_Open_Text.style.display='none'; Codehighlighter1_461_2278_Closed_Image.style.display='inline'; Codehighlighter1_461_2278_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_461_2278_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_461_2278_Closed_Text.style.display='none'; Codehighlighter1_461_2278_Open_Image.style.display='inline'; Codehighlighter1_461_2278_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">class</SPAN><SPAN style="COLOR: #000000">&nbsp;ShowCGIVariables&nbsp;extends&nbsp;HttpServlet&nbsp;</SPAN><SPAN id=Codehighlighter1_461_2278_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_461_2278_Open_Text><SPAN style="COLOR: #000000">{&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000">&nbsp;doGet(HttpServletRequest&nbsp;request,&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>HttpServletResponse&nbsp;response)&nbsp;<BR><IMG id=Codehighlighter1_579_2073_Open_Image onclick="this.style.display='none'; Codehighlighter1_579_2073_Open_Text.style.display='none'; Codehighlighter1_579_2073_Closed_Image.style.display='inline'; Codehighlighter1_579_2073_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_579_2073_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_579_2073_Closed_Text.style.display='none'; Codehighlighter1_579_2073_Open_Image.style.display='inline'; Codehighlighter1_579_2073_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top>throws&nbsp;ServletException,&nbsp;IOException&nbsp;</SPAN><SPAN id=Codehighlighter1_579_2073_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_579_2073_Open_Text><SPAN style="COLOR: #000000">{&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>response.setContentType(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">text/html</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>PrintWriter&nbsp;</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;response.getWriter();&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>String[][]&nbsp;variables&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;<BR><IMG id=Codehighlighter1_686_1486_Open_Image onclick="this.style.display='none'; Codehighlighter1_686_1486_Open_Text.style.display='none'; Codehighlighter1_686_1486_Closed_Image.style.display='inline'; Codehighlighter1_686_1486_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_686_1486_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_686_1486_Closed_Text.style.display='none'; Codehighlighter1_686_1486_Open_Image.style.display='inline'; Codehighlighter1_686_1486_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_686_1486_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_686_1486_Open_Text><SPAN style="COLOR: #000000">{&nbsp;</SPAN><SPAN id=Codehighlighter1_688_725_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_688_725_Open_Text><SPAN style="COLOR: #000000">{&nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">AUTH_TYPE</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">,&nbsp;request.getAuthType()&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000">,&nbsp;<BR><IMG id=Codehighlighter1_729_793_Open_Image onclick="this.style.display='none'; Codehighlighter1_729_793_Open_Text.style.display='none'; Codehighlighter1_729_793_Closed_Image.style.display='inline'; Codehighlighter1_729_793_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_729_793_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_729_793_Closed_Text.style.display='none'; Codehighlighter1_729_793_Open_Image.style.display='inline'; Codehighlighter1_729_793_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_729_793_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_729_793_Open_Text><SPAN style="COLOR: #000000">{&nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">CONTENT_LENGTH</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">,&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>String.valueOf(request.getContentLength())&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000">,&nbsp;<BR><IMG id=Codehighlighter1_797_840_Open_Image onclick="this.style.display='none'; Codehighlighter1_797_840_Open_Text.style.display='none'; Codehighlighter1_797_840_Closed_Image.style.display='inline'; Codehighlighter1_797_840_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_797_840_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_797_840_Closed_Text.style.display='none'; Codehighlighter1_797_840_Open_Image.style.display='inline'; Codehighlighter1_797_840_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_797_840_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_797_840_Open_Text><SPAN style="COLOR: #000000">{&nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">CONTENT_TYPE</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">,&nbsp;request.getContentType()&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000">,&nbsp;<BR><IMG id=Codehighlighter1_844_901_Open_Image onclick="this.style.display='none'; Codehighlighter1_844_901_Open_Text.style.display='none'; Codehighlighter1_844_901_Closed_Image.style.display='inline'; Codehighlighter1_844_901_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_844_901_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_844_901_Closed_Text.style.display='none'; Codehighlighter1_844_901_Open_Image.style.display='inline'; Codehighlighter1_844_901_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_844_901_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_844_901_Open_Text><SPAN style="COLOR: #000000">{&nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">DOCUMENT_ROOT</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">,&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>getServletContext().getRealPath(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">/</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">)&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000">,&nbsp;<BR><IMG id=Codehighlighter1_905_942_Open_Image onclick="this.style.display='none'; Codehighlighter1_905_942_Open_Text.style.display='none'; Codehighlighter1_905_942_Closed_Image.style.display='inline'; Codehighlighter1_905_942_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_905_942_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_905_942_Closed_Text.style.display='none'; Codehighlighter1_905_942_Open_Image.style.display='inline'; Codehighlighter1_905_942_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_905_942_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_905_942_Open_Text><SPAN style="COLOR: #000000">{&nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">PATH_INFO</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">,&nbsp;request.getPathInfo()&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000">,&nbsp;<BR><IMG id=Codehighlighter1_946_995_Open_Image onclick="this.style.display='none'; Codehighlighter1_946_995_Open_Text.style.display='none'; Codehighlighter1_946_995_Closed_Image.style.display='inline'; Codehighlighter1_946_995_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_946_995_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_946_995_Closed_Text.style.display='none'; Codehighlighter1_946_995_Open_Image.style.display='inline'; Codehighlighter1_946_995_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_946_995_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_946_995_Open_Text><SPAN style="COLOR: #000000">{&nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">PATH_TRANSLATED</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">,&nbsp;request.getPathTranslated()&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000">,&nbsp;<BR><IMG id=Codehighlighter1_999_1042_Open_Image onclick="this.style.display='none'; Codehighlighter1_999_1042_Open_Text.style.display='none'; Codehighlighter1_999_1042_Closed_Image.style.display='inline'; Codehighlighter1_999_1042_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_999_1042_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_999_1042_Closed_Text.style.display='none'; Codehighlighter1_999_1042_Open_Image.style.display='inline'; Codehighlighter1_999_1042_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_999_1042_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_999_1042_Open_Text><SPAN style="COLOR: #000000">{&nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">QUERY_STRING</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">,&nbsp;request.getQueryString()&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000">,&nbsp;<BR><IMG id=Codehighlighter1_1046_1087_Open_Image onclick="this.style.display='none'; Codehighlighter1_1046_1087_Open_Text.style.display='none'; Codehighlighter1_1046_1087_Closed_Image.style.display='inline'; Codehighlighter1_1046_1087_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_1046_1087_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1046_1087_Closed_Text.style.display='none'; Codehighlighter1_1046_1087_Open_Image.style.display='inline'; Codehighlighter1_1046_1087_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_1046_1087_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_1046_1087_Open_Text><SPAN style="COLOR: #000000">{&nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">REMOTE_ADDR</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">,&nbsp;request.getRemoteAddr()&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000">,&nbsp;<BR><IMG id=Codehighlighter1_1091_1132_Open_Image onclick="this.style.display='none'; Codehighlighter1_1091_1132_Open_Text.style.display='none'; Codehighlighter1_1091_1132_Closed_Image.style.display='inline'; Codehighlighter1_1091_1132_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_1091_1132_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1091_1132_Closed_Text.style.display='none'; Codehighlighter1_1091_1132_Open_Image.style.display='inline'; Codehighlighter1_1091_1132_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_1091_1132_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_1091_1132_Open_Text><SPAN style="COLOR: #000000">{&nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">REMOTE_HOST</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">,&nbsp;request.getRemoteHost()&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000">,&nbsp;<BR><IMG id=Codehighlighter1_1136_1177_Open_Image onclick="this.style.display='none'; Codehighlighter1_1136_1177_Open_Text.style.display='none'; Codehighlighter1_1136_1177_Closed_Image.style.display='inline'; Codehighlighter1_1136_1177_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_1136_1177_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1136_1177_Closed_Text.style.display='none'; Codehighlighter1_1136_1177_Open_Image.style.display='inline'; Codehighlighter1_1136_1177_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_1136_1177_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_1136_1177_Open_Text><SPAN style="COLOR: #000000">{&nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">REMOTE_USER</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">,&nbsp;request.getRemoteUser()&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000">,&nbsp;<BR><IMG id=Codehighlighter1_1181_1221_Open_Image onclick="this.style.display='none'; Codehighlighter1_1181_1221_Open_Text.style.display='none'; Codehighlighter1_1181_1221_Closed_Image.style.display='inline'; Codehighlighter1_1181_1221_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_1181_1221_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1181_1221_Closed_Text.style.display='none'; Codehighlighter1_1181_1221_Open_Image.style.display='inline'; Codehighlighter1_1181_1221_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_1181_1221_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_1181_1221_Open_Text><SPAN style="COLOR: #000000">{&nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">REQUEST_METHOD</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">,&nbsp;request.getMethod()&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000">,&nbsp;<BR><IMG id=Codehighlighter1_1225_1267_Open_Image onclick="this.style.display='none'; Codehighlighter1_1225_1267_Open_Text.style.display='none'; Codehighlighter1_1225_1267_Closed_Image.style.display='inline'; Codehighlighter1_1225_1267_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_1225_1267_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1225_1267_Closed_Text.style.display='none'; Codehighlighter1_1225_1267_Open_Image.style.display='inline'; Codehighlighter1_1225_1267_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_1225_1267_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_1225_1267_Open_Text><SPAN style="COLOR: #000000">{&nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">SCRIPT_NAME</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">,&nbsp;request.getServletPath()&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000">,&nbsp;<BR><IMG id=Codehighlighter1_1271_1312_Open_Image onclick="this.style.display='none'; Codehighlighter1_1271_1312_Open_Text.style.display='none'; Codehighlighter1_1271_1312_Closed_Image.style.display='inline'; Codehighlighter1_1271_1312_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_1271_1312_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1271_1312_Closed_Text.style.display='none'; Codehighlighter1_1271_1312_Open_Image.style.display='inline'; Codehighlighter1_1271_1312_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_1271_1312_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_1271_1312_Open_Text><SPAN style="COLOR: #000000">{&nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">SERVER_NAME</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">,&nbsp;request.getServerName()&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000">,&nbsp;<BR><IMG id=Codehighlighter1_1316_1374_Open_Image onclick="this.style.display='none'; Codehighlighter1_1316_1374_Open_Text.style.display='none'; Codehighlighter1_1316_1374_Closed_Image.style.display='inline'; Codehighlighter1_1316_1374_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_1316_1374_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1316_1374_Closed_Text.style.display='none'; Codehighlighter1_1316_1374_Open_Image.style.display='inline'; Codehighlighter1_1316_1374_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_1316_1374_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_1316_1374_Open_Text><SPAN style="COLOR: #000000">{&nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">SERVER_PORT</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">,&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>String.valueOf(request.getServerPort())&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000">,&nbsp;<BR><IMG id=Codehighlighter1_1378_1421_Open_Image onclick="this.style.display='none'; Codehighlighter1_1378_1421_Open_Text.style.display='none'; Codehighlighter1_1378_1421_Closed_Image.style.display='inline'; Codehighlighter1_1378_1421_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_1378_1421_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1378_1421_Closed_Text.style.display='none'; Codehighlighter1_1378_1421_Open_Image.style.display='inline'; Codehighlighter1_1378_1421_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_1378_1421_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_1378_1421_Open_Text><SPAN style="COLOR: #000000">{&nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">SERVER_PROTOCOL</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">,&nbsp;request.getProtocol()&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000">,&nbsp;<BR><IMG id=Codehighlighter1_1425_1483_Open_Image onclick="this.style.display='none'; Codehighlighter1_1425_1483_Open_Text.style.display='none'; Codehighlighter1_1425_1483_Closed_Image.style.display='inline'; Codehighlighter1_1425_1483_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_1425_1483_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1425_1483_Closed_Text.style.display='none'; Codehighlighter1_1425_1483_Open_Image.style.display='inline'; Codehighlighter1_1425_1483_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_1425_1483_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_1425_1483_Open_Text><SPAN style="COLOR: #000000">{&nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">SERVER_SOFTWARE</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">,&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>getServletContext().getServerInfo()&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000">&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000">;&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>String&nbsp;title&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">Servlet&nbsp;Example:&nbsp;Showing&nbsp;CGI&nbsp;Variables</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">;&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.println(ServletUtilities.headWithTitle(title)&nbsp;</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">&lt;BODY&nbsp;BGCOLOR=\</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">#FDF5E6\</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">&gt;\n</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">&lt;H1&nbsp;ALIGN=\</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">CENTER\</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">&gt;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">&nbsp;title&nbsp;</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">&lt;/H1&gt;\n</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">&lt;TABLE&nbsp;BORDER=1&nbsp;ALIGN=\</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">CENTER\</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">&gt;\n</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">&lt;TR&nbsp;BGCOLOR=\</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">#FFAD00\</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">&gt;\n</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">&lt;TH&gt;CGI&nbsp;Variable&nbsp;Name&lt;TH&gt;Value</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);&nbsp;<BR><IMG id=Codehighlighter1_1841_2030_Open_Image onclick="this.style.display='none'; Codehighlighter1_1841_2030_Open_Text.style.display='none'; Codehighlighter1_1841_2030_Closed_Image.style.display='inline'; Codehighlighter1_1841_2030_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_1841_2030_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1841_2030_Closed_Text.style.display='none'; Codehighlighter1_1841_2030_Open_Image.style.display='inline'; Codehighlighter1_1841_2030_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">for</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000">&nbsp;i</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">;&nbsp;i</SPAN><SPAN style="COLOR: #000000">&lt;</SPAN><SPAN style="COLOR: #000000">variables.length;&nbsp;i</SPAN><SPAN style="COLOR: #000000">++</SPAN><SPAN style="COLOR: #000000">)&nbsp;</SPAN><SPAN id=Codehighlighter1_1841_2030_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_1841_2030_Open_Text><SPAN style="COLOR: #000000">{&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>String&nbsp;varName&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;variables[i][</SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">];&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>String&nbsp;varValue&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;variables[i][</SPAN><SPAN style="COLOR: #000000">1</SPAN><SPAN style="COLOR: #000000">];&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000">&nbsp;(varValue&nbsp;</SPAN><SPAN style="COLOR: #000000">==</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">null</SPAN><SPAN style="COLOR: #000000">)&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>varValue&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">&lt;I&gt;Not&nbsp;specified&lt;/I&gt;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">;&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.println(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">&lt;TR&gt;&lt;TD&gt;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">&nbsp;varName&nbsp;</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">&lt;TD&gt;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">&nbsp;varValue);&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000">&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.println(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000">&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG id=Codehighlighter1_2077_2125_Open_Image onclick="this.style.display='none'; Codehighlighter1_2077_2125_Open_Text.style.display='none'; Codehighlighter1_2077_2125_Closed_Image.style.display='inline'; Codehighlighter1_2077_2125_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_2077_2125_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_2077_2125_Closed_Text.style.display='none'; Codehighlighter1_2077_2125_Open_Image.style.display='inline'; Codehighlighter1_2077_2125_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_2077_2125_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">/**/</SPAN><SPAN id=Codehighlighter1_2077_2125_Open_Text><SPAN style="COLOR: #008000">/*</SPAN><SPAN style="COLOR: #008000">*&nbsp;POST&nbsp;and&nbsp;GET&nbsp;requests&nbsp;handled&nbsp;identically.&nbsp;</SPAN><SPAN style="COLOR: #008000">*/</SPAN></SPAN><SPAN style="COLOR: #000000">&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000">&nbsp;doPost(HttpServletRequest&nbsp;request,&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>HttpServletResponse&nbsp;response)&nbsp;<BR><IMG id=Codehighlighter1_2245_2275_Open_Image onclick="this.style.display='none'; Codehighlighter1_2245_2275_Open_Text.style.display='none'; Codehighlighter1_2245_2275_Closed_Image.style.display='inline'; Codehighlighter1_2245_2275_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_2245_2275_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_2245_2275_Closed_Text.style.display='none'; Codehighlighter1_2245_2275_Open_Image.style.display='inline'; Codehighlighter1_2245_2275_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top>throws&nbsp;ServletException,&nbsp;IOException&nbsp;</SPAN><SPAN id=Codehighlighter1_2245_2275_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_2245_2275_Open_Text><SPAN style="COLOR: #000000">{&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>doGet(request,&nbsp;response);&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000">&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000">&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top></SPAN></DIV></DIV><img src ="http://www.blogjava.net/joessy/aggbug/1397.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/joessy/" target="_blank">工作日志</a> 2005-02-21 16:54 <a href="http://www.blogjava.net/joessy/articles/1397.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>