?? updatecart_0005fdo_0002ejsp_jsp.java
字號:
package shop;
import test.models.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
public class updateCart_0005fdo_0002ejsp_jsp extends HttpJspBase {
// begin [file="/shop/updateCart_do.jsp";from=(2,0);to=(2,65)]
// end
static {
}
public updateCart_0005fdo_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; charset=gb2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
"", true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
// HTML // begin [file="/shop/updateCart_do.jsp";from=(0,67);to=(1,0)]
out.write("\r\n");
// end
// HTML // begin [file="/shop/updateCart_do.jsp";from=(1,33);to=(2,0)]
out.write("\r\n");
// end
// begin [file="/shop/updateCart_do.jsp";from=(2,0);to=(2,65)]
test.models.Cart cart = null;
boolean _jspx_specialcart = false;
synchronized (session) {
cart= (test.models.Cart)
pageContext.getAttribute("cart",PageContext.SESSION_SCOPE);
if ( cart == null ) {
_jspx_specialcart = true;
try {
cart = (test.models.Cart) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "test.models.Cart");
} catch (ClassNotFoundException exc) {
throw new InstantiationException(exc.getMessage());
} catch (Exception exc) {
throw new ServletException (" Cannot create bean of class "+"test.models.Cart", exc);
}
pageContext.setAttribute("cart", cart, PageContext.SESSION_SCOPE);
}
}
if(_jspx_specialcart == true) {
// end
// begin [file="/shop/updateCart_do.jsp";from=(2,0);to=(2,65)]
}
// end
// HTML // begin [file="/shop/updateCart_do.jsp";from=(2,65);to=(3,0)]
out.write("\r\n");
// end
// begin [file="/shop/updateCart_do.jsp";from=(3,2);to=(8,0)]
String itemId=(String)request.getParameter("itemid");
int quantity=Integer.parseInt((String)request.getParameter("quantity"));
cart.setQuantityByItemId(itemId,quantity);
response.sendRedirect("viewCart.jsp");
// end
// HTML // begin [file="/shop/updateCart_do.jsp";from=(8,2);to=(10,0)]
out.write("\r\n\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 + -