Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jsp Fragments

 
Rafael L Cintra
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

These are valid JSP code fragments?

<%@ page import="java.util.*" autoFlush="true"%>
<%@ page import="java.io.*" autoFlush="true"%>

???

Tks

Rafael
 
Rajeev Rnair
Ranch Hand
Posts: 310
1
Java Linux Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rafael L Cintra wrote:Hi all,

These are valid JSP code fragments?

<%@ page import="java.util.*" autoFlush="true"%>
<%@ page import="java.io.*" autoFlush="true"%>

???

Tks

Rafael


Hi Rafael, welcome to the ranch.
These are valid JSP page directives if you used in separate pages! The only attribute you can have in multiple lines of 'page directive' in a JSP page is import. In other words you can have
in a JSP page OR
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic