Hi Tina,
I had tried to use the jstl tag for looping a list.
this is my code
1
2List<Employee> employeeList = DepartmentLocalServiceUtil.getDepartmentEmployees(departmentId);
3<c:forEach var="myValue" items="${employeeList}" >
4<c:out value="${myValue.employeeName}"></c:out>
5</c:forEach>
And i have include the c.tld and jstl.jar in liferay-plugin-package.properties but its not working ,
Below is the error i facing
1
213:13:57,455 ERROR [render_portlet_jsp:154] org.apache.jasper.JasperException: /view.jsp (line: 42, column: 0) According to TLD or attribute directive
3in tag file, attribute items does not accept any expressions
4 at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:42)
5 at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:408)
6 at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:149)
7 at org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1235)
8 at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:870)
9 at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1539)
10 at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2376)
11 at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2428)
12 at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2434)
13 at org.apache.jasper.compiler.Node$Root.accept(Node.java:475)
14 at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2376)
15 at org.apache.jasper.compiler.Validator.validateExDirectives(Validator.java:1790)
16 at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:217)
17 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:373)
18 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)
19 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)
20 at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:646)
21 at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
22 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
23 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
Its highly appreciable if anyone help to solve this issue.
Regards,
Rizwan