Originally posted by sai prasanna:
If that wasn't the problem, post your code so we can take a look.
[ September 03, 2005: Message edited by: Ben Souther ]<hr></blockquote>[/QB]
Thanks Ben
I even tried with this code and iam getting IllegalStateException. My code is
i used
jsp aram
<% if("Update".equalsIgnoreCase(action)){
message = "Vehicle/Insurance Taxes Updation ";
if(vehicle!=null && insuranceTax!=null &&
vehicle.getVehicleNo()!=null &&
vb.upDateVehicle(vehicle) &&
itb.updateInsuranceTaxes(insuranceTax)){
flag=false;
try{
response.sendRedirect("/sivashakthi/transport/edit/vehicleMasterEdit.jsp?action="+action+"&count=1");
}catch(Exception ise){
ise.printStackTrace();
}
}else{
response.sendRedirect("/sivashakthi/general/updateError.jsp?path="+request.getRequestURI()+"&message="+message);
}
}else if("Delete".equalsIgnoreCase(action)){
message = "Vehicle/Insurance Taxes Deletion ";
if(vehicle!=null && insuranceTax!=null && vehicle.getVehicleNo()!=null && vb.deleteVehicle(vehicle) && itb.deleteInsurance(insuranceTax)){
flag=false;
try{
response.sendRedirect("/sivashakthi/transport/edit/vehicleMasterEdit.jsp?count=1");
}catch(IllegalStateException ise){
ise.printStackTrace();
}
}else{
try{
//if(!response.isCommitted())
//System.out.println("un committed");
//else
//System.out.println("committed");
//or
//response.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY);
//response.setHeader("Location","/sivashakthi/general/editError.jsp?path="+request.getRequestURI()+"&message="+message");
if(flag){
response.sendRedirect("/sivashakthi/general/editError.jsp?path="+request.getRequestURI()+"&message="+message);
return;
}
}catch(Exception e){
e.printStackTrace();
}
}
}
}else{
response.sendRedirect("/sivashakthi/general/sorry.jsp");
}
%>