0

I have web application developed in java with simple jsp and servlet. And I have javascript files in it. My Applications requirement is other applications can only hit my applications using a javascript file.

Example as: I have a starting javascript file as http://<domain>/<ApplicationName>/<JSFileName>.js.

Where I can configure this url with other applications to hit my application. But at the same time I don't want to specify the extension as .js. I want to configure the URL as http://<domain>/<ApplicationName>/<JSFileName> (means without the .js extension). I am reading about url patterns mappings for Javascript file, but didn't find anything.

Please suggest what can be possible idea to hide the .js extension from URL.

Mandar Pandit
  • 2,171
  • 5
  • 36
  • 58
  • what do you mean by " other applications can only hit my applications using a javascript file."? calling directly your javascript would simply display the java script. – Sas Feb 02 '15 at 16:21

1 Answers1

0

I was looking for the same thing and came across your question, then came across this - https://libraries.io/bower/url-match

mysomic
  • 1,546
  • 3
  • 21
  • 34