• Post Reply Bookmark Topic Watch Topic
  • New Topic

number of rooms available is not showing on the jsp page

 
Rituparna Duttagupta
Ranch Hand
Posts: 55
Firefox Browser Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,
I have this page which is hit when the user clicks on the "Check Availability" button on the booking page, it is to check whether the rooms are available and then print the number of the available rooms depending on the room type, for which i have this file
chkRoomsBean.java

which i call in the chkAvailability.jsp

but the line is not getting displayed at all.
it's just showing Rooms Available. Click here to Book Now.
Why is this happenning?
 
Goutam Chowdhury
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,


Not printing means


This condition does not satisfied........

It can be possible
when flag is false...

That can be possible when
1>There is now data for this room type
2>It not then

This condition does not satisfied
3>Otherwise there is some exception

My suggestion is put log in each condition ....print the value of all inputs


Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!