View Single Post
  #2 (permalink)  
Old January 18th, 2011, 12:05 PM
trexi trexi is offline
Registered User
 
Join Date: Jan 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ok. i figured it out. There was problem with sending String..

combo.jsp
Code:
...
function showEmp(nerast_value)
      {
      if(document.getElementById("nerastid").value!="-1")
      {
          xmlHttp=GetXmlHttpObject();
         
         var url="getuser.jsp";
         url=url+"?nerastid="+nerast_value;
         
         

         xmlHttp.onreadystatechange=stateChanged;
         xmlHttp.open("GET",url,true);
         xmlHttp.send(null);
...
<option value="<%=rs.getString(1)%>"><%=rs.getString(2)%></option> 
...
getuser.jsp

Code:
...
String nerastid = request.getParameter("nerastid").toString(); 
...
String query = "select * from V_TBL_NERASTY where nerastid = '"+nerastid+"'";
Reply With Quote