• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error: Please help

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey, I need your help please. In my JSP i have the folloeing code:

<TD>Origin: <html:select property="origin">
<% ArrayList list = DatabaseOperations.getOrigins(); %>
<%for(int i=0; i < list.size(); i++){
%>
<html ption value='<%=list.get(i).toString()%>'>
<%=list.get(i).tostring()%>
</html ption>
<% } %>
</html:select>


Problem is i keep getting the following errors:
ArrayList cannot be resolved to a type
DatabaseOperations cannot be resolved.

DatabaseOperations is a class i have with a getOrigind method that returns a list. I have it in the correct folder in struts, can someone please help me??
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moved to the Struts forum.
[ January 28, 2006: Message edited by: Bear Bibeault ]
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Looks to me like you just forgot to import the fully qualified classes.

<%@ page import="whatever.MyClass" %>
 
reply
    Bookmark Topic Watch Topic
  • New Topic