Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can you explain that?

 
Zhixiong Pan
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ranchers,
I am confused by such a statement in JSP.

Could you help me explain it?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
param is a Map containing request parameters.
So param.start will look for a request parameter called "start", and take its value.
empty checks if a value is null or empty. Si if the "start" parameter does not exist, or if it's value is empty, it will return true.
${!empty param.start} will return true if "start" is not empty.
If this is true, the body tag of the "if" tag will be executed.
 
Zhixiong Pan
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Very clear, thank you Satou.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic