Discussion Locked

problem with jsp:directive.page

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I wrote a simple code like that;

<%! int a=6;%>
<% out.println(a); %>

here I've used xml tag for page directive, when i run this jsp file, the generated .java file does not contain import for java.io and java.net packages. I am running tomcat 4.0.1 both on windows and linux. this problem is not happening with <%@ %> tag. what may be the problem with xml style tag?

5 replies

by jay eckles

I don't know the answer to the problem, but I'm curious enough to ask:
What's wrong with <%@import...>?

Jay Eckles

This discussion is closed to new replies.