java - '#' character before EL expression used inside a JSTL tag behaves strangely -
I have the following code to set up a userId variable:
(set up userId in the first code )
& lt; C: set var = "userId" value = "(crust # $ {userId})" />
creates the following string: (Remote # $ {userId})
The following code works as expected, though:
< Pre> & lt; C: set var = "userId" value = "(crust # $ {userId})" />
displays the following string (Crop # 0001).
Why does '#' character prevent expression from string before expression '$ {string}'? Is there any work that I could not use to involve some place?
Since JSF will use to return the user ID, I guess it is either a bug Or is expected behavior that is due to #.
& Lt; C: set var = "userId" value = "(crust and amp; # 35; $ {userId})" /> & Lt; C: set var = "userId" & gt; (Custom & amp; # 35; $ {userId}) & lt; / C: Set & gt;
Comments
Post a Comment