unable to resolve import type


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: unable to resolve import type

  1. #1
    Join Date
    Oct 2005
    Posts
    1

    Exclamation unable to resolve import type

    Hi there,
    Here are the relevant bits of code:
    Code:
    line 1: <%@page import="edu.dirsync.DirSync.*"
    
    
    line 172:     if( searchByDepartment(srchscope) )
    line 173:    {
    line 174:      out.println("      <tr>\n");
    line 175:      out.println("        <td valign=\"bottom\" align=\"left\" colspan=\"2\"><span class=\"c1\">\n");
    line 176:      out.println("        <font size=\"2\">DEPARTMENT:</font><br>\n");
    line 177:      out.println("        <span style=\"text-transform: uppercase\"><select name=\"param3\"  size=\"1\">\n");	
    line 178:	  out.println(getDepartments());
    line 179:/*
    line 180: *      out.println(DirSync.getDepartments());
    line 181: */     
    line 182: 	  out.println("        </select></span></font></span></td>\n");
    line 183:      out.println("      </tr>\n");
    the class inside edu.dirsync.DirSync is a public class returning a string and set in the appropriate path.

    Here's the weirdness.
    When I load this page in a browser, I get a 500 Error:
    Code:
    Generated servlet error:
    DirSync cannot be resolved
    BUT, when I reload the page, even after blowing away the cache and temporary files, the page loads. True, it doesn't return any values from my getDepartments method, but the page loads.
    I've never run into this, but I've tried all sorts of naming conventions DirSync.getDepartments, etc...
    If this looks familiar at all or if you know what it is, please let me know asap. This project's taken me so long to finish, I'm starting to look bad.

  2. #2
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    255
    Code:
    <%@page import="edu.dirsync.DirSync"%>
    I think the first line should look like above.
    Happiness is good health and a bad memory.

Similar Threads

  1. Help! How do you...
    By steinma1 in forum Java
    Replies: 0
    Last Post: 12-17-2002, 09:19 PM
  2. Replies: 0
    Last Post: 07-12-2002, 11:17 AM
  3. XSLT in Servlet
    By Chris in forum XML
    Replies: 0
    Last Post: 01-17-2001, 08:05 PM
  4. What is the UDT?
    By Tahui in forum VB Classic
    Replies: 2
    Last Post: 11-22-2000, 10:24 PM
  5. Setting field defaults according to type for import
    By Bill Thompson in forum authorevents.vaughn
    Replies: 0
    Last Post: 05-31-2000, 11:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center