static getters for bean in JSP JSTL

When you write static getters for a bean’s static properties, you won’t be able to access it using the dot (.) notation in a jsp. Instead you should use a non static public method to access those fields in jsp using the ‘dot’ notation.

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

%d bloggers like this: