• 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

servet <icon> tag?

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Using netbeans 7 and can successfully run basic servelts. However, having trouble with the web.xml <icon> tag.

1. What exactly does it do?
2. Is it supposed to dispay an icon beside the address bar and/or tab title right?

Here's my web.xml file for my Netbeans Project:
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch.

The Servlet Specification is the best place to look for the answer to your question. See the ServletsFaq for download location.

P.S. It's "servlet" not "servet".

 
Aubrey Bourke
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bear Bibeault wrote:Welcome to the Ranch.

The Servlet Specification is the best place to look for the answer to your question. See the ServletsFaq for download location.

P.S. It's "servlet" not "servet".



Arrrgghhhh "Servlet" I knew that one! )

Downloaded the spec and found this about the icon:

. icon Element
The icon contains small-icon and large-icon elements that specify the file names
for small and large GIF or JPEG icon images used to represent the parent element
in a GUI tool.



So, it looks like the icon isn't used for browsers. Which means if you want a web browser icon. You have to use html code with a "favicon" in a httpServlet.





 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Right, except that you really shouldn't be emitting HTML code in a servlet. When the servlet is done doing its processing, forward to a JSP to create the HTML view.

You might find this article helpful.
 
Aubrey Bourke
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bear Bibeault wrote:
You might find this article helpful.



OK thanks Bear, read the article. Although its a bit advanced for me. I'm currently only on page 26 of "Java Servlet Programming" by Jason Hunter and William Crawford.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic