1600 PMP mock questions 1400 CAPM mock questions 800 SCJP 6 mock questions 600 OCAJP 7 mock questions 590 OCPJP 7 mock questions 556 SCWCD 5 mock questions 500 OCEJWCD 6 mock questions pdfDownload (java,struts, hibernet etc)
 

Recent Questions

!!! JSP Frequently Asked Questions !!!

q.What's the Difference between Forward and Include?

!!!Answer!!!- From Technical Expert

The <jsp:forward> action enables you to forward the request to a static HTML file, a servlet, or another JSP.

<jsp:forward page="url" />

The JSP that contains the <jsp:forward> action stops processing, clears its buffer, and forwards the request to the target resource. Note that the calling JSP should not write anything to the response prior to the <jsp:forward> action.

You can also pass additional parameters to the target resource using the <jsp:param> tag.

<jsp:forward page="test.htm" >
<jsp:param name="name1" value="value1" />
<jsp:param name="name2" value="value2" />
</jsp:forward>

In this example, test.jsp can access the value of name1 using request.getParameter("name1").

<jsp:include execute the code and force a flush of the buffer in the output stream.
If a.jsp has the code like
<jsp:include page="template.jsp" flush="true" >
<jsp:param name="name1" value="value1" />
</jsp:include>

then template.jsp execute and the output is placed in a.jsp

Answered By : null Replied Date : Feb 1 2014
Answer :


Answered By : null Replied Date : Dec 23 2013
Answer :


Answered By : null Replied Date : Nov 3 2013
Answer :


Answered By : null Replied Date : Oct 21 2013
Answer :


Answered By : null Replied Date : Oct 12 2013
Answer :


Answered By : null Replied Date : Feb 9 2014
Answer :


Answered By : null Replied Date : Apr 3 2014
Answer :


Answered By : null Replied Date : May 3 2014
Answer :


Answered By : null Replied Date : May 11 2014
Answer :


Answered By : null Replied Date : Jul 8 2014
Answer :


Answered By : null Replied Date : Aug 15 2014
Answer :


Answered By : null Replied Date : Nov 27 2014
Answer :


Answered By : null Replied Date : Jan 23 2015
Answer :


Answered By : null Replied Date : Nov 11 2015
Answer :


Answered By : null Replied Date : Apr 12 2017
Answer :


Answered By : null Replied Date : May 27 2017
Answer :


 

You can also contribute to this answer:

Your Name:
Answer:

 
Ask Question and get answer from Expert.
View Answers List from Expert.

Reviews and Comments


PMP, CAPM, PMI is a registered certification mark of the Project Management Institute, Inc

Copyright © www.techfaq360.com 2016


About US | Contact US | Privacy Policy | Terms and Conditions  | Website disclaimer  | Cancellation and Refund Policy  | Shipping & Delivery Policy