File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Head First Java 2nd ed Question Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Head First Java 2nd ed Question" Watch "Head First Java 2nd ed Question" New topic
Author

Head First Java 2nd ed Question

Jim Moffat
Greenhorn

Joined: Sep 18, 2006
Posts: 8
Two questions:

(1) Page 629, the "KathyServlet" example,

I am getting an error on the line

out.println("
make another phrase
");

The error says

C:\Java Stuff>javac PhraseOMaticServlet.java
PhraseOMaticServlet.java:19: illegal escape character
out.println("
make another phrase</<br /> p>");
^
PhraseOMaticServlet.java:19: ')' expected
out.println("
make another phrase</<br /> p>");
^
PhraseOMaticServlet.java:19: unclosed string literal
out.println("
make another phrase</<br /> p>");

^
3 errors


Question 2:

I am running Orion and the book on pp. 625-626 implies that you can put a servlet on an anchor




But apparaently html won't come up.What should the anchor reference look like using Orion?
Bert Bates
author
Sheriff

Joined: Oct 14, 2002
Posts: 8712
let's slide this over to the Servlets forum


Eliminate fossil fuel subsidies. (If you're not on the edge, you're taking up too much room.)
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56180
    
  13

Actually, I'm going to re-slide this over to Java in General (beginner) as it's not a Servlet issue per se.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Head First Java 2nd ed Question
 
Similar Threads
Connection Pooling
Head First Java 2nd ed Question
sendRedirect method
Servlets from an HTML anchor
Head First Java 2nd ed Question