• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help me to update web.xml STARTS WITH /(forward slash)

 
Sanjay pts
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1)
<servlet>
<servlet-name>one</servlet-name>
<servlet-class>foo.Testone</servlet-class>
<servlet>
<servlet-mapping>
<servlet-name>one</servlet-name>
<url-pattern>/Beer/*</url-pattern>
</servlet-mapping>


Hi all
I want to update this list so we are able to make complete web.xml plus all the requested it assigned by /(forward slash) in web.xml


So starts now plzzzzzzzzzzzzzzzzzzzzzzz

Thanx
sanjay

[ May 31, 2005: Message edited by: Sanjay pts ]
[ May 31, 2005: Message edited by: Sanjay pts ]
 
Sanjay pts
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
2)

<erro-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/errorPage.jsp</location>
<error-page>

or

<erro-page>
<error-code>404</error-code>
<location>/notFound.jsp</location>
<error-page>
 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sanjay pts:
1)
<servlet>
<servlet-name>one</servlet-name>
<servlet-class>foo.Testone</servlet-class>
<servlet>
<servlet-mapping>
<servlet-name>one</servlet-name>
<url-pattern>/*.do</url-pattern>


Shoudn't the url-pattern just be:
<url-pattern>*.do</url-pattern> ?
 
Sanjay pts
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
3)<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/loginPage.html</form-login-page>
<form-error-page>/loginError.html</form-error-page>
</form-login-config>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic