cours0708/P51/apache-tomcat-6.0.14/webapps/ecommerce/work/org/apache/jsp/infos_jsp.java

160 lines
7.7 KiB
Java
Raw Blame History

package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class infos_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html;charset=UTF-8");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\r\n");
out.write(" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n");
out.write("\r\n");
out.write("<html>\r\n");
out.write(" <head>\r\n");
out.write(" <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\r\n");
out.write("\t\t<link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\" />\r\n");
out.write(" <title>Contenu du Panier</title>\r\n");
out.write(" </head>\r\n");
out.write(" <body>\r\n");
com.articles.Article art = null;
synchronized (request) {
art = (com.articles.Article) _jspx_page_context.getAttribute("art", PageContext.REQUEST_SCOPE);
if (art == null){
art = new com.articles.Article();
_jspx_page_context.setAttribute("art", art, PageContext.REQUEST_SCOPE);
}
}
out.write("\r\n");
out.write(" \r\n");
out.write("\t<h2>Infos sur l'article</h2>\r\n");
out.write(" <table border=\"0\" width=\"100%\">\r\n");
out.write(" <thead>\r\n");
out.write(" <tr>\r\n");
out.write(" <th>Aper<65>u</th>\r\n");
out.write(" <th>Propri<72>t<EFBFBD>s</th>\r\n");
out.write(" </tr>\r\n");
out.write(" </thead>\r\n");
out.write(" <tbody>\r\n");
out.write(" <tr>\r\n");
out.write(" <td>\r\n");
out.write(" <img src=\"./img/");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${artRef.photo}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("\" width=\"50\" height=\"50\" alt=\"image\"/>\r\n");
out.write(" </td>\r\n");
out.write(" <td>\r\n");
out.write(" <table border=\"0\" width=\"100%\" height=\"100%\">\r\n");
out.write(" <tbody>\r\n");
out.write(" <tr>\r\n");
out.write(" <td>R&eacute;f&eacute;rence :\r\n");
out.write(" ");
out.write(org.apache.jasper.runtime.JspRuntimeLibrary.toString((((com.articles.Article)_jspx_page_context.findAttribute("art")).getRef())));
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td>Marque : \r\n");
out.write(" ");
out.write(org.apache.jasper.runtime.JspRuntimeLibrary.toString((((com.articles.Article)_jspx_page_context.findAttribute("art")).getMarque())));
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td>Mod&egrave;le : \r\n");
out.write(" ");
out.write(org.apache.jasper.runtime.JspRuntimeLibrary.toString((((com.articles.Article)_jspx_page_context.findAttribute("art")).getModele())));
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td>Description : \r\n");
out.write(" ");
out.write(org.apache.jasper.runtime.JspRuntimeLibrary.toString((((com.articles.Article)_jspx_page_context.findAttribute("art")).getDescription())));
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td>Prix : \r\n");
out.write(" ");
out.write(org.apache.jasper.runtime.JspRuntimeLibrary.toString((((com.articles.Article)_jspx_page_context.findAttribute("art")).getPrix())));
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write(" </tbody>\r\n");
out.write(" </table>\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </tbody>\r\n");
out.write(" </table>\r\n");
out.write("\t\t<hr width=\"100%\" size=\"1\">\r\n");
out.write("\t\t<form method=\"post\" action=\"./Panier?action=add\">\r\n");
out.write("\t\t\t<table>\r\n");
out.write("\t\t\t\t<tr>\r\n");
out.write("\t\t\t\t\t<td><input type=\"submit\" value=\"");
out.write(org.apache.jasper.runtime.JspRuntimeLibrary.toString((((com.articles.Article)_jspx_page_context.findAttribute("art")).getRef())));
out.write("\"></td>\r\n");
out.write("\t\t\t\t\t<td>Qt<51></td>\r\n");
out.write("\t\t\t\t\t<td>\r\n");
out.write("\t\t\t\t\t<input type=\"hidden\" value=\"Acheter\">\r\n");
out.write("\t\t\t\t\t<input type=\"text\" maxLength=\"3\" size=\"3\" id=\"txtQte\" name=\"txtQte\" /></td>\r\n");
out.write("\t\t\t\t\t</td>\r\n");
out.write("\t\t\t\t</tr>\r\n");
out.write("\t\t\t</table>\r\n");
out.write("\t\t</form>\r\n");
out.write("\t</body>\r\n");
out.write("</html>\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
}