Current File : /home/obabain/ms_obaba_in/updateFiscalTax.jsp |
<%@include file="master.jsp" %>
<%@include file="Connection.jsp" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%><%@ page language="java" import="javax.sql.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<%try{
String id=request.getParameter("f_id");
System.out.println(id);
int no=Integer.parseInt(id);
String f_lable=request.getParameter("f_lable");
System.out.println(f_lable);
String f_project=request.getParameter("f_project");
String f_Eoperiod=request.getParameter("f_Eoperiod");
String f_dDate=request.getParameter("f_dDate");
String f_paytype=request.getParameter("f_paytype");
String f_account=request.getParameter("f_account");
Statement st=con.createStatement();
/* st.executeUpdate("update fiscalyear set f_Ystart='"+fystart+"',f_Yend='"+fyend+"',f_year='"+fyear+"' where f_id='"+no+"'");
*/
st.executeUpdate("update fiscal_tax set f_lable='"+f_lable+"',f_project='"+f_project+"',f_Eoperiod='"+f_Eoperiod+"',f_dDate='"+f_dDate+"',f_paytype='"+f_paytype+"',f_account='"+f_account+"' where f_id='"+no+"'");
/* response.sendRedirect("ViewTax.jsp"); */
}
catch(Exception e){
}
%>
</body>
</html>