• 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

Tomcat 4.0.4 bin - code and compiled example Request Header doesn't match ?

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just downloaded the Tomcat 4.0.4 bin - installs like a charm on my XP Pro box - beautiful job by the Apache people.
One strange thing though:
I a quite a newbie to Java/Servlets/JSP but I hope I am right on this one.
Does the code and the compiled version of the servlet example "Request Header Example" match ?
The code(appears if you push the screwdriver in the upper right hand corner) seems to produced a quite crude text output while running the compiled example produces a html table with a gray background behind the header names.
Cheers,
Martin
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you look in the actual code in '<tomcat_install>\webapps\examples\WEB-INF\classes\RequestHeaderExample.java' you'll see how it is made.
The sample you see by clicking the screwdriver in the upper right hand corner it just a html-file.
/Rene
[ July 16, 2002: Message edited by: Rene Larsen ]
 
Catch Ernie! Catch the egg! And catch this tiny ad too:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic