File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Servlet Include Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet Include" Watch "Servlet Include" New topic

Servlet Include

Andrew Lock

Joined: Oct 02, 2001
Posts: 4
Sure its not called an include, but i'm still in asp mode.
Whilst running through a tutorial, I create , which is basically an include for adding the <HTML><Head> etc for creating a HTML page.
In it is the line public static String headWithTitle(String title) {
In the next file I call it with
out.println(ServletUtilities.headWithTitle(title) +
but when I use javac to creat the servlet I get the error cannot resolve symbol
symbol : variable ServletUtilities
location: class stuservlets.LotteryNumbers
out.println(ServletUtilities.headWithTitle(title) +
Any ideas?
I agree. Here's the link:
subject: Servlet Include
It's not a secret anymore!