Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How does the Jsp Expressions works ? What happens at the
back?

Answer Posted / nowsheen tariq

jsp expressions is a normal java expression , when we write
the jsp expression in our jsp page like
<%=some expression%> then in the servlet ie generated by
jsp compiler the jsp expression will be placed without" "
in out.printmethod.

for example :

<%
int i=10,j=20,k=30;%>
k----> <%=k%>

in the servlet equivalent to above jsp page

out.print("k---->");
out.print(k);


like that at the back the jsp expression will be placed in
the out.print()without " " so that the value of the
expresssion will be evaluated and printed.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the features of jsp?

885


What do you mean by context initialization parameters?

874


What do you mean by jsp?

879


What are the advantages and disadvantages of thread-safe jsp page?

925


What is pagecontext?

926


What language is jsp?

966


Can we override jspinit method?

938


Why are implicit objects not available in a regular jsp page?

1076


Can a jsp page instantiate a serialized bean?

898


What is client scripting?

900


How can my application get to know when a httpsession is removed?

925


What's the difference between javabeans and taglib directives?

888


Explain some jsp life-cycle methods that can be overridden.

828


What is an api with example?

965


Explain the action?

994