Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Head First Java 2nd ed Question

 
Jim Moffat
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8898
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
let's slide this over to the Servlets forum
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic