File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Error: Please help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Error: Please help" Watch "Error: Please help" New topic
Author

Error: Please help

Ben Reeves
Greenhorn

Joined: Jan 23, 2006
Posts: 5
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

Joined: Jan 10, 2002
Posts: 61106
    
  66

Moved to the Struts forum.
[ January 28, 2006: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Looks to me like you just forgot to import the fully qualified classes.

<%@ page import="whatever.MyClass" %>


Merrill
Consultant, Sima Solutions
 
Consider Paul's rocket mass heater.
 
subject: Error: Please help