• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Any page directive except import can only occur only once?

 
Amandeep Singh
Ranch Hand
Posts: 850
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<%@ page import="java.util.*" autoFlush="true"%>
<%@ page import="java.io.*" autoFlush="false"%>

This is given wrong.

But should be correct.



This is from Enthuware. i don't what really it means here because there is np such import directive.
 
deepa raj
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


It should be wrong. Translation Error.

Because multiple occurrences of autoFlush attribute.

And also, page is a directive.
import is the page directive attribute which can occur muliple times in the tranlated page.
[ August 19, 2008: Message edited by: deepa raj ]
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by deepa raj:


It should be wrong. Translation Error.

Because multiple occurrences of autoFlush attribute.


[ August 19, 2008: Message edited by: deepa raj ]


Agree.you are correct


and
----------------------------------------
And also, page is a directive.
import is the page directive attribute which can occur muliple times in the tranlated page.
---------------------------------------

DisAgree
 
Amandeep Singh
Ranch Hand
Posts: 850
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if import can occur mutliple times, can you show me its use as a multiple times.

like this
<%@page import = "java.util.*" import = "java.io.*"%>

Is this right?
 
deepa raj
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is not right.


The below snippets are correct.


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic