java - Constant resolution inside EL variable -
I wonder what is the solution to this problem:
- I use Spring I have a MVC
- I have a value for the attribute where I save an object as continuous
- I want to use the model through that stability in JSP, Something like this:
$ {
Do not worry, I do not want to use just the screenplate for clarification, how can I get it?
Edit:
I want to communicate between the Portlet / Selat and JSP through the Static Dialogues. And so instead of using $ {allMyTemplates}
, I want to use something described above.
According to your understanding, you can convert jpeg from static file into java to constant
Need to read. There is one that is constantly read from the Java file. ()
Use continuously to read from a Java file
You need to add a jar file for this and tag the liability in your JSP file below:
< Code> & lt;% @ taglib uri = "http: // jakarta .apache.org / taglibs / unstead -1.0" prefix = "un"% "
For any continuous reading you must first include the bottom row for a Java static file:
& lt; Un: useConstants var = "regStatus" Com.example.YourConstantsClass "/>
Continue reading from the bottom line:
Gt; $ {Constants.MY_CONSTANT_1} & lt; / p & gt;
provide the same functionality.
This will help you.
< / Div>
Comments
Post a Comment