This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I M NOT ABLE TO DEFINE VARIABLES IN JSP. I DEFINED USERTYPE/DESC BUT I M NOT ABLE ACCESS RESULTSET INTO THESE VARIABLES. the code is as under <%@ page language="java" session="true" import="java.sql.*" errorPage="err.jsp"%> <%@ page import="java.io.*"%> <%@ page import="java.util.*"%> <%@ page import="javax.servlet.*"%> <%@ page import="javax.servlet.http.*"%>
<%! int UserTypeId; int UserType; String Desc; %> <html> <html><head><title>Update User</title></head> <body > <b><h2><center>Update User</center></h2>
You present an awful lot of code but you don't say what happens. Does it throw an exception, fail to compile, get an illegal value??? Many people prefer to put code like this into a Javabean that can be tested separately. The JSP environment is difficult to debug. Bill