• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servet <icon> tag?

 
Aubrey Bourke
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • 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:
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65124
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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: 3
  • Mark post as helpful
  • send pies
  • 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
Author and ninkuma
Marshal
Pie
Posts: 65124
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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: 3
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic