java - Multiple annotations found at this line: in jsp code -


<%@ page language="java" contenttype="text/html; charset=iso-8859-1"     pageencoding="iso-8859-1"%>  <!doctype html public "-//w3c//dtd html 4.01 transitional//en"     "http://www.w3.org/tr/html4/loose.dtd"> <html>     <head>         <meta http-equiv="content-type" content="text/html; charset=euc-kr">         <title> :: employee list :: </title>     </head>     <body>         <table border=1>             <thead>                 <tr>                     <th>id</th>                     <th>name</th>                     <th>dob</th>                     <th>salary</th>                     <th>active</th>                     <th colspan=2>action</th>                 </tr>             </thead>             <tbody> <!-- warnings start here unknown tag... -->              <c:foreach items="${employees}" var="employee">                 <tr>                     <td><c:out value="${employee.employeeid}" /></td>                     <td><c:out value="${employee.employeename}" /></td>                      <td><fmt:formatdate pattern="yyyy-mmm-dd" value="${employee.dob}" /></td>                     <td><c:out value="${employee.salary}" /></td>                     <td><c:out value="${employee.active}" /></td>                     <td><a href="employeeservlet?action=edit&empid=<c:out value="${employee.employeeid}"/>">update</a></td>                     <td><a href="employeeservlet?action=delete&empid=<c:out value="${employee.employeeid}"/>">delete</a></td>                 </tr>             </c:foreach>             </tbody>         </table>         <p><a href="employeeservlet?action=insert">add employee</a></p>     </body> </html> 

make sure include required jars in build path, , important missing import of jstl core taglib in jsp document, add following:

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 

for further information take @ tutorial:


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -