资源简介
我这个购物车程序可以直接在NetBeans上运行,不用修改了,当然你想增添别的功能也可以,在网上看的其他的总是要改来改去还不一定改对,这个很方便,可以用来做学期课程设计。
代码片段和文件信息
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class login_jsp extends org.apache.jasper.runtime.HttpJspbase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.Vector _jspx_dependants;
private org.glassfish.jsp.api.ResourceInjector _jspx_resourceInjector;
public object getDependants() {
return _jspx_dependants;
}
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=gb2312“);
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;
_jspx_resourceInjector = (org.glassfish.jsp.api.ResourceInjector) application.getAttribute(“com.sun.appserv.jsp.resource.injector“);
out.write(‘\r‘);
out.write(‘\n‘);
session.invalidate();
out.write(“\r\n“);
out.write(“\r\n“);
out.write(“\r\n“);
out.write(“tle>Untitled Document tle>\r\n“);
out.write(“ta http-equiv=\“Content-Type\“ content=\“text/html; charset=gb2312\“>\r\n“);
out.write(“\r\n“);
out.write(“ylesheet>\r\n“);
out.write(“\r\n“);
out.write(“\r\n“);
out.write(“\r\n“);
out.write(“ 请输入一个用户名后点击登录
\r\n“);
out.write(“
只有用户名为customer才能登录
\r\n“);
out.write(“