📄 __searchresult.java
字号:
/* compiled from JSP: /searchResult.jsp
*
* This code was automatically generated at 18:56:56 on 2007-6-17
* by weblogic.servlet.jsp.Jsp2Java -- do not edit.
*/
package jsp_servlet;
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
// User imports
import javax.naming.*; //[ /searchResult.jsp; Line: 2]import java.util.*; //[ /searchResult.jsp; Line: 2]import javax.rmi.*; //[ /searchResult.jsp; Line: 2]
// built-in init parameters:
// boolean _verbose -- wants debugging
// Well-known variables:
// JspWriter out -- to write to the browser
// HttpServletRequest request -- the request object.
// HttpServletResponse response -- the response object.
// PageContext pageContext -- the page context for this JSP
// HttpSession session -- the session object for the client (if any)
// ServletContext application -- The servlet (application) context
// ServletConfig config -- The ServletConfig for this JSP
// Object page -- the instance of this page's implementation class (i.e., 'this')
/**
* This code was automatically generated at 18:56:57 on 2007-6-17
* by weblogic.servlet.jsp.Jsp2Java -- do not edit.
*
* Copyright (c) 2007 by BEA Systems, Inc. All Rights Reserved.
*/
public final class __searchresult
extends
weblogic.servlet.jsp.JspBase
implements weblogic.servlet.jsp.StaleIndicator
{
// StaleIndicator interface public boolean _isStale() { weblogic.servlet.jsp.StaleChecker sci =(weblogic.servlet.jsp.StaleChecker)(getServletConfig().getServletContext()); java.io.File f = null; long lastModWhenBuilt = 0L; if (sci.isResourceStale("/searchResult.jsp", 1181749404000L, "8.1.4.0", "Asia/Shanghai")) return true; if (sci.isResourceStale("/top.jsp", 1182077734000L, "8.1.4.0", "Asia/Shanghai")) return true; if (sci.isResourceStale("/foot.jsp", 1181880966000L, "8.1.4.0", "Asia/Shanghai")) return true; return false; } public static boolean _staticIsStale(weblogic.servlet.jsp.StaleChecker sci) { java.io.File f = null; long lastModWhenBuilt = 0L; if (sci.isResourceStale("/searchResult.jsp", 1181749404000L, "8.1.4.0", "Asia/Shanghai")) return true; if (sci.isResourceStale("/top.jsp", 1182077734000L, "8.1.4.0", "Asia/Shanghai")) return true; if (sci.isResourceStale("/foot.jsp", 1181880966000L, "8.1.4.0", "Asia/Shanghai")) return true; return false; } private static void _writeText(ServletResponse rsp, JspWriter out, String block, byte[] blockBytes) throws IOException { if (!_WL_ENCODED_BYTES_OK || _hasEncodingChanged(rsp)) { out.print(block); } else { ((weblogic.servlet.jsp.ByteWriter)out).write(blockBytes, block); } } private static boolean _hasEncodingChanged(ServletResponse rsp) { if (_WL_ORIGINAL_ENCODING.equals(rsp.getCharacterEncoding())) { return false; } return true; } private static boolean _WL_ENCODED_BYTES_OK = true; private static final String _WL_ORIGINAL_ENCODING = "GB2312"; private static byte[] _getBytes(String block) { try { return block.getBytes(_WL_ORIGINAL_ENCODING); } catch (java.io.UnsupportedEncodingException u) { _WL_ENCODED_BYTES_OK = false; } return null; } private final static String _wl_block0 = "\r\n"; private final static byte[] _wl_block0Bytes = _getBytes(_wl_block0); private final static String _wl_block1 = "\r\n"; private final static byte[] _wl_block1Bytes = _getBytes(_wl_block1); private final static String _wl_block2 = "\r\n<center>\r\n <table width=\"770\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n <tr>\r\n <td>\r\n <img src=\"images/top.gif\" width=\"770\" height=\"114\" alt=\"\">\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>\r\n <center>\r\n <table width=\"770\" border=\"0\" align=\"center\" cellpadding=\"1\" cellspacing=\"0\">\r\n <tr>\r\n <td align=\"center\" class=\"bottomindex\">\r\n <a href=\"index.jsp\"><img src=\"images/homepage.gif\" align=\"middle\" border=\"0\" alt=\"\"></a>\r\n | <a href=class.jsp?classType=系统工具>系统工具</a>\r\n | <a href=class.jsp?classType=书籍教程>书籍教程</a>\r\n | <a href=class.jsp?classType=图形图像>图形图像</a>\r\n | <a href=class.jsp?classType=多媒体类>多媒体类</a>\r\n <script language=\"JavaScript\" type=\"text/JavaScript\">\r\nvar day=\"\";\r\nvar month=\"\";\r\nvar ampm=\"\";\r\nvar ampmhour=\"\";\r\nvar myweekday=\"\";\r\nvar year=\"\";\r\nmydate=new Date();\r\nmyweekday=mydate.getDay();\r\nmymonth=mydate.getMonth()+1;\r\nmyday= mydate.getDate();\r\nmyyear= mydate.getYear();\r\nyear=(myyear > 200) ? myyear : 1900 + myyear;\r\nif(myweekday == 0)\r\nweekday=\" 星期日 \";\r\nelse if(myweekday == 1)\r\nweekday=\" 星期一 \";\r\nelse if(myweekday == 2)\r\nweekday=\" 星期二 \";\r\nelse if(myweekday == 3)\r\nweekday=\" 星期三 \";\r\nelse if(myweekday == 4)\r\nweekday=\" 星期四 \";\r\nelse if(myweekday == 5)\r\nweekday=\" 星期五 \";\r\nelse if(myweekday == 6)\r\nweekday=\" 星期六 \";\r\ndocument.write(year+\"年\"+mymonth+\"月\"+myday+\"日 \"+weekday);\r\n</script>\r\n </td>\r\n </tr>\r\n </table>\r\n </center>\r\n </td>\r\n </tr>\r\n </table>\r\n</center>\r\n"; private final static byte[] _wl_block2Bytes = _getBytes(_wl_block2); private final static String _wl_block3 = "\r\n<html>\r\n<head>\r\n<title>\r\nsearchResult\r\n</title>\r\n<LINK href=\"css.css\" type=\"text/css\" rel=\"stylesheet\">\r\n</head>\r\n<body bgcolor=\"#ffffff\">\r\n<center>\r\n<table width=\"400\">\r\n<tr>\r\n<td style=\"background-image:url(\'images/soft2.jpg\');height=\'30\';\"> 搜索结果</td>\r\n</tr>\r\n"; private final static byte[] _wl_block3Bytes = _getBytes(_wl_block3); private final static String _wl_block4 = "\r\n <tr>\r\n <td>\r\n \r\n <a href=\"software.jsp?softwareName="; private final static byte[] _wl_block4Bytes = _getBytes(_wl_block4); private final static String _wl_block5 = "\">"; private final static byte[] _wl_block5Bytes = _getBytes(_wl_block5); private final static String _wl_block6 = "</a>\r\n </td>\r\n </tr>\r\n "; private final static byte[] _wl_block6Bytes = _getBytes(_wl_block6); private final static String _wl_block7 = "\r\n</table>\r\n</center>\r\n<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>\r\n</body>\r\n</html>\r\n"; private final static byte[] _wl_block7Bytes = _getBytes(_wl_block7); private final static String _wl_block8 = "\r\n<center>\r\n<table style=\"background-image:url(\'images/foot.jpg\');height=60\" width=\"770\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n <tr>\r\n <td align=\"center\">版权所有:软件0412 <font color=\"red\">60</font>,<font color=\"red\">64</font> <a href=\"mailto:w_lin1986@126.com\"><img alt=\"\" src=\"images/72.gif\" /></a> </td>\r\n </tr>\r\n<tr>\r\n <td align=\"center\"><a href=\"login\">管理员登录</a></td>\r\n </tr>\r\n</table>\r\n</center>\r\n"; private final static byte[] _wl_block8Bytes = _getBytes(_wl_block8); private final static String _wl_block9 = "\r\n"; private final static byte[] _wl_block9Bytes = _getBytes(_wl_block9);
public void _jspService(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
{
// declare and set well-known variables:
javax.servlet.ServletConfig config = getServletConfig();
javax.servlet.ServletContext application = config.getServletContext();
javax.servlet.jsp.tagext.Tag _activeTag = null;
// variables for Tag extension protocol
Object page = this;
javax.servlet.jsp.JspWriter out;
javax.servlet.jsp.PageContext pageContext = javax.servlet.jsp.JspFactory.getDefaultFactory().getPageContext(this, request, response, null, true, 8192, true);
response.setHeader("Content-Type", "text/html; charset=GB2312"); out = pageContext.getOut(); JspWriter _originalOut = out;
javax.servlet.http.HttpSession session = request.getSession(true);
try { // error page try block response.setContentType("text/html; charset=GB2312"); _writeText(response, out, _wl_block0, _wl_block0Bytes); _writeText(response, out, _wl_block1, _wl_block1Bytes); //INCLUDE /top.jsp //[ /searchResult.jsp; Line: 3] _writeText(response, out, _wl_block2, _wl_block2Bytes); _writeText(response, out, _wl_block3, _wl_block3Bytes); //[ /searchResult.jsp; Line: 17] String keyword=request.getParameter("keyword"); //[ /searchResult.jsp; Line: 18] try{ //[ /searchResult.jsp; Line: 19] Context ic=new InitialContext(); //[ /searchResult.jsp; Line: 20] Object obj=ic.lookup("sessionBean"); //[ /searchResult.jsp; Line: 21] software.sessionHome home=(software.sessionHome)PortableRemoteObject.narrow(obj,software.sessionHome.class); //[ /searchResult.jsp; Line: 22] software.session b=home.create(); //[ /searchResult.jsp; Line: 23] Collection c=b.showResult(keyword); //[ /searchResult.jsp; Line: 24] Iterator i=c.iterator(); //[ /searchResult.jsp; Line: 25] while(i.hasNext()){ //[ /searchResult.jsp; Line: 26] software.softwareRemote s=(software.softwareRemote)i.next(); //[ /searchResult.jsp; Line: 27] String str=new String(s.getSoftwareName().trim().getBytes("iso8859-1"),"gb2312"); //[ /searchResult.jsp; Line: 28] //[ /searchResult.jsp; Line: 29] //[ /searchResult.jsp; Line: 29] _writeText(response, out, _wl_block4, _wl_block4Bytes); out.print(String.valueOf(str)); //[ /searchResult.jsp; Line: 35] _writeText(response, out, _wl_block5, _wl_block5Bytes); out.print(String.valueOf(str)); //[ /searchResult.jsp; Line: 35] _writeText(response, out, _wl_block6, _wl_block6Bytes); //[ /searchResult.jsp; Line: 38] } //[ /searchResult.jsp; Line: 39] }catch(Exception ex){ //[ /searchResult.jsp; Line: 40] ex.printStackTrace(); //[ /searchResult.jsp; Line: 41] } //[ /searchResult.jsp; Line: 42] //[ /searchResult.jsp; Line: 43] //[ /searchResult.jsp; Line: 43] _writeText(response, out, _wl_block7, _wl_block7Bytes); //INCLUDE /foot.jsp //[ /searchResult.jsp; Line: 49] _writeText(response, out, _wl_block8, _wl_block8Bytes); _writeText(response, out, _wl_block9, _wl_block9Bytes); } catch (Throwable __ee) { while (out != null && out != _originalOut) out = pageContext.popBody(); ((weblogic.servlet.jsp.PageContextImpl)pageContext).handlePageException((Throwable)__ee); }
//before final close brace...
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -