File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Checkbox Issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Checkbox Issue" Watch "Checkbox Issue" New topic

Checkbox Issue

Sonu Sen

Joined: Jun 03, 2009
Posts: 17
Hi everyone,

I am developing Hotel Management System, which is only JSP,Hibernate for connectivity and mysql for backend.

in my one jsp Room Reservation page i have a list of checkboxes which is dynamically created from the Facility Table.In this page i am selcting room and checkboxes etc & save and that all data are display in the table format on the same page from the database and in this table Room No has a hyperlink for edit ,this thing is working fine..

Now my problem is ... Suppose i am clicking on the Room No. then all the checkbox which selected for a perticular room are selected automatically..Suppose an Example, Room No 1 has a facility TV and AC, Now when i click the Room No in the Table which is in jsp page then all the data like Room No, Rate are filled automatically in the particular textboxes and also checkboxes are automatically selected , the textboxes are filled but checkboxes are not selected ,,So how it is do??? it is urgrnt plzzzzz

I am also using Servlet and bean files

My database structure is....

Facility table includes..

Facility_Id Name Description

1 TV It is Color TV
2 AC It is AC

Room Table

Room_Id Room_No Rate

1 001 1000
2 100 2000

RoomFacility table

Room_Id Facility_Id

1 1
1 2
I agree. Here's the link:
subject: Checkbox Issue
It's not a secret anymore!