Skip to content
Advertisement

An exception occurred processing JSP page, array list

I’m not able to figure out this problem.

My error:

org.apache.jasper.JasperException: An exception occurred processing JSP page /index.jsp at line 28

JavaScript

java class:

JavaScript

jsp:

JavaScript
JavaScript

I’m not sure what I did wrong, but I think that it is something about the definition of the bean.

I appreciate every attempt to help!

Advertisement

Answer

Here’s what I did to get your app running.

FolderStructure(image of folder structure) ApplicationExample(App running example)

Create 2 new Java Packages

(1)Servlet (2)lists

add 2 classes to lists (1)Visit.java (2)VisitListVariables.java add 1 class to Servlet (1)Servlet.java

Inside Visit.java

JavaScript

Inside VisitListVariables.java

JavaScript

Inside Servlet.java

JavaScript

Inside jsp I named test.jsp

JavaScript

Web.xml (normally you would have an index page with a link <a href='/Servlet'>Visits</a> and that would point to your servlet, but for testing you can type in the servlet into url //localhost:8080/ProjectName/Servlet)

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement