• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

"description" element of web.xml - example

 
Jerry Bustamente
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greetings.

Does anyone have real syntax example with the use of the description element? I have not been able to find one, only an explanation of what it is. I know this seems like an odd request but I would greatly appreciate your help.

Thank you.

Sincerely,

Jerry Bustamente
 
Nicky Eng
Ranch Hand
Posts: 378
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what do you mean "real syntax" ???

XML syntax is up to you, as long as you have starter and a closing tag, special meaning for the element you created. i think something like this:

<my-name>Nicky Eng</my-name>

where <my-name> is the descriptor to descript the element i specified for. And </my-name> is to close the <my-name>.

about web.xml somewhere under Tomcat directory, the <web-app....something here...> i still exploring the HFSJ books...

hope other member can provide you and me with more specified details of web.xml stuff.....

all the best...
 
Mat Williams
Ranch Hand
Posts: 215
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

here is a very simple example.


<?xml version="1.0" encoding="ISO-8859-1"?>

<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">

<description>Cis help pages</description>
<display-name>CIS Help</display-name>

</web-app>


HTH

Mat
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic