Fórum

resource variable can not resolved in jsp

thumbnail
Naresh Reddy Kallamadi, modificado 7 Anos atrás.

resource variable can not resolved in jsp

Regular Member Postagens: 120 Data de Entrada: 09/07/14 Postagens Recentes
Hi All,

I have one portlet with multiple jsps, I am using resource url and referring it in Ajax call but it is giving error like "An error occurred at line: 23 in the jsp file: /html/my/my.jsp"

I have included my.jsp in one.jsp

my.jsp code:
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%>
<portlet:defineObjects />
<portlet:resourceURL id="renderDetails" var="renderDetails" />

Ajax call:

$.ajax({
url: "<%=renderResults%>",
dataType: "json",
data:{"id":"<%=Id%>"},
type: "post",

Error:


An error occurred at line: 17 in the jsp file: /html/my/my.jsp
renderResults cannot be resolved to a variable
14: var classValue="";
22: $.ajax({
23: url: "<%=renderResults%>",
24: dataType: "json",
25: data:{"Id":"<%=Id%>"},
26: type: "post",


Can any one help me out

Thanks,
Naresh kallamadi
thumbnail
David H Nebinger, modificado 7 Anos atrás.

RE: resource variable can not resolved in jsp

Liferay Legend Postagens: 14915 Data de Entrada: 02/09/06 Postagens Recentes
Naresh Reddy Kallamadi:
my.jsp code:
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%>
<portlet:defineObjects />
<portlet:resourceURL id="renderDetails" var="renderDetails" />

Ajax call:

$.ajax({
url: "<%=renderResults%>",
dataType: "json",
data:{"id":"<%=Id%>"},
type: "post",


Simple variable name error.





Come meet me at the LSNA!
thumbnail
Naresh Reddy Kallamadi, modificado 7 Anos atrás.

RE: resource variable can not resolved in jsp (Resposta)

Regular Member Postagens: 120 Data de Entrada: 09/07/14 Postagens Recentes
If I created resource urls in mailn jsp instead of included one then I able to resolved above issue.