File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP Element mixture" Watch "JSP Element mixture" New topic
Author

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();
While(en.hasMoreElements())
{
out.println(en.nextElement());
}
%>
<%!
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
Marshal

Joined: Jan 10, 2002
Posts: 60057
    
  65

While

Public


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP Element mixture
 
Similar Threads
Using add on Vector<?>
boost::unordered map equality function
Iterate tag for Vector
XML processing
JSP Model