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)

JSP Tutorials

JSP Scriptlets , Expression and Declaration

Syntax of JSP Scriptles are:

//java codes
int i = 6;
i = i+9;
JSP Scriptlets begins with <% and ends %> .We can embed any amount of java code in the JSP Scriptlets. JSP Engine places these code in the _jspService() method.

Syntax of JSP Expression are:
Syntax of JSP Scriptles are with <%= and ends with %>. Between these this you can put anything and that will converted to the String and that will be displayed.
In the JSP if you want to display the value of i.

Syntax of JSP Declaration are:
You can declare any variable and you can write any method also. This method is accesible in the JSP.

Between these <%! %> you can put anything and that will placed into converted servlet.
public int getValue(){
int j=9;
return j;

In the JSP you can use the method like

In the converted servlet you have public method name : public int getValue(){}

Reviews and Comments

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

Copyright © www.techfaq360.com 2019

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