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 !!!

What is a Expression,Declaration,Scriptlet in jsp?

!!!Answer!!!- From Technical Expert

<b>expression </b>
An expression tag contains a scripting language expression that is evaluated, converted to a String, and inserted where the expression appears in the JSP file. Because the value of an expression is converted to a String, you can use an expression within text in a JSP file. Like
<%= emp.getName()%>
<%= (new java.util.Date()).toLocaleString() %>
You cannot use a semicolon to end an expression.

All the expression code is converting to servlet. All the expressions go to inside service() method of the convert servlet.


<b>Declaration</b>
A declaration declares one or more variables or methods for use later in the JSP source file.
A declaration must contain at least one complete declarative statement. You can declare any number of variables or methods within one declaration tag, as long as they are separated by semicolons. The declaration must be valid in the scripting language used in the JSP file.

<%! int i = 0; %>
<%! int a, b, c; %

You can add method to declaration part.
<%!
public String trimData(String str){
return str.trim();
}
%>

You can call the method within the jsp.

All the declaration code is converting to servlet. If you add method , the method is in convert servlet. All varibales are instance variable in the convert servlet.

<b>Scriptlet</b>
Scriptlet code is like java logic. you can declare varibales in the scriptlet and do the logic.
All the Scriptlet go to inside service() method of the convert servlet.

<%
int n=10;
for(int i=0;i<n;i++){
}
%>


Answered By : HIi Replied Date : Jul 30 2009
Answer : Answer


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


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


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


Answered By : null Replied Date : Jan 26 2014
Answer :


Answered By : null Replied Date : Jan 10 2014
Answer :


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


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


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


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


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


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


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


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


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


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


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


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


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


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


Answered By : null Replied Date : Mar 16 2014
Answer :


Answered By : null Replied Date : Mar 24 2014
Answer :


Answered By : null Replied Date : Mar 31 2014
Answer :


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


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


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


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


Answered By : null Replied Date : Jun 5 2014
Answer :


Answered By : null Replied Date : Jun 6 2014
Answer :


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


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


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


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


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


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


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


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


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


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


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


Answered By : null Replied Date : Sep 28 2014
Answer :


Answered By : null Replied Date : Sep 29 2014
Answer :


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


Answered By : null Replied Date : Dec 2 2014
Answer :


Answered By : null Replied Date : Dec 4 2014
Answer :


Answered By : null Replied Date : Dec 5 2014
Answer :


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


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


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


Answered By : null Replied Date : Dec 12 2014
Answer :


Answered By : null Replied Date : Dec 13 2014
Answer :


Answered By : null Replied Date : Dec 17 2014
Answer :


Answered By : null Replied Date : Dec 20 2014
Answer :


Answered By : null Replied Date : Dec 20 2014
Answer :


Answered By : null Replied Date : Dec 21 2014
Answer :


Answered By : null Replied Date : Dec 21 2014
Answer :


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


Answered By : null Replied Date : Dec 29 2014
Answer :


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


Answered By : null Replied Date : Feb 2 2015
Answer :


Answered By : null Replied Date : Feb 24 2015
Answer :


Answered By : null Replied Date : Mar 27 2015
Answer :


Answered By : null Replied Date : Mar 28 2015
Answer :


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


Answered By : null Replied Date : Apr 15 2015
Answer :


Answered By : null Replied Date : May 9 2015
Answer :


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


Answered By : null Replied Date : May 13 2015
Answer :


Answered By : null Replied Date : Jun 13 2015
Answer :


Answered By : null Replied Date : Jun 16 2015
Answer :


Answered By : null Replied Date : Jul 19 2015
Answer :


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


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


Answered By : null Replied Date : Jul 24 2015
Answer :


Answered By : null Replied Date : Jul 26 2015
Answer :


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


Answered By : null Replied Date : Sep 16 2015
Answer :


Answered By : null Replied Date : Sep 18 2015
Answer :


Answered By : null Replied Date : Sep 25 2015
Answer :


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


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


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


Answered By : null Replied Date : Dec 18 2015
Answer :


Answered By : null Replied Date : Dec 20 2015
Answer :


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


