What is difference index.html vs index.jsp? [closed]

▼魔方 西西 提交于 2019-12-10 11:14:53

问题


One URL ends in 'index.html'. Another URL ends in 'index.jsp'. Explain how these two requests result in very different behavior by the server.


回答1:


JSP is a file extension for Java Server Pages file format. A JSP is an HTML page containing a reference to Java servlets, or, java server side applets.

JSP files help to deliver server side customized content on a webpage through servlets. JSP files keep the Java code secret because it runs server side.

index.html is the default page for that directory. On most Web servers, the default page in a directory is named "index.html". So, index.jsp would be the a default Java Server Page in a directory.



来源:https://stackoverflow.com/questions/23299237/what-is-difference-index-html-vs-index-jsp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!