Why does JSP editor complain about refs to generic Map? [message #215424] |
Sun, 15 June 2008 02:52  |
Eclipse User |
|
|
|
I have a simple JSP that I'm combining a couple different elements into.
It executes fine on Tomcat, but the JSP Editor flags 16 consecutive lines
with warnings, saying:
Map is a raw type. References to generic type Map<K,V> should be
parameterized
On several of those lines, I reference the following expression:
${pageContext.request.contextPath}
It also flags that warning on two lines that are just HTML comments and
several lines that don't reference that expression.
I imagine the EL expression is referencing a map, but the warning doesn't
seem relevant here.
For completeness, here's the entire page (the first of 16 warned lines is
the second "link" tag):
---------------
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!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=UTF-8">
<title>Struts Form</title>
<link rel="stylesheet"
href=" ${pageContext.request.contextPath}/struts/css_xhtml/styles.c ss "
type="text/css">
<link rel="stylesheet" type="text/css"
href="${pageContext.request.contextPath}/style/form.css">
<!-- css -->
<link rel="stylesheet" type="text/css"
href=" ${pageContext.request.contextPath}/yui/button/assets/skins/s am/button.css ">
<link rel="stylesheet" type="text/css"
href=" ${pageContext.request.contextPath}/yui/logger/assets/skins/s am/logger.css ">
<!-- js -->
<script type="text/javascript"
src=" ${pageContext.request.contextPath}/yui/utilities/utilities.j s "></script>
<script type="text/javascript"
src=" ${pageContext.request.contextPath}/yui/button/button-debug.j s "></script>
<script type="text/javascript"
src="${pageContext.request.contextPath}/yui/json/json-debug.js "></script>
<script type="text/javascript"
src=" ${pageContext.request.contextPath}/yui/logger/logger-debug.j s "></script>
</head>
<body class="yui-skin-sam">
<h4>Enter your data</h4>
<s:form action="Form">
<s:textfield name="lastName" label="Last Name"/>
<s:textfield name="firstName" label="First Name"/>
<s:submit/>
</s:form>
</body>
</html>
----------------
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03341 seconds