如何将Struts 1链接格式转换为标准URL?
例如
标准网址以HTML格式访问
jsp/Mao/MaoAdmMantenedorCorreobtp.jsp
这是可在jsp / Mao / MaoAdmMantenedororCorreobtp.jsp上访问的struts 1的HTML链接
<html:link forward="MantenedorCorreo" target="pantalla">Link Access</html:link>
此标记要在struts-config.xml中配置
<forward name="MantenedorCorreo" path="/jsp/Mao/MaoAdmMantenedorCorreoBtp.jsp" />
我需要将strut链接转换为普通链接以使用类似的
<a href="Javascript: loadSection('#div-section','jsp/Mao/MaoAdmMantenedorCorreobtp.jsp');">Show Content</a>
到
<a href="Javascript: loadSection('#div-section','<html:link forward="MantenedorCorreo" target="pantalla">Link Access</html:link>');">Show Content</a>
这显然是错误的,但是我需要使该功能生效。换句话说,使用类似转发的URL不会失去功能。 我该怎么办?
谢谢!