0

We have using JSP page with JDK1.6 with Eclipse indigo and server Jboss 4.2. My JSP Page is :

<%@ page import="org.java.util.ArrayList" %>
<%!ArrayList<IssueRequestType> requestType_list = new ArrayList<IssueRequestType>();

When we compile jsp page,we have getting error like

"The type ArrayList is not generic; it cannot be parameterized with arguments".

Please help me...

1
  • 1
    Its import="java.util.ArrayList" Commented Feb 19, 2016 at 13:22

1 Answer 1

3

Change

<%@ page import="org.java.util.ArrayList" %>

to

<%@ page import="java.util.ArrayList" %>
<%!java.util.ArrayList<IssueRequestType> requestType_list = 
                                         new java.util.ArrayList<IssueRequestType>();
Sign up to request clarification or add additional context in comments.

7 Comments

After changing same issue.thank you for helping.<%@ page import="java.util.ArrayList" %>
Targeting JDK version should be greater than or equal to 1.5
Now I am using JDK 1.6.
Are you using any other third party ArrayList? If yes then use java.util.ArrayList<IssueRequestType>
No sir,i am using actual arrayList.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.