Question: how to calculate difference between two dates in jsp?
Answer: Start by looking at the SimpleDateFormat class, which has methods to parse a string into a Date object. Then you can work with the Date methods to calculate the difference in days. Then do it in the servlet, or one of the classes that it instantiates.