wood burning stoves 2.0*
The moose likes Servlets and the fly likes servet <icon> tag? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "servet <icon> tag?" Watch "servet <icon> tag?" New topic
Author

servet <icon> tag?

Aubrey Bourke
Greenhorn

Joined: May 30, 2012
Posts: 3
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

Joined: Jan 10, 2002
Posts: 61232
    
  66

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".


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Aubrey Bourke
Greenhorn

Joined: May 30, 2012
Posts: 3
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

Joined: Jan 10, 2002
Posts: 61232
    
  66

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

Joined: May 30, 2012
Posts: 3
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: servet <icon> tag?