[JSP] difference between jsp:forward and jsp:include

Discussion in 'Java' started by alexjaquet, Jun 2, 2006.

  1. alexjaquet

    alexjaquet Guest

    What's the difference between the two :

    <jsp:forward page="two.jsp">
    <jsp:param name="param1" value="value1">
    <jsp:param name="param2" value="value2">
    </jsp:forward>

    <jsp:include page="two.jsp">
    <jsp:param name="param1" value="value1">
    <jsp:param name="param2" value="value2">
    </jsp:include>

    paramaters are passed between the pages

    thx for your advice.
     
    alexjaquet, Jun 2, 2006
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.