cannot find symbol class ParseException
807607Jan 5 2007 — edited Jan 7 2007I have this in my code how ever
DateFormat formatter = new SimpleDateFormat("ddMMyyyy");
dDateStamp = (Date)formatter.parse(dateStamp);
When I pass in say
dateStamp=safsadssad sa;
I get an error which is fine.
I can not seem to catch this error with try catch
When I use the one below it says it cannot find the symbol
When i use the Exception it still throws and error to jsp page
cannot find symbol
symbol : class ParseException
}catch(ParseException e){
symbol : class ParseException
}catch(ParseException e){
Any One know I csn trap this?
Thanks in advance