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?

Answers were Sorted based on User's Feedback



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

Answer / guest

jsp expressions are evaluated at the run time,
jsp compiler evaluates the expressions at the run time.

Is This Answer Correct ?    2 Yes 1 No

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

Answer / 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

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

Answer / rajini

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
<%= someexpression %>
<%= (new java.util.Date()).toLocaleString() %>
You cannot use a semicolon to end an expression

Is This Answer Correct ?    1 Yes 1 No

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

Answer / pratique suhane

ex : <%=a%>

in background : out.println(a);

Is This Answer Correct ?    1 Yes 1 No

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

Answer / vinoth mca

JSP expressions are a quick way to insert data into an HTML page. In Math, an expression is a way to represent a single value different ways. I could represent the number 6 with the expressions, (3+3) or (2*3). In JSP, the idea is the same. But instead of coming up with a mathimatical value, the result of an expression is converted to a string it can be displayed as part of an HTML Page.

An expression is enclosed in these tages: <%= %> For example, To add 2+2 and display the result, you would enter the following:

<%= 2+2 %>

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More JSP Interview Questions

What is a scriptlet?

0 Answers  


Explain the jsp:setProperty action.

0 Answers  


What is the difference between directive include and jsp include?

0 Answers  


Can we override the jspinit(), _jspservice() and jspdestroy() methods?

0 Answers  


Give uses of object cloning?

0 Answers  


How to restrict page errors display in a JSP page?

0 Answers  


Show attributes of page directives.

0 Answers  


Mention the advantages of jsp over pure servlets?

0 Answers  


What do you mean by jsp directives?

0 Answers  


Explain the advantages in jsp?

0 Answers  


Explain the difference between jspwriter and servlet printwriter in jsp?

0 Answers  


How do you delete the session data?

0 Answers  


Categories