发现JAVA的时间都花费到集成框架上了

解决方案 »

  1.   

    建立一个index.jsp
    里面就一条forward语句
    forward到你的action
    就可以了
      

  2.   

    什么意思,JSP不都是从后台加载完数据才显示出来的么?
      

  3.   

    <jsp:forward page="Main.jsp" />可以跳转,但怎么读数据啊,
      

  4.   

    <jsp:forward page="/xxx.do"/>
    然后你的action里肯定
    有request.setattrxxxx();
    你的action里也有mapping.findforward("index");
    index 在你的struts-config.xml里对应你的main.jsp
      

  5.   

    <html> 
    <head>
    <title>JSP for IndexForm form</title>
    </head>
    <body>
    <html:form action="/index">
    <jsp:forward page="/index.do"></jsp:forward>
    </html:form>
    </body>
    </html>这样写是不是默认就提交到action="/index"了?
      

  6.   

    index.do,然后在action里面获取数据再forward到main.jsp,不是很难啊。
    多看下SSH的例子就知道了。