问题是这样的:接了一个老师给的小项目。就是那种OA办公自动化软件,用SSH技术做。现在已经有了界面原形了,都是html文件。随手翻了一下struts2,感觉要是用struts2的话,是不是要把那些html全都转换成jsp文件,再做开发呢?还是有什么好的办法,能够直接用到那些html页面。
求指教。

解决方案 »

  1.   

    html->jsp ? 貌似没有好办法。 应该要自己写。
      

  2.   

    自己重新写啊,跟struts打交道的页面是不是还是jsp页面呢?那些html静态页面都没用了么?
      

  3.   

    也可能有有用的啊。 如果一个页面不需要从服务器得到数据,你就用原来的 html 就好了呀。 比较典型的如错误页面。 对吧? 你看咱们CSDN的404页面多好玩,那不也是静态的吗。 
      

  4.   

    http://Gogle.com.cn/traslation#Convert_code
      

  5.   

    The page cannot be foundThe page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
    Please try the following:Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.
    If you reached this page by clicking a link, contact the Web site administrator to alert them that the link is incorrectly formatted.
    Click the Back button to try another link.
    HTTP Error 404 - File or directory not found.
    Internet Information Services (IIS)Technical Information (for support personnel)Go to Microsoft Product Support Services and perform a title search for the words HTTP and 404.
    Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Web Site Setup, Common Administrative Tasks, and About Custom Error Messages.
      

  6.   

    使用JSP是因为页面数据的动态性需求,如果你的页面数据都是直接hard code当然不需要转成jsp
      

  7.   

    最好还是自己照着静态页面自己从新用jsp实现一下
      

  8.   

    .html 转 .jsp 你想把html页面转换成jsp页面,如果仅仅是格式的转化,那很简单,改下后缀名就行了,但是这样没有意义。压根就不是一个概念。这就好比,你想把一个.jpg图片,直接转换成 .avi 的电影进行观看,根本风马牛不相及啊。又不是rmvb转avi,要知道,有些东西能互转,有些不能。强行转了,没意义。
      

  9.   

    大哥,csdn是伪静态好吧。他实际的不是jsp就是asp,要么php,反正就不是静态页面。
      

  10.   


    JSP和PHP就不能是静态的吗?
      

  11.   

    动态生成html肯定是有的。这问题太高深了,不是一般人能做得出来的
      

  12.   

    大多是伪静态的,FreeMarker可以生成静态页面。。可以研究一下下。。