Answered By : null Replied Date : Dec 26 2015
Answer :


Answered By : null Replied Date : Jan 16 2016
Answer :


Answered By : null Replied Date : Jan 16 2016
Answer :


Answered By : null Replied Date : Feb 2 2016
Answer :


Answered By : null Replied Date : Feb 7 2016
Answer :


Answered By : null Replied Date : Feb 29 2016
Answer :


Answered By : null Replied Date : Mar 18 2016
Answer :


Answered By : null Replied Date : Mar 18 2016
Answer :


Answered By : null Replied Date : Mar 22 2016
Answer :


Answered By : null Replied Date : Mar 22 2016
Answer :


Answered By : null Replied Date : Mar 25 2016
Answer :


Answered By : null Replied Date : Mar 25 2016
Answer :


Answered By : null Replied Date : Mar 27 2016
Answer :


Answered By : null Replied Date : Mar 27 2016
Answer :


Answered By : null Replied Date : Mar 30 2016
Answer :


Answered By : null Replied Date : Mar 30 2016
Answer :


Answered By : null Replied Date : Apr 1 2016
Answer :


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


Answered By : null Replied Date : Apr 5 2016
Answer :


Answered By : null Replied Date : Apr 9 2016
Answer :


Answered By : null Replied Date : Apr 11 2016
Answer :


Answered By : null Replied Date : Apr 13 2016
Answer :


Answered By : null Replied Date : Apr 14 2016
Answer :


Answered By : null Replied Date : Apr 17 2016
Answer :


Answered By : null Replied Date : Apr 19 2016
Answer :


Answered By : null Replied Date : Apr 29 2016
Answer :


Answered By : null Replied Date : May 22 2016
Answer :


Answered By : null Replied Date : May 22 2016
Answer :


Answered By : null Replied Date : Jun 28 2016
Answer :


Answered By : null Replied Date : Jul 2 2016
Answer :


Answered By : null Replied Date : Jul 7 2016
Answer :


Answered By : null Replied Date : Jul 7 2016
Answer :


Answered By : null Replied Date : Aug 25 2016
Answer :


Answered By : null Replied Date : Aug 25 2016
Answer :


Answered By : null Replied Date : Aug 25 2016
Answer :


Answered By : null Replied Date : Sep 1 2016
Answer :


Answered By : null Replied Date : Sep 3 2016
Answer :


Answered By : null Replied Date : Sep 6 2016
Answer :


Answered By : null Replied Date : Sep 9 2016
Answer :


Answered By : null Replied Date : Sep 10 2016
Answer :


Answered By : null Replied Date : Sep 29 2016
Answer :


Answered By : null Replied Date : Sep 29 2016
Answer :


Answered By : null Replied Date : Sep 29 2016
Answer :


Answered By : null Replied Date : Sep 29 2016
Answer :


Answered By : null Replied Date : Sep 29 2016
Answer :


Answered By : null Replied Date : Sep 30 2016
Answer :


Answered By : null Replied Date : Sep 30 2016
Answer :


Answered By : null Replied Date : Sep 30 2016
Answer :


Answered By : null Replied Date : Sep 30 2016
Answer :


Answered By : null Replied Date : Sep 30 2016
Answer :


Answered By : null Replied Date : Sep 30 2016
Answer :


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


Answered By : null Replied Date : Nov 15 2016
Answer :


Answered By : null Replied Date : Dec 25 2016
Answer :


Answered By : null Replied Date : Dec 28 2016
Answer :


Answered By : null Replied Date : Dec 30 2016
Answer :


Answered By : null Replied Date : Jan 2 2017
Answer :


Answered By : null Replied Date : Feb 16 2017
Answer :


Answered By : null Replied Date : Feb 19 2017
Answer :


Answered By : null Replied Date : Mar 28 2017
Answer :


Answered By : null Replied Date : Mar 30 2017
Answer :


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


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


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


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


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


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


Answered By : null Replied Date : Jul 31 2017
Answer :


Answered By : null Replied Date : Aug 4 2017
Answer :


Answered By : null Replied Date : Aug 4 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