我现在做的项目是用struts\spring\hibernate开发的。。我打开项目首页(就是默认页面)URL是:http://localhost:8080/physic/index.jsp。我怎么可以做天在站内点一些其它的导航。而URL始终不都是默认页面。。而不会随着其他链接而改变导航高手帮忙说下!!!!

解决方案 »

  1.   

    在web.xml里面可以设置默认页面
      

  2.   

    在index.jsp里放<iframe/>   把其他链接放进来
      

  3.   

    方法很多,可以用iframe,也可以用decorator装饰模板来解决,效果后者好
      

  4.   

    在index页面里面写一个action  直接跳转
      

  5.   


    引用错了!!哈哈应该修改web.xml里啊
      

  6.   

    能不能表达的清楚点阿..??直接说想要达到什么效果 .是说初次访问默认index.jsp还是说后面都是阿.?
      

  7.   

    就是想在项目中的所有导航页面的Url都显示index.jsp!!! 
      

  8.   

    你把你要显示的页面直接取名index.jsp就OK啦,另外你直接可以在web.xml中配置默认的页面
      

  9.   

     <!-- ==================== Default Welcome File List ===================== -->
      <!-- When a request URI refers to a directory, the default servlet looks  -->
      <!-- for a "welcome file" within that directory and, if present,          -->
      <!-- to the corresponding resource URI for display.  If no welcome file   -->
      <!-- is present, the default servlet either serves a directory listing,   -->
      <!-- or returns a 404 status, depending on how it is configured.          -->
      <!--                                                                      -->
      <!-- If you define welcome files in your own application's web.xml        -->
      <!-- deployment descriptor, that list *replaces* the list configured      -->
      <!-- here, so be sure that you include any of the default values that     -->
      <!-- you wish to include.                                                 -->    <welcome-file-list>
            <welcome-file>index.html</welcome-file>
            <welcome-file>index.htm</welcome-file>
            <welcome-file>index.jsp</welcome-file>
        </welcome-file-list>
      

  10.   

    谢谢在家的帮助啊,可能是我把问题描述的不是特别的清楚。我的意思是:我的欢迎页面是index.jsp。。然后 我点击一个增加按钮,然后我页面的url会显示为add.jsp,我点击删除按钮我页面的URL会显示为del.jsp。。我想要大家帮我解决的问题是:在上边我点击“增加”、删除按钮时,我的URL永远显示的是欢迎页面的URL。。而并不是链接后的URL
      

  11.   

    跳转吧!index.jsp  页面里面加一句<jsp:forward page="*/*.jsp"></jsp:forward>