In my web app, I have a page getPatientDetails.jsp.
In this page i am getting patient information and editing is also allowed in this page.
Now suppose i am have edited a Patient named X something lets say height=100.
Now when i try to edit another patient there also i am getting the height value as 100.
Now suppose if i make edit the getPatientDetails.jsp(like writing anything lets say hi) then i am getting proper information.
I do not know how to solve it.
thought there is some cache problem so i use to call getPatientDetials.jsp?+new Random().nextLong())
But the problem is still the same
What you posted is already way, way too much. I can't imagine anyone wanting to try and make sense of 3000 lines of code. There may be a passing chance if you delete the 90% of it that are not relevant, but even then it's a lot to ask of people. You may want to become familiar with the concept of an SSCCE (that's a link).
From a cursory look at the code, it seems that it is wide open to SQL injection attacks. And it seems to deal with medical data, where security is paramount. With all due respect, but if that is correct, then it is unacceptably bad practice (not to mention the bad design of a 2000 line JSP, or of mixing Java code in JSPs). Please get someone more experienced involved before you put a system in place that is not secure.
see i have a link editpatient which calls editpatient.jsp
editpatient.jsp includes patientlist.jsp.
I am using ajax call for searching (like acording to lastname,firstname,city)
this is the way i am calling getpatientlist.jsp
<form action="getPatientDetails.jsp?<%=new Random().nextLong() %>"><input type="hidden" name="hidden" value="<%=count%>"/><input type="submit" value="edit" style="color: #fff;background:#4d90fe" ></form>
in all the pages
i am using this
Ulf Dittmer wrote:I can't imagine anyone wanting to try and make sense of 3000 lines of code. There may be a passing chance if you delete the 90% of it that are not relevant, but even then it's a lot to ask of people. You may want to become familiar with the concept of an SSCCE (that's a link).
I'm sure glad that he's gone. Now I can read this tiny ad in peace!
a bit of art, as a gift, that will fit in a stocking