Search code examples
jspweb-applicationsjava-ee-6

What is .jspa URL extension in web applications?


In many online web applications, I notice that the application url ends with jspa. My assumption is it is a jsp and action is mapped to jspa instead of *.do.

Is my understanding correct or there is an actual extension/different meaning? Kindly suggest and ignore if this question is very basic. I googled already and could not get clear answer.


Solution

  • In many online web applications, I notice that the application url ends with jspa. My assumption is it is a jsp and action is mapped to jspa instead of *.do.

    Your assumption is almost correct. Why I have used the word, almost is because you have mentioned that it is a JSP. In fact, it can be anything; not just a JSP. The URL contains a logical name and it may be mapped to a Servlet, JSP or any other thing. The URL, http://www.sun.com/training/catalog/courses/CX-310-083.xml looks like an XML document at first sight but it is actually not. The actual content is rendered based on the Content-Type header i.e. you can see a URL with extension .abc which may actually render an HTML page.