File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes JSP Element mixture Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP Element mixture" Watch "JSP Element mixture" New topic

JSP Element mixture

Deepan Devadasan
Ranch Hand

Joined: Jan 25, 2007
Posts: 226
This is Question I encountered during exam preparation...

The answer was given as Compile time error

<%@page language="java" %>
Vector store;
Enumeration en=store.elements();
Public void jspInit()
store=new Vector();
store.addElement("First Value");
store.addElement("Second Value");

Can some clarify the reasoning behind the answer

Theepan Thevathasan
SCJP 1.4, SCWCD 1.4, SCMAD 1.0 SCBCD 1.3, MCP(.Net Frm 2.0 App Dev Fdn)
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63870



[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: JSP Element mixture
It's not a secret anymore!