java - Jstl c:url tag behaves differently on different servers -


i have java webapp packaged in war file , deployed on jboss server. following simple jstl tag used in 1 of jsp's:

<c:url value="/somefile.pdf"/> 

when browse localhost:8080/mywebapp/user/download.do jsp shown , download button uses url links path:

http://localhost:8080/mywebapp/somefile.pdf 

i can download file , works.

however, when deploy war file on our test server , go testserver:8080/mywebapp/user/download.do, output of url tag following:

http://testserver:8080/mywebapp/user/somefile.pdf 

this file doesn't download because not located in /user/ subfolder.

my local server jboss 6.4 embedded in eclipse runs in standalone mode. test server jboss 6.4 runs on domain mode. war file identical on both containers. how can difference in output of <c:url> tag explained?


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -