?? viewcategory_0002ejsp_jsp.java
字號:
package shop;
import java.io.*;
import java.sql.*;
import java.util.*;
import test.bo.*;
import test.models.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
public class viewCategory_0002ejsp_jsp extends HttpJspBase {
// begin [file="/shop/../trans.jsp";from=(1,3);to=(16,0)]
String trans(String chi)
{
String result = "";
byte temp [];
try
{
temp=chi.getBytes("iso-8859-1");
result = new String(temp);
}
catch(UnsupportedEncodingException e)
{
System.out.println (e.toString());
}
return result;
}
// end
// begin [file="/shop/viewCategory.jsp";from=(4,0);to=(4,70)]
// end
static {
}
public viewCategory_0002ejsp_jsp( ) {
}
private static boolean _jspx_inited = false;
public final void _jspx_init() throws org.apache.jasper.runtime.JspException {
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
String _value = null;
try {
if (_jspx_inited == false) {
synchronized (this) {
if (_jspx_inited == false) {
_jspx_init();
_jspx_inited = true;
}
}
}
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html;setchar=gb2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
"../error.jsp", true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
// HTML // begin [file="/shop/viewCategory.jsp";from=(0,91);to=(1,0)]
out.write("\r\n");
// end
// HTML // begin [file="/shop/../trans.jsp";from=(0,29);to=(1,0)]
out.write("\r\n");
// end
// HTML // begin [file="/shop/viewCategory.jsp";from=(1,33);to=(2,0)]
out.write("\r\n");
// end
// HTML // begin [file="/shop/viewCategory.jsp";from=(2,42);to=(3,0)]
out.write("\r\n");
// end
// HTML // begin [file="/shop/viewCategory.jsp";from=(3,43);to=(4,0)]
out.write("\r\n");
// end
// begin [file="/shop/viewCategory.jsp";from=(4,0);to=(4,70)]
test.bo.CategoryBO categoryBO = null;
boolean _jspx_specialcategoryBO = false;
synchronized (pageContext) {
categoryBO= (test.bo.CategoryBO)
pageContext.getAttribute("categoryBO",PageContext.PAGE_SCOPE);
if ( categoryBO == null ) {
_jspx_specialcategoryBO = true;
try {
categoryBO = (test.bo.CategoryBO) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "test.bo.CategoryBO");
} catch (ClassNotFoundException exc) {
throw new InstantiationException(exc.getMessage());
} catch (Exception exc) {
throw new ServletException (" Cannot create bean of class "+"test.bo.CategoryBO", exc);
}
pageContext.setAttribute("categoryBO", categoryBO, PageContext.PAGE_SCOPE);
}
}
if(_jspx_specialcategoryBO == true) {
// end
// begin [file="/shop/viewCategory.jsp";from=(4,0);to=(4,70)]
}
// end
// HTML // begin [file="/shop/viewCategory.jsp";from=(4,70);to=(10,0)]
out.write("\r\n<html>\r\n<body>\r\n<hr><div align=\"center\"><br>\r\n脟毛脩隆脭帽脣霉脨貓脪陋碌脛脡脤脝路攏盧碌茫祿梅隆戮陸酶脠毛隆驢<br>\r\n:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::\r\n");
// end
// begin [file="/shop/viewCategory.jsp";from=(10,2);to=(14,0)]
Collection temp=categoryBO.allCategory();
Iterator it=temp.iterator();
// end
// HTML // begin [file="/shop/viewCategory.jsp";from=(14,2);to=(21,2)]
out.write("\r\n <table align=\"center\" bgcolor=\"#008800\" border=\"0\" cellspacing=\"2\" cellpadding=\"5\" width=\"80%\">\r\n <tr bgcolor=\"#cccccc\">\r\n <td align=\"center\"><b>脙沒魯脝 </b></td>\r\n <td align=\"center\"><b>脙貓脢枚 </b></td>\r\n <td align=\"center\"><b>陸酶脠毛 </b></td>\r\n </tr>\r\n ");
// end
// begin [file="/shop/viewCategory.jsp";from=(21,4);to=(28,3)]
while(it.hasNext())
{
Category category=(Category)it.next();
try{
out.println("<tr><td align='center' bgcolor='#E1F5FF' width='40%'>"+trans(category.getName())+"</td>");
out.println("<td align='center' bgcolor='#E1F5FF' width='40%'>"+trans(category.getDescn())+"</td>");
// end
// HTML // begin [file="/shop/viewCategory.jsp";from=(28,5);to=(29,66)]
out.write("\r\n <td align='center' bgcolor='#E1F5FF' width='20%'><a href=\"");
// end
// begin [file="/shop/viewCategory.jsp";from=(29,69);to=(29,93)]
out.print(request.getContextPath());
// end
// HTML // begin [file="/shop/viewCategory.jsp";from=(29,95);to=(29,133)]
out.write("/shop/viewProductByCategory.jsp?catid=");
// end
// begin [file="/shop/viewCategory.jsp";from=(29,136);to=(29,162)]
out.print(trans(category.getCatid()));
// end
// HTML // begin [file="/shop/viewCategory.jsp";from=(29,164);to=(30,3)]
out.write("\">陸酶脠毛</a></td></tr>\r\n ");
// end
// begin [file="/shop/viewCategory.jsp";from=(30,5);to=(37,4)]
}
catch(Exception e)
{
e.printStackTrace();
}
}
// end
// HTML // begin [file="/shop/viewCategory.jsp";from=(37,6);to=(43,0)]
out.write("\r\n</table>\r\n:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::\r\n</div>\r\n</body>\r\n</html>\r\n");
// end
} catch (Throwable t) {
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (pageContext != null) pageContext.handlePageException(t);
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -