Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Aysel Kaya   on Mar 04 In Java Category.

  
Question Answered By: Jamie Roberts   on Mar 04

in web.xml you may declare your jsp file  as servlet  and assign a pattern to its url  mapping:


<servlet>
<servlet-name>myIndex</servlet-name>
<jsp-file>/app/index.jsp</jsp-file>
</servlet>

<servlet-mapping>
<servlet-name>myIndex</servlet-name>
<url-pattern>/app/about</url-pattern>
</servlet-mapping>

Share: 

 
 
Didn't find what you were looking for? Find more on Can I redirect/forward from a non existing url? Or get search suggestion and latest updates.


Tagged: