JSP cross-iframe how to pass parameters to implement code _javascript skills

Source: Internet
Author: User
Separate form from Action page
Button press, click or onclick event to trigger
Pass a unique parameter to the child page JSP,
Sub pages, responsible for querying and judging logic,
Jsp:forward tried, directly to the error
Copy Code code as follows:

<script type= "Text/javascript" >
function Tigger ()
{
var f_application = 1;
<jsp:forward page= "input.jsp" >
<jsp:param name= "t_application" value= ' <%=f_application%> ' >
</jsp:forward>>
}
</script>

Child pages
Copy Code code as follows:

<%
String tf_application= (Request.getparameter ("t_application"));
%>
<%=tf_application%>
<%
if (tf_application!=null)
{
Tf_application = null;
}
%>
<%=tf_application%>

Trying to use the request or session, how to use the OnClick property on Getatturibute is a challenge
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.