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

code is nopt updating the database as given below



<%

SessionObject sessObj= (SessionObject)request.getSession(false).getValue("com.MindShaper.ClassTeacher.VS.SessionObject");
if(sessObj == null) {
String errMsg = "Your Session Has Been Deactivated";
errMsg = MemoryTables.removeSpaces(errMsg);
response.sendRedirect("/servlets/ClassTeacher.GetLoginData?errMsg=" + errMsg);
return;
}
Displayname a= new Displayname();
int Id=RequestHelper.getInt(request,"Id",0);
String act = RequestHelper.getString(request,"act","");
String fname = "";
String lname ="";
String class1="";

if(act.equalsIgnoreCase("edit"))
{
a = Displayname.getbyId(Id);
fname=a.getFirstname();
lname = a.getLastname();
class1=a.getClass1();

}

%>



Type your first name:


Type your last name:


Type your Class:

mrityunjay22
Newbie Poster
19 posts since Oct 2007
Reputation Points: 10
Solved Threads: 0
 

Error messages and stack traces would help.

masijade
Industrious Poster
Moderator
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
 

there is no error messages and i dont know how to code trace plz help me i need it urgently

mrityunjay22
Newbie Poster
19 posts since Oct 2007
Reputation Points: 10
Solved Threads: 0
 

I'm sorry, but that says it all.

The application server you are using to server these pages has a log. The errors should be found there. And I said nothing about a "code trace". I said a "stack trace", these should also be in the log file, probably directly after the error message, as long as the application server is not configure to prevent them.

masijade
Industrious Poster
Moderator
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
 

thank u problem solved

mrityunjay22
Newbie Poster
19 posts since Oct 2007
Reputation Points: 10
Solved Threads: 0
 

what includes J2EE means whats the specification for j@EE does it include EJB and STRUTS

mrityunjay22
Newbie Poster
19 posts since Oct 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You