• Post Reply Bookmark Topic Watch Topic
  • New Topic

browser not refreshed  RSS feed

 
venkat raghavan .R
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have created an application like mail....i have a check box and if i check it and delete it its deleted from the database but the change is not reflected in the browser....some one plz help

venkat
 
Makarand Parab
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Venkat
After you delete the mails by selecting the checkboxs, are you refreshing the page.
Check the box -> submit the page -> servlet[controller] -> business logic[update db] -> Make a new select query[store value in collection] -> back to controller -> jsp page.

This will give you the updated query.

Have you set conn.commit(false)?

let me know

Regards
Makarand Parab
 
Sravan Kumar
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
displayResult.jsp

<%
boolean isChecked = true; // or false. You get this from the request
// parameter or from the DB, after the updation is done.
if(isChecked)
{
%>
<input type="checkbox" name="Interest" value="BasketBall" checked> BasketBall </input>
<%
}
else
{
%>
<input type="checkbox" name="Interest" value="BasketBall"> BasketBall </input>
<%
}
%>
[ October 07, 2005: Message edited by: Sravan Kumar ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!