useclassUpdate.jsp
资源名称:shop.rar [点击查看]
上传用户:yatiankong
上传日期:2014-05-16
资源大小:5604k
文件大小:1k
源码类别:
Applet
开发平台:
Java
- <%@ page contentType="text/html; charset=GBK"%>
- <%@ page import="java.sql.*"%>
- <% request.setCharacterEncoding("GB2312");%>
- <jsp:useBean id="useclassBean" class="MyFly.Bean.useclassBean" scope="request"/>
- <body bgcolor="#799ae1">
- <%
- String id=request.getParameter("classid");
- String name=request.getParameter("name");
- String content=request.getParameter("content");
- String char1=request.getParameter("character");
- //System.out.print(char1);
- useclassBean.setUseclassID(Integer.parseInt(id));
- useclassBean.setUseclassName(name);
- useclassBean.setUseclassInfo(content);
- useclassBean.setUseclasscharacterID(Integer.parseInt(char1));
- if(useclassBean.updateUse()==0)
- {
- out.println("<Script language=JavaScript>alert('更新出错');javascript:history.back();</Script>");
- }
- else
- {
- response.sendRedirect("useclassView.jsp");
- }
- %>
- </body>