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

Can we define a class in a jsp page?

903


What are the jsp standard actions?

1001


What are the implicit, internal objects and methods on the jsp page?

892


What are jsp action tags?

847


HOW CAN WE COMPARE TWO PDF FILES USING JSP ?

2915


Can you disable jsp scripting?

954


Differentiate between jsp scriptlet tag and declaration tag.

1044


What is session setattribute?

906


How can I override the jspinit() and jspdestroy() methods within a jsp page?

948


What are the jsp tag?

958


What are different implicit objects of jsp?

927


How is jsp better than servlet technology?

1023


How does a jsp engine work?

925


What is the difference between java servlet and jsp?

911


What is < jsp:forward> tag for?

937