| | |
problem in Start time and end time reservation
Please support our JSP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Feb 2006
Posts: 9
Reputation:
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
![]() |
Similar Threads
- 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 95 / 98 / Me)
Other Threads in the JSP Forum
- Previous Thread: servlet chaining
- Next Thread: need help in installing j2ee package
| Thread Tools | Search this Thread |
apache backbutton combobox connection database development directorystructure dynamicpagetitles eclipse frames glassfish ie8 imagetodatabse imageupload integer internet java javaee javascript jsf jsp jsppagetitles levels mvc2 mvcmodel2 network parameters passing ping printinserverinsteadofclient redirect request.getparameter response servlet servletdopost()readxml sessions software ssl state_saving_method stocks sun tomcat tutorial update video web





