Sep 18

When using JTST to access a request parameter we typically use something like this:

${param.xyz}

If the parameter name contains a . then this becomes

${param.xyz.abc}

Problem is that JSTL interprets this as being the abc property of the xyz bean which is not what we want.

In this case we instead need to use the more long winded JSTL syntax for specifying the property name of interest:

${param['xyz.abc']}

This now correctly returns the value of the request paramater with name ‘xyz.abc’.

written by objects \\ tags: , , , ,


Leave a Reply

You must be logged in to post a comment.