• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in HFSJ on Using JSp chapter

 
Vasanth Raja.K.
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
On Page 338,Q.no:11 I have a doubt in that question.



I want to know what is this?
{%>You are valid!<%}

Is this jsp compile???
 
Mat Williams
Ranch Hand
Posts: 215
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Line 14 is the same as this
<% if(user.isValid()){%>
You are valid!<
%} %>
 
Mat Williams
Ranch Hand
Posts: 215
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Line 14 is the same as this
<% if(user.isValid()){%>
You are valid!<
%} %>
 
Vasanth Raja.K.
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Mat.I got it.
 
Mat Williams
Ranch Hand
Posts: 215
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry I will try that again.

Line 14 is the same as this

<% if(user.isValid()){%>
You are valid!
<%} %>

which is simply in java
if(user.isValid()) {
System.out.println("You are valid!");
}

Mat
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic