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

Why is jstl used?

958


How to disable scripting?

1036


What are scripting elements?

1088


How jsp is compiled?

924


Why jsp is used in java?

927


How to send data from jsp to jsp?

978


How do I use comments within a jsp page?

974


How to print java variable in jsp?

994


What is jsp-config in deployment descriptor?

1065


What is jstl (jsp standard tag library)?

980


What is the difference between "JTable" and "JTGrid"? can they be used interchangeably?

2225


How session is achieved in JSP?(once user logs out,if he press back button of browser he should not be allowed to same page)

2485


What are the different jsp element types?

1020


write a program in javasacript to shake the window

2948


What are custom tags in jsp?

1003