fenyun689 2011-05-12 10:36
浏览 228
已采纳

把html 静态页面 上添加 jsp代码,当成jsp文件处理,怎么做?

UI 给了html 的静态页面。我们要用jsp开发,不想改 文件的后缀了。怎么能让服务器把html 当成jsp处理。

  • 写回答

2条回答 默认 最新

  • suziwen 2011-05-12 10:41
    关注



    jsp
    .html


    jsp
    .jspx

    <welcome-file-list>
         <welcome-file>index.html</welcome-file>
         <welcome-file>index.htm</welcome-file>
         <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    
    <servlet-mapping>
         <servlet-name>jsp</servlet-name>
         <url-pattern>*.jsp</url-pattern>
    </servlet-mapping> 
    

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?