user1224441
user1224441

Reputation:

Errors about text (>) in tag (<jsp:directive.page>): Invalid location of text (>) and expected '>'

I wrote a simple JSP file:

<%@ page import="java.util.*" session=”true” isErrorPage=”false”%> 
<HTML> 
<BODY> 
<h4>Welcome to the world of JSP</h4> 

This JSP uses the page directive 
</BODY> 
</HTML> 

I got error for the first line, inside Eclipse:

Multiple annotations found at this line:
    - Invalid location of text (>) in tag (<jsp:directive.page>).
    - Start tag (<jsp:directive.page>) not closed properly, expected 
     '>'.

Thanks.

Upvotes: 1

Views: 1498

Answers (1)

Mustapha Belmokhtar
Mustapha Belmokhtar

Reputation: 1219

In your tag

<%@ page import="java.util.*" session=”true” isErrorPage=”false”%>

these are not the usual double quotes, change that with

<%@ page import="java.util.*" session="true" isErrorPage="false"%>

Upvotes: 1

Related Questions