Me n My Programming

If Only I Have TIme

JSTL 101 ~ Ternary Operator ? If : Else

This code is important for a short if else :D

${param.numberTxt == 1 ? 'selected' : ''}
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Information

This entry was posted on January 10, 2013 by in Uncategorized and tagged , , , , .
%d bloggers like this: