•
•
•
•
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
![]() |
•
•
Join Date: Feb 2006
Posts: 9
Reputation:
Rep Power: 0
Solved Threads: 0
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
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
![]() |
•
•
•
•
•
•
•
•
DaniWeb JSP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Can a function return 2 values? (C)
- vBulletin mod_rewrite (PHP)
- Starting With Java (Java)
- how to edit two starttime & end time into single start time and end time (JSP)
- Elapsed time for retriving data from database (Visual Basic 4 / 5 / 6)
- 6 art domains , art-picasso.com art-monet.com art-dali.com art-matisse.com ... [ebay] (Domain Names for Sale)
- my PC time is off 20 minutes, have correct time zone? (Windows 9x / Me)
Other Threads in the JSP Forum
- Previous Thread: servlet chaining
- Next Thread: need help in installing j2ee package


Linear Mode