I have tried this one(designservlet.java), but in this line(Date activityDate = (Date) reFormat.parse(request.getParameter("startDate"));)
, it gives unhandled ParseException use try catch, how to handle this?
this is
jsp
and these are the console lines
Jan 23, 2016 4:33:12 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for
servlet [com.jw.designservlet] in context with path [/jewellery] threw exception [Servlet execution threw an exception] with root cause
java.lang.Error: Unresolved compilation problem:
Unhandled exception type ParseException
at com.jw.designservlet.doPost(designservlet.java:69)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)