Mapping URLs to the JSP File

Using the tag “<servlet>” we can map the URL to the files a JSP.

Example:

    <servlet> <servlet-name> Edit </ servlet-name> <jsp-file> / edit.jsp </ jsp-file> </ servlet> <servlet-mapping> <servlet-name> Edit </ servlet-name > <url-pattern> /edit</ url-pattern> </ servlet-mapping>

For example, the URL “/ edit” will be ‘supported’ by ‘/ edit.jsp’ without redirection.

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • MySpace
  • PDF

Related Posts

  1. No comments yet.

  1. No trackbacks yet.

*

Founder:

Krakow Luxury apartments Apartments Krakow tour sleeping poland