html - spring mvc 3:how i can get tiles in iframe?what shoud be src attribute of iframe? -


i have several spring mvc tiles page , tiles.xml file this:

    <?xml version="1.0" encoding="utf-8"?>     <!doctype tiles-definitions public        "-//apache software foundation//dtd tiles configuration 3.0//en"        "http://tiles.apache.org/dtds/tiles-config_3_0.dtd">     <tiles-definitions>     <definition name="base.definition"         template="/web-inf/views/layout.jsp">         <put-attribute name="title" value="" />         <put-attribute name="header" value="/web-inf/views/header.jsp" />         <put-attribute name="menu" value="/web-inf/views/menu.jsp" />         <put-attribute name="body" value="" />         <put-attribute name="footer" value="/web-inf/views/footer.jsp" />      </definition>       <definition name="home" extends="base.definition">         <put-attribute name="title" value="page home" />         <put-attribute name="body" value="/web-inf/views/home.jsp" />     </definition>      <definition name="product" extends="base.definition">        <put-attribute name="title" value="p" />         <put-attribute name="body" value="/web-inf/views/product.jsp" />       </definition>     <definition name="note" extends="base.definition">        <put-attribute name="title" value="p" />         <put-attribute name="body" value="/web-inf/views/note.jsp" />      </definition>      <definition name="tnote" extends="base.definition">        <put-attribute name="title" value="p" />          <put-attribute name="body" value="/web-inf/views/tnote.jsp" />        </definition>          <definition name="d" extends="base.definition">        <put-attribute name="title" value="p" />         <put-attribute name="body" value="/web-inf/views/d.jsp" />         </definition>           <definition name="contactus" extends="base.definition">       <put-attribute name="title" value="p" />         <put-attribute name="body" value="/web-inf/views/contactus.jsp" />         </definition>           <definition name="dsgc" extends="base.definition">         <put-attribute name="title" value="p" />         <put-attribute name="body" value="/web-inf/views/dsgc.jsp" />         </definition>        <definition name="login" template="/web-inf/views/admin/adminlayout.jsp">         <put-attribute name="title" value="p" />         <put-attribute name="body" value="/web-inf/views/admin/login.jsp" />        </definition>         <definition name="adm_main" template="/web-inf/views/admin/adminlayout.jsp">         <put-attribute name="title" value="p" />         <put-attribute name="body" value="/web-inf/views/admin/adm_main.jsp" />         </definition>       <definition name="adminpage" template="/web-inf/views/admin/adminlayout.jsp" >       <put-attribute name="title" value="p" />         <put-attribute name="body" value="/web-inf/views/admin/adminpage.jsp" />      </definition>       <definition name="adm_products" template="/web-inf/views/admin/adminlayout.jsp" >       <put-attribute name="title" value="p" />         <put-attribute name="body" value="/web-inf/views/admin/adm_products.jsp" />      </definition>     <definition name="adm_products_images" template="/web-inf/views/admin/adminlayout.jsp" >       <put-attribute name="title" value="p" />         <put-attribute name="body" value="/web-inf/views/admin/adm_products_images.jsp" />      </definition>     <definition name="adm_ads" template="/web-inf/views/admin/adminlayout.jsp" >       <put-attribute name="title" value="p" />         <put-attribute name="body" value="/web-inf/views/admin/adm_ads.jsp" />      </definition>      <definition name="adm_menus" template="/web-inf/views/admin/adminlayout.jsp" >       <put-attribute name="title" value="p" />         <put-attribute name="body" value="/web-inf/views/admin/adm_menus.jsp" />      </definition>      <definition name="adm_settings" template="/web-inf/views/admin/adminlayout.jsp" >       <put-attribute name="title" value="p" />         <put-attribute name="body" value="/web-inf/views/admin/adm_settings.jsp" />      </definition>      <definition name="adm_members" template="/web-inf/views/admin/adminlayout.jsp" >       <put-attribute name="title" value="p" />         <put-attribute name="body" value="/web-inf/views/admin/adm_members.jsp" />      </definition>    <definition name="adm_resellers" template="/web-inf/views/admin/adminlayout.jsp" >       <put-attribute name="title" value="p" />         <put-attribute name="body" value="/web-inf/views/admin/adm_resellers.jsp" />      </definition>      <definition name="adm_news" template="/web-inf/views/admin/adminlayout.jsp" >       <put-attribute name="title" value="p" />         <put-attribute name="body" value="/web-inf/views/admin/adm_news.jsp" />      </definition>     <definition name="adm_tips" template="/web-inf/views/admin/adminlayout.jsp" >       <put-attribute name="title" value="p" />         <put-attribute name="body" value="/web-inf/views/admin/adm_tips.jsp" />      </definition>     <definition name="adm_gnotes" template="/web-inf/views/admin/adminlayout.jsp" >       <put-attribute name="title" value="p" />         <put-attribute name="body" value="/web-inf/views/admin/adm_gnotes.jsp" />      </definition> </tiles-definitions> 

now want call these pages in iframe in page. code this:

     <!doctype html public "-//w3c//dtd html 4.01 transitional//en" "http://www.w3.org /tr/html4/loose.dtd">      <html>      <head>     <meta http-equiv="content-type" content="text/html; charset=utf-8" dir="rtl" >     <title>insert title here</title>     <script type="text/javascript">     var reserved_tab_content_height = 60;     var selected_idx = 0;     var tab_idx = 0;     function set_tab_content_height() {     $(".tab_content").css('height',             $(window).height() - reserved_tab_content_height);        }        $(function(){      set_tab_content_height();      $("#menuitems td").click(function() {         var menuitem = $(this).text();         $("#menuitems td").removeclass("selected_item");         $(this).addclass("selected_item");         var id=$(this).attr("id");         var number=id.split('-')[2];         $("#tab_container td").hide();         $("#tab-td-"+number).show();         $("#tab-content-"+number).show();      });     $(window).resize(function() {         set_tab_content_height();     });       });     </script>     </head>     <body>      <%-- <a href="<c:url value='/j_spring_security_logout'/>">logout</a> --%>        <div id="maindiv" >         <table width="100%" cellpadding="0" cellspacing="0" border="0">             <tbody>                 <tr>                     <td valign="bottom"                         style="border: 1px solid black; padding:     5px 5px 5px 5px;">                         <table id="menuitems" class="menu"     cellpadding="0" cellspacing="0"                             border="0" align="right">                             <tbody>                             <tr id="tabs0">                             <sec:authorize access="hasrole('role_one')">                                 <td id='tab-item-1' style='border:1px solid;'>کالاها</td>                             </sec:authorize>                                                                 <sec:authorize access="hasrole('role_two')">                                 <td id='tab-item-2' style='border:1px solid;'>عکس کالاها</td>                             </sec:authorize>                                                         <sec:authorize access="hasrole('role_three')">                                 <td id='tab-item-3' style='border:1px solid;'>تبلیغات</td>                             </sec:authorize>                                  <sec:authorize access="hasrole('role_four')">                                 <td id='tab-item-4' style='border:1px solid;'>اخبار جدید</td>                             </sec:authorize>                                      <sec:authorize access="hasrole('role_five')">                                 <td id='tab-item-5' style='border:1px solid;'>یادداشت ها</td>                             </sec:authorize>                                  <sec:authorize access="hasrole('role_six')">                                 <td id='tab-item-6' style='border:1px solid;'>روزنوشت ها</td>                             </sec:authorize>                               </tr>                             <tr id="tabs6">                                  <sec:authorize access="hasrole('role_seven')">                                 <td id='tab-item-7' style='border:1px solid;'>منوها</td>                             </sec:authorize>                             <sec:authorize access="hasrole('role_eight')">                                 <td id='tab-item-8' style='border:1px solid;'>تنظیمات</td>                             </sec:authorize>                             <sec:authorize access="hasrole('role_nine')">                                 <td id='tab-item-9' style='border:1px solid;'>آپلود</td>                             </sec:authorize>                             <sec:authorize access="hasrole('role_ten')">                                 <td id='tab-item-10' style='border:1px solid;'>کاربران</td>                             </sec:authorize>                             <sec:authorize access="hasrole('role_eleven')">                                 <td id='tab-item-11' style='border:1px solid;'>نمایندگان</td>                             </sec:authorize>                             <sec:authorize access="hasrole('role_twoelve')">                                 <td id='tab-item-12' style='border:1px solid;'>آرشیو مجلات</td>                             </sec:authorize>                             </tr>                             </tbody>                         </table>                           <table cellpadding="0" cellspacing="0" border="0" align="left"                             style="margin-top: 15px">                             <tr>                                 <td style="color: blue; font-size: 8pt" id="unametd"></td>                                 <td style="padding-right: 10px"><img                                      style="cursor: pointer"                                     src="resources/images/keys.png"></td>                                 <td><a href="<c:url value='/j_spring_security_logout'/>"><img  style="cursor: pointer"                                     src="resources/images/exit.png">                                      </a></td>                             </tr>                         </table>                 </td>                 </tr>                 <tr>                     <td  style="border: 1px solid black;">                         <table width="100%" cellpadding="0" cellspacing="0" border="0">                             <tbody>                                 <tr id="tab_container">                                 <td id="tab-td-1" class="ui-widget-content ui-corner-bottom" style="display: none; width: 0">                                     <iframe id="tab-content-1" class="tab_content" frameborder="0" src="/adm_products" style="height: 296px; width: 0px; display: none;">                                     </iframe>                                 </td>                                 <td id="tab-td-2" class="ui-widget-content ui-corner-bottom" style="display: none; width: 0">                                     <iframe id="tab-content-2" class="tab_content" frameborder="0" src="/adm_product_images" style="height: 296px; width: 0px; display: none;" allowtransparency="true">                                     </iframe>                                 </td>                                 <td id="tab-td-3" class="ui-widget-content ui-corner-bottom" style="display: none; width: 0">                                     <iframe id="tab-content-3" class="tab_content" frameborder="0" src="/adm_ads" style="height: 296px; width: 0px; display: none;" allowtransparency="true">                                     </iframe>                                 </td>                                 <td id="tab-td-4" class="ui-widget-content ui-corner-bottom" style="display: none; width: 0">                                     <iframe id="tab-content-4" class="tab_content" frameborder="0" src="/adm_news" style="height: 296px; width: 0px; display: none;" allowtransparency="true">                                     </iframe>                                 </td>                                 <td id="tab-td-5" class="ui-widget-content ui-corner-bottom" style="display: none; width: 0">                                     <iframe id="tab-content-5" class="tab_content" frameborder="0" src="/adm_tips" style="height: 296px; width: 0px; display: none;" allowtransparency="true">                                     </iframe>                                 </td>                                     <td id="tab-td-6" class="ui-widget-content ui-corner-bottom" style="display: none; width: 0">                                     <iframe id="tab-content-6" class="tab_content" frameborder="0" src="/adm_gnotes" style="height: 296px; width: 0px; display: none;" allowtransparency="true">                                     </iframe>                                 </td>                                 <td id="tab-td-7" class="ui-widget-content ui-corner-bottom" style="display: none; width: 0">                                     <iframe id="tab-content-7" class="tab_content" frameborder="0" src="/adm_menus" style="height: 296px; width: 0px; display: none;" allowtransparency="true">                                     </iframe>                                 </td>                                 <td id="tab-td-8" class="ui-widget-content ui-corner-bottom" style="display: none; width: 0">                                     <iframe id="tab-content-8" class="tab_content" frameborder="0" src="/adm_settings" style="height: 296px; width: 0px; display: none;" allowtransparency="true">                                     </iframe>                                 </td>                                 <td id="tab-td-9" class="ui-widget-content ui-corner-bottom" style="display: none; width: 0">                                     <iframe id="tab-content-9" class="tab_content" frameborder="0" src="/adm_uploads" style="height: 296px; width: 0px; display: none;" allowtransparency="true">                                     </iframe>                                 </td>                                 <td id="tab-td-10" class="ui-widget-content ui-corner-bottom" style="display: none; width: 0">                                     <iframe id="tab-content-10" class="tab_content" frameborder="0" src="/adm_members" style="height: 296px; width: 0px; display: none;" allowtransparency="true">                                     </iframe>                                 </td>                                 <td id="tab-td-11" class="ui-widget-content ui-corner-bottom" style="display: none; width: 0">                                     <iframe id="tab-content-11" class="tab_content" frameborder="0" src="/adm_resellers" style="height: 296px; width: 0px; display: none;" allowtransparency="true">                                     </iframe>                                 </td>                                 <td id="tab-td-12" class="ui-widget-content ui-corner-bottom" style="display: none; width: 0">                                     <iframe id="tab-content-12" class="tab_content" frameborder="0" src="/adm_archive" style="height: 296px; width: 0px; display: none;" allowtransparency="true">                                     <p>asdasdas</p>                                     </iframe>                                 </td>                                  </tr>                             </tbody>                         </table>                     </td>                 </tr>             </tbody>         </table>  </div>   </body> </html> 

my goal when click on tab,that tab page present in iframe.but cant see iframe,what should iframe src?


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -