Objectmix
Tags Register Mark Forums Read

Enumeration type doesn't compile in EAServer JSP page : J2EE

This is a discussion on Enumeration type doesn't compile in EAServer JSP page within the J2EE forums in Framework and Interface Programming category; I am trying to use the Enumeration type in a EAServer JSP. The script won't compile. Here is the variable declaration: Enumeration requestNames = request.getParameterNames(); Here is the error I get: Class com.sybase.jsp.Enumeration not found. I even tried: java.lang.Enumeration requestNames = request.getParameterNames(); And that didn't work. Can I not use the Enumeration type?...


Object Mix > Framework and Interface Programming > J2EE > Enumeration type doesn't compile in EAServer JSP page

J2EE J2EE, Java 2 Enterprise edition forum discussing the various frameworks, components and tools that make up J2EE

Reply

 

LinkBack Thread Tools
  #1  
Old 05-08-2007, 07:44 AM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Enumeration type doesn't compile in EAServer JSP page

I am trying to use the Enumeration type in a EAServer JSP.
The script won't compile. Here is the variable declaration:
Enumeration requestNames = request.getParameterNames();

Here is the error I get:
Class com.sybase.jsp.Enumeration not found.

I even tried:
java.lang.Enumeration requestNames =
request.getParameterNames();

And that didn't work. Can I not use the Enumeration type?
  #2  
Old 05-08-2007, 09:33 AM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: Enumeration type doesn't compile in EAServer JSP page

I believe what you want is java.util.Enumeration.

<Michael Stein> wrote in message news:46407080.5ba4.1681692777@sybase.com...
>I am trying to use the Enumeration type in a EAServer JSP.
> The script won't compile. Here is the variable declaration:
> Enumeration requestNames = request.getParameterNames();
>
> Here is the error I get:
> Class com.sybase.jsp.Enumeration not found.
>
> I even tried:
> java.lang.Enumeration requestNames =
> request.getParameterNames();
>
> And that didn't work. Can I not use the Enumeration type?



  #3  
Old 05-08-2007, 10:19 AM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: Enumeration type doesn't compile in EAServer JSP page

JSP pages also require "import" statements, just like java code. You
don't have an import for Enumeration (or the util package), so the JSP
compiler can't find the class.


Jonathan


Michael Stein wrote:
> I am trying to use the Enumeration type in a EAServer JSP.
> The script won't compile. Here is the variable declaration:
> Enumeration requestNames = request.getParameterNames();
>
> Here is the error I get:
> Class com.sybase.jsp.Enumeration not found.
>
> I even tried:
> java.lang.Enumeration requestNames =
> request.getParameterNames();
>
> And that didn't work. Can I not use the Enumeration type?

  #4  
Old 05-08-2007, 10:26 AM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: Enumeration type doesn't compile in EAServer JSP page

Excellent! That worked like a charm. Thank you!

> I believe what you want is java.util.Enumeration.
>
> <Michael Stein> wrote in message
> news:46407080.5ba4.1681692777@sybase.com... >I am trying
> > to use the Enumeration type in a EAServer JSP. The
> > script won't compile. Here is the variable declaration:

> Enumeration requestNames = request.getParameterNames(); >
> > Here is the error I get:
> > Class com.sybase.jsp.Enumeration not found.
> >
> > I even tried:
> > java.lang.Enumeration requestNames =
> > request.getParameterNames();
> >
> > And that didn't work. Can I not use the Enumeration

> type?
>
>

Reply

Thread Tools


Similar Threads

Thread Thread Starter Forum Replies Last Post
Re: Ok, where is the integer to enumeration type converter? usenet labview 1 09-04-2007 03:10 AM
Re: Ok, where is the integer to enumeration type converter? usenet labview 0 09-03-2007 06:40 PM
Re: Ok, where is the integer to enumeration type converter? usenet labview 0 09-03-2007 06:40 PM
Cannot deploy EJB jar with EAServer Manager (EAServer 5.5 w/ jdk1.5) usenet J2EE 5 08-16-2007 03:47 PM
LOCAL module unqualified export for enumeration type issue usenet modula 2 04-27-2004 12:19 AM


All times are GMT -5. The time now is 12:35 PM.

Managed by Infnx Pvt Ltd.