Please help
I keep getting this error message after compiling the following SimpleList.java
C:\jakarta-tomcat-5.0.28\webapps\Ch04\WEB-INF\classes\Ch04>javac SimpleList.java
SimpleList.java:21: cannot resolve symbol
symbol : class Questions
location: class Ch04.SimpleList
Questions questions = new Questions();
^
SimpleList.java:21: cannot resolve symbol
symbol : class Questions
location: class Ch04.SimpleList
Questions questions = new Questions();
^
2 errors
And this is the program:
package Ch04;
import java.util.*;
import javax.servlet.jsp.tagext.*;
import javax.servlet.jsp.*;
import java.io.*;
public class SimpleList extends SimpleTagSupport {
private String topic;
public void setTopic(String s ) {
topic = s;
}
public String getTopic() {
return topic;
}
public void doTag() throws JspException {
Questions questions = new Questions();
questions.setTopic(getTopic());
// Get List of questions, TreeMap will sort them by key
Map qmap = new TreeMap(questions.getQuestions());
Iterator faqs = qmap.values().iterator();
int count = 1;
while (faqs.hasNext()) {
try {
//Store the parameter for invoke()
getJspContext().setAttribute("qid", topic + "_" + count);
getJspContext().setAttribute("question", faqs.next());
count++;
//Process the body
getJspBody().invoke(null);
} catch (IOException e) {
throw new JspException("Exception processing body");
}
}
}
}
Can anybody sees the problem?
Thank you
Ditony :(