jsp修改删除指定数据 - Web 开发 / JavaScript
我想做一个从数据库读出数据,右边同时有一个修改和删除按钮。如何能够让我点击相应行的按钮时,能对数据库中相应的数据进行修改。修改和删除的sql我都会,就是这个按钮与指定行的数据的对应,和也面的跳转不会,能给出代码吗。谢谢。
在线等,谢谢。
我用的是sql2000,谢谢。
是每行一个修改按钮还是整个表格只有一个
fourth.jsp
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.zb.userweb.sxj.entity.Userinfos"%>
<%@page import="com.zb.userweb.sxj.services.DeleteUserService"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'fourth.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta
相关问答:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jas ......
问题描述:
例如我要显示的内容如下所示
一级目录1
一级目录1子类1
子类1
一级目录1子类2
......
最近一个项目中遇到一个问题:在原有的一套系统中(php开发)添加一些小功能(jsp开发),原来用户系统都是php开发的,我如何在jsp开发的功能中做到用户信息session同步呢? 有人是否有做过类以项目,想听听大家的看法
......
请问我的jsp为什么不能跳转,谢谢
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE html PUB ......