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

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -