java - inject style attribute based on parameter from Action in select item on JSP -


I am trying to find out the solution for hours, but still failed: (

Here's the simple Devel on my JSP:

  

I Like style:

  

But this style list is dependent on the object size which is coming from the Straps action, so it results to JSP action success I was just trying to smthg like trial injection value:

  <: s: set name = "divStyle" value = "display: none;" /> & lt ; Div class = "message" style = "& lt; s: property value =" county style "/>> Hello user!   

and I tried:

  <: set name = "divStyle" value = "<: if test =" elementfraction_activation1 gt "and" display: none; & Lt; / S: If & gt; "/> & lt; div class =" message "style =" & lt; S: property value = "divst yale" /> "& gt; hello user!  

and:

  
1" & gt; Display: None; & Lt; / S: if & gt; "/ & gt;" & gt; Hello USER! & Lt; / Div & gt;

But it also was not working: (

Can someone give advice on how to inject them

In the & lt; s: set / & gt; snippet, you get strats tags to nest There is an error, which is an error.

In your final snippet, there is a typo: You are closing an un-opened tag with /> . < / P>

Change it

  and 

From

 1 "& gt; Display: none;  Hello user! 

Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -