Batakj
Batakj

Reputation: 12743

How to escape a colon using EL in JSP?

We are using 3rd-party tool which provide request parameter as "A:B","A:C","A:D" where A is service (TOOL TERMINOLOGY), and B, C, D are parameters.

How to access a variable using EL?

If I am providing ${param.A:B}, it throws exception. Even I tried with ${param.'A:B'}.

Note: We are avoiding scriptlets as much as possible.

Upvotes: 1

Views: 186

Answers (1)

Roman C
Roman C

Reputation: 1

Use ${param['A:B']}. This is an alternative to dot notation in the expression language.

Upvotes: 2

Related Questions