Reload a JSP via STRUT only in a section of the page

0

I need to include a jsp within a section of a web page so that when I click on a menu, only one section is reloaded and not the menu, the problem is that the solutions I found on the internet do not work for me What is the system that I am seeing? Originally this was done with an iframe but I have to do without that because it is already deprecated.

Solutions appear on the internet, such as using the include ( jsp: include page="pagina.jsp" / > ) or a .load ( $ ('# Div'). load ('/ page.jsp'); ), even using ajax also calls a route, but there is a problem, it does not load the variables or what that JSP needs.

This happens because in the system I am using STRUTS 1.0, so that each jsp to which access is configured in a file strut-config.xml where all the forwards are to the addresses of the jsp, but this method works with actions, modules which allow the whole page to load well with its input parameters.

As internet solutions omit that and it's just a direct link, it does not work for me.

This is a normal link to a JSP by struts. (MaintainerMail is the name assigned for the route)

<html:link forward="MantenedorCorreo" target="pantalla">Medidas por vencer</html:link>

In the strut-config.xml file it is declared as follows:

<forward name="MantenedorCorreo" path="/jsp/Mao/MaoAdmMantenedorCorreoBtp.jsp" />

I'm currently loading a common page into another one and it works fine

<script type="text/javascript">

function cargar(div, destino){
   $(div).load(destino);   
}
</script>

<a href="Javascript: cargar('#pantalla','calendar.html');">Calendario</a>

My intention is to adapt the direction of strut where I place calendar.html

How could you adapt something like that? Call the page that goes through your normal strut process and load it into a div on the main page?

Thank you very much !!!

    
asked by user3674768 05.09.2018 в 16:03
source

0 answers