org.apache.jasper.jasperexception unable to compile class for jsp

前端 未结 2 1301
闹比i
闹比i 2021-01-24 23:48

i am getting this error when i run my jsp file, please help me to find out this.

HTTP Status 500 - Unable to compile class for JSP:

type Exception report

messa         


        
相关标签:
2条回答
  • 2021-01-25 00:30

    import date from jva.util.Date in the page imports of that JSP

    <%@page import="java.util.Date" %>
    

    or use

    fully qualified name of Date class like java.util.Date

     java.util.Date resultdate = new java.util.Date(Long.parseLong(starttime));
    

    Ambiguous between sql package Date and util Date class

    0 讨论(0)
  • 2021-01-25 00:39

    i think u imported both java.util.Date and javax.sql.Date.

    try to remove javax.sql.Date from import statement.

    0 讨论(0)
提交回复
热议问题