954,190 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Inserting table row values generated dynamically into database using JSP

I have a table within that i update particular cell and want to store the update value into table after clicking save button My page is JSP page

sonawane.prakas
Newbie Poster
2 posts since Nov 2006
Reputation Points: 10
Solved Threads: 0
 

The below program is for changing thw values in the database using jsp
<%@ page contentType="text/html" %>
<%@ page session="true" %>
<%@ page language="java" %>
<%@ page autoFlush="true" import="com.hurix.mhlncms.*, java.util.*"%>
<%@ page import="java.util.*,java.io.*"%>

<%
mis.setHurixDbconnection(hdbc);

String pmsempid = request.getParameter("pmsempid");

Vector insertcom = new Vector(); //fetch the values from key.jsp file

insertcom.addElement(request.getParameter("pmsempdesignation"));
insertcom.addElement(request.getParameter("pmsempdepartment"));
insertcom.addElement(request.getParameter("pmsemppraticearea"));
insertcom.addElement(request.getParameter("pmsemplevel"));
insertcom.addElement(request.getParameter("pmsempband"));
insertcom.addElement(request.getParameter("pmsempjoptype"));
int status = mis.updateRecord(insertcom,pmsempid);

%>

and name this program and call this program in the main page by giving

ckech this program and leave a comment.

hidash_in
Junior Poster in Training
86 posts since Oct 2007
Reputation Points: 1
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You