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?...
| J2EE J2EE, Java 2 Enterprise edition forum discussing the various frameworks, components and tools that make up J2EE |
![]() |
| | LinkBack | Thread Tools |
|
#1
| |||
| |||
| 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
| |||
| |||
| 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
| |||
| |||
| 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
| |||
| |||
| 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? > > |
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| |
| ||||
| 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.


