📄 _displaygoods.java
字号:
/*@lineinfo:filename=/displayGoods.jsp*/
/*@lineinfo:generated-code*/
import oracle.jsp.runtime.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;
import Flower.model.Goodsinfo;
import java.util.Collection;
import java.util.Iterator;
public class _displayGoods extends com.orionserver.http.OrionHttpJspPage {
public final String _globalsClassName = null;
// ** Begin Declarations
// ** End Declarations
public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {
response.setContentType( "text/html;charset=GBK");
/* set up the intrinsic variables using the pageContext goober:
** session = HttpSession
** application = ServletContext
** out = JspWriter
** page = this
** config = ServletConfig
** all session/app beans declared in globals.jsa
*/
PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);
// Note: this is not emitted if the session directive == false
HttpSession session = pageContext.getSession();
if (pageContext.getAttribute(OracleJspRuntime.JSP_REQUEST_REDIRECTED, PageContext.REQUEST_SCOPE) != null) {
pageContext.setAttribute(OracleJspRuntime.JSP_PAGE_DONTNOTIFY, "true", PageContext.PAGE_SCOPE);
JspFactory.getDefaultFactory().releasePageContext(pageContext);
return;
}
int __jsp_tag_starteval;
ServletContext application = pageContext.getServletContext();
JspWriter out = pageContext.getOut();
_displayGoods page = this;
ServletConfig config = pageContext.getServletConfig();
try {
// global beans
// end global beans
out.write(__oracle_jsp_text[0]);
/*@lineinfo:user-code*//*@lineinfo:2^1*/ if(session.getAttribute("midentity")==null) { // request.setAttribute("result","您没有权力进入此页"); // getServletContext().getRequestDispatcher("display.jsp").forward(request,response); response.sendRedirect("FlowerIndex.jsp"); }
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[1]);
/*@lineinfo:user-code*//*@lineinfo:35^15*/ Iterator it=null; Goodsinfo gif=null; Collection c=null; c=(Collection)request.getAttribute("goods"); it=(Iterator)c.iterator(); while(it.hasNext()) { gif=(Goodsinfo)it.next();
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[2]);
/*@lineinfo:user-code*//*@lineinfo:46^21*/ out.print(gif.getGoodsid());
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[3]);
/*@lineinfo:user-code*//*@lineinfo:47^21*/ out.print(gif.getFlowerid());
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[4]);
/*@lineinfo:user-code*//*@lineinfo:48^21*/ out.print(gif.getRetailprice());
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[5]);
/*@lineinfo:user-code*//*@lineinfo:49^21*/ out.print(gif.getCostprice());
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[6]);
/*@lineinfo:user-code*//*@lineinfo:50^21*/ out.print(gif.getSupid());
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[7]);
/*@lineinfo:user-code*//*@lineinfo:51^21*/ out.print(gif.getAttr());
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[8]);
/*@lineinfo:user-code*//*@lineinfo:52^58*/ out.print(gif.getGoodsid());
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[9]);
/*@lineinfo:user-code*//*@lineinfo:52^90*/ out.print(gif.getFlowerid());
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[10]);
/*@lineinfo:user-code*//*@lineinfo:52^120*/ out.print(gif.getSupid());
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[11]);
/*@lineinfo:user-code*//*@lineinfo:53^65*/ out.print(gif.getGoodsid());
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[12]);
/*@lineinfo:user-code*//*@lineinfo:55^15*/ }
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[13]);
out.write(__oracle_jsp_text[14]);
out.write(__oracle_jsp_text[15]);
out.write(__oracle_jsp_text[16]);
out.write(__oracle_jsp_text[17]);
}
catch( Throwable e) {
try {
if (out != null) out.clear();
}
catch( Exception clearException) {
}
pageContext.handlePageException( e);
}
finally {
OracleJspRuntime.extraHandlePCFinally(pageContext,false);
JspFactory.getDefaultFactory().releasePageContext(pageContext);
}
}
private static final char __oracle_jsp_text[][]=new char[18][];
static {
try {
__oracle_jsp_text[0] =
"\n".toCharArray();
__oracle_jsp_text[1] =
"\n<html>\n <head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=GBK\">\n <title>untitled</title>\n <link href=\"css/jdeveloper.css\" rel=\"stylesheet\" media=\"screen\"/>\n <link href=\"css/oracle.css\" rel=\"stylesheet\" media=\"screen\"/>\n <link href=\"css/blaf.css\" rel=\"stylesheet\" media=\"screen\"/>\n </head>\n <body>\n <table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"578\" align=\"left\">\n <tr>\n <td>\n <H1 align=\"center\">商品信息查询结果</H1>\n <form>\n <table cellspacing=\"0\" cellpadding=\"0\" border=\"1\" width=\"80%\" align=\"center\">\n <tr>\n <td>商品编号</td>\n <td>花卉编号</td>\n <td>销售价</td>\n <td>成本价</td>\n <td>供应商</td>\n <td>属性</td>\n <td> </td>\n <td> </td>\n </tr>\n ".toCharArray();
__oracle_jsp_text[2] =
"\n <tr>\n <td>".toCharArray();
__oracle_jsp_text[3] =
"</td>\n <td>".toCharArray();
__oracle_jsp_text[4] =
"</td>\n <td>".toCharArray();
__oracle_jsp_text[5] =
"</td>\n <td>".toCharArray();
__oracle_jsp_text[6] =
"</td>\n <td>".toCharArray();
__oracle_jsp_text[7] =
"</td>\n <td>".toCharArray();
__oracle_jsp_text[8] =
"</td>\n <td><a href=Goodsinfoupdate.jsp?goodsid1=".toCharArray();
__oracle_jsp_text[9] =
"&flowerid1=".toCharArray();
__oracle_jsp_text[10] =
"&supid1=".toCharArray();
__oracle_jsp_text[11] =
">修改</a></td>\n <td><a href=goodsinfoservlet?action=del&goodsid=".toCharArray();
__oracle_jsp_text[12] =
">删除</a></td>\n </tr>\n ".toCharArray();
__oracle_jsp_text[13] =
"\n </table>\n <P>\n ".toCharArray();
__oracle_jsp_text[14] =
"\n ".toCharArray();
__oracle_jsp_text[15] =
"\n ".toCharArray();
__oracle_jsp_text[16] =
"\n ".toCharArray();
__oracle_jsp_text[17] =
"\n <a href=\"ManagerMain.jsp\">返回管理员主页</a>\n </P>\n </form>\n <P> </P>\n <P> </P>\n <P> </P>\n </td>\n </tr>\n </table>\n </body>\n</html>\n".toCharArray();
}
catch (Throwable th) {
System.err.println(th);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -