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.











No comments yet.