• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Head First Java 2nd ed Question

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

This is the most amazing servlet




But apparaently html won't come up.What should the anchor reference look like using Orion?
 
author
Posts: 9050
21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
let's slide this over to the Servlets forum
 
It's a tiny ad. At least, that's what she said.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic