I am not sure what would be the exact technical term for this but i wanted to access a file which is avail in server(Apache Tomcat). i just wanted to type this in browser e.g.
http://localhost:8080/myProjectName/eng :
*but this should refer as. http://localhost:8080/myProjectName/english.html *
http://localhost:8080/myProjectName/hin :
*but this should refer as. http://localhost:8080/myProjectName/hindi.html *
my project structure is
myProjectName
|
webContent
|
|----WEB-INF
| |_ _ _ web.xml
|
|--- english.html
|--- hindi.html
is there any way to get the possible result by writing something in web.xml.
Environment : java servlet html js jQuery tomcat6.0
if i am understanding your question, here is the solution :
<jsp-file>mapping instead of<servlet-class>http://localhost:8080/myProjectName/engJust define mapping inweb.xml