Iframe query string

I have values ​​passing a query string in an iframe. src = "xyxz.jsp?name="+name+"&pass="+pass+"&id="+id.

I need to pass the values ​​that I have on another jsp page <iframe src="xyz.jsp"></iframe>

How can i do this?

+5
source share
3 answers

Your question is not clear, but I assume that you want to submit the request of the parent JSP page to the JSP page that is in the iframeparent JSP page. If so, just type HttpServletRequest#getQueryString():

<iframe src="page.jsp?${pageContext.request.queryString}"></iframe>

, iframe - , . , <jsp:include>. , JSP .

+2

Javascript src

function changeSrc()
{ 
  window.frames['testframe'].src = "xyxz.jsp?name="+name+"&pass="+pass+"&id="+id;
 }

, ?

0

@Manjoor javascript, iframe , ,
JavaScript iframe

0

All Articles