I am doing a web-application project in eclipse Java EE. Currently, my application returns all values in the database which stores personal information of employees. However, I
Pass the value of employeeID from previous Servlet to current Servlet .
Replace id:1243 with placeHolder: ? .
Then set its value ps.setInt(1,"value that you got from previous servlet");
changes to PersonalInfoOutput.java :
HttpSession session = request.getSession(false);
if(session != null) {
String employeeid = (String)session.getAttribute("employeeid");
}
to :
HttpSession session = request.getSession(false);
String employeeid="";
if(session != null) {
employeeid = (String)session.getAttribute("employeeid");
}