Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Checkbox Issue

 
Sonu Sen
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic