Link to home
Start Free TrialLog in
Avatar of siva arjun
siva arjun

asked on

i don't want reload header, footer and menu, only reload body using IFrame. currently i am using spring tiles frame work

i don't want reload header, footer and menu, only reload body using IFrame. currently i am using spring tiles frame work.
give me some solution using any frame like iframe or jframe
Avatar of David Favor
David Favor
Flag of United States of America image

Providing a solution for this type of question can be time consuming.

You'd have to provide your entire code base.

Likely best to open a Gig for this, as someone will just have to go through your code + work this till they have a resolution.
Avatar of siva arjun
siva arjun

ASKER

layout.xml
<?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="RegistrationTemplate"
      template="/WEB-INF/views/template/SiteTemplate.jsp">
            <put-attribute name="title" value="Home" />
            <put-attribute name="header" value="/WEB-INF/views/template/Header.jsp" />
            <!-- <put-attribute name="menu" value="/WEB-INF/views/template/menu.jsp" /> -->
            <put-attribute name="body" value="" />
            <put-attribute name="footer" value="/WEB-INF/views/template/Footer.jsp" />
      </definition> <!-- Test -->
      
      <definition name="ProfileTemplate"
      template="/WEB-INF/views/template/ProfileTemplate.jsp">
            <put-attribute name="title" value="Home" />
            <put-attribute name="header" value="/WEB-INF/views/template/ProfileHeader.jsp" />
            <!-- <put-attribute name="menu" value="/WEB-INF/views/template/menu.jsp" /> -->
            <put-attribute name="body" value="" />
            <put-attribute name="footer" value="/WEB-INF/views/template/ProfileFooter.jsp" />
      </definition>
      <definition name="Gstr1Template"
      template="/WEB-INF/views/template/Gstr1Template.jsp">
            <put-attribute name="title" value="Home" />
            <put-attribute name="header" value="/WEB-INF/views/template/ProfileHeader.jsp" />
            <!-- <put-attribute name="menu" value="/WEB-INF/views/template/menu.jsp" /> -->
            <put-attribute name="body" value="" />
            <put-attribute name="footer" value="/WEB-INF/views/template/ProfileFooter.jsp" />
      </definition>
      <definition name="Gstr2Template"
      template="/WEB-INF/views/template/Gstr2Template.jsp">
            <put-attribute name="title" value="Home" />
            <put-attribute name="header" value="/WEB-INF/views/template/ProfileHeader.jsp" />
            <!-- <put-attribute name="menu" value="/WEB-INF/views/template/menu.jsp" /> -->
            <put-attribute name="body" value="" />
            <put-attribute name="footer" value="/WEB-INF/views/template/ProfileFooter.jsp" />
      </definition>
      <definition name="Gstr6Template"
      template="/WEB-INF/views/template/Gstr6Template.jsp">
            <put-attribute name="title" value="Home" />
            <put-attribute name="header" value="/WEB-INF/views/template/ProfileHeader.jsp" />
            <!-- <put-attribute name="menu" value="/WEB-INF/views/template/menu.jsp" /> -->
            <put-attribute name="body" value="" />
            <put-attribute name="footer" value="/WEB-INF/views/template/ProfileFooter.jsp" />
      </definition>
      <definition name="gstr3Template"
      template="/WEB-INF/views/template/gstr3Template.jsp">
            <put-attribute name="title" value="Home" />
            <put-attribute name="header" value="/WEB-INF/views/template/ProfileHeader.jsp" />
            <!-- <put-attribute name="menu" value="/WEB-INF/views/template/menu.jsp" /> -->
            <put-attribute name="body" value="" />
            <put-attribute name="footer" value="/WEB-INF/views/template/ProfileFooter.jsp" />
      </definition>
      
            <definition name="BlankTemplate" template="/WEB-INF/views/template/BlankTemplate.jsp">
            <put-attribute name="title" value="" />
            <put-attribute name="header" value="" />
            <put-attribute name="body" value="" />
            <put-attribute name="footer" value="" />
      </definition>
            <definition name="gstr1aTemplate"
      template="/WEB-INF/views/template/gstr1aTemplate.jsp">
            <put-attribute name="title" value="Home" />
            <put-attribute name="header" value="/WEB-INF/views/template/ProfileHeader.jsp" />
            <put-attribute name="body" value="" />
            <put-attribute name="footer" value="/WEB-INF/views/template/ProfileFooter.jsp" />
      </definition>
      <definition name="bodySwitcher" template="/WEB-INF/views/template/bodySwitcher.jsp">
      <put-attribute name="title" value="Home" />
      <put-attribute name="header" value="/WEB-INF/views/template/ProfileHeader.jsp" />
      <put-attribute name="body" value="" />
      <put-attribute name="footer" value="/WEB-INF/views/template/ProfileFooter.jsp" />
      </definition>
</tiles-definitions>
viewa.xml
==========
<?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="gstrResultRepFileGstr1ToGstnata" extends="Gstr1Template">
    <put-attribute name="body"
        value="/WEB-INF/views/jsp/advAmendementFileGstnResult.jsp" />
</definition>
<definition name="getGstinValidation" extends="Gstr1Template">
    <put-attribute name="body"
        value="/WEB-INF/views/jsp/gstinValidationReport.jsp" />
</definition>
<definition name="getFrame" extends="bodySwitcher">
    <put-attribute name="body"
        value="/WEB-INF/views/jsp/gstr1a/frame.jsp" />
</definition>

  <!-- <definition name="getFrame"
        template="/WEB-INF/views/jsp/gstr1a/frame.jsp" >
  </definition> -->
  <definition name="getFrameReport"
        template="/WEB-INF/views/jsp/gstr1a/frameReport.jsp" >
  </definition>
</tiles-definitions>
spring-servlet.xml
===================
<!-- Configuration defining views files -->
      
      <bean id="viewResolver" class="org.springframework.web.servlet.view.tiles3.TilesViewResolver">
            <property name="order" value="1" />
      </bean>
      
      <bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles3.TilesConfigurer">
      <property name="definitions">
      <list>
            <value>/WEB-INF/layouts/layouts.xml</value>
            <value>/WEB-INF/layouts/views.xml</value>
      </list>
      </property>
      </bean>
Hi David
I am using spring tiles3, I dont't want to reload header and footer jsp's, only i want reload body content. Could you please tell me the proper solution, so then i will out this problem.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.