User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 426,358 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,446 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 1616 | Replies: 0
Reply
Join Date: Feb 2006
Posts: 9
Reputation: k_satish0101 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
k_satish0101 k_satish0101 is offline Offline
Newbie Poster

problem in Start time and end time reservation

  #1  
Apr 10th, 2006
my application is to reserv a resourse by entering start time and end time before reserving i need to check the availability in the database

My problem is (for eg)i 'm requesting reserving by entering startime as 10.00 and end time as 14.00 on a particular day

if they had already reserved in Database with 11.00 to 16.00 on the same day I should not allow the user to reserve

i dont know how to solve this problem but i tried with some way it does't give solution for my problem


if(dbDate.equals(rs.getString(2)))
{
if((stime1 >= rs.getDouble(3))||(etime1 <= rs.getDouble(4)))
{
msg = "Scheduled time is already exist try for different timing";
request.setAttribute("errmsg",msg);
pageContext.forward("schedule.jsp");
}
}
}
else
{
insert into database

}





Plz help thank u in advance
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JSP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JSP Forum

All times are GMT -4. The time now is 12:12 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC