File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error: Please help

 
Ben Reeves
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • 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??
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64186
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the Struts forum.
[ January 28, 2006: Message edited by: Bear Bibeault ]
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks to me like you just forgot to import the fully qualified classes.

<%@ page import="whatever.MyClass" %>
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic