Variable value:
Output a variable value to the JSP page: <s: property value = "name"/>
<S: debug> dddd </s: debug>
Debug Struts2.0 page Parameters
<S: if test = "mgrLevel = false & exeLevel = false">
</S: if>
View plain
<Span style = "font-family: Microsoft YaHei;"> H 15:36:01
<S: if test = "mgrLevel = false & exeLevel = false">
</S: if> what does this sentence mean?
Where does mgrLevel variable come from?
Li 15:36:25
Er...
In the background action
H 15:36:31
JSP page does not seem to have a statement
Can I use it directly on the JSP page?
Li 15:37:04
Hmm
H 15:37:18
.... Sorry.
Li 15:37:32
No, as long as the get and set methods are available for backend properties.
Can be directly obtained in jsp
H 15:37:44
Oh .....
Li 15:37:46
This is struts2's advantage
H 15:37:54
<S: if test = "mgrLevel = false & exeLevel = false">
</S: if>
What does test mean?
Li 15:37:54
Struts1 won't work.
Test indicates the meaning of the test.
H 15:38:19
I have learned struts1.2 before.
Li 15:38:23
It's easy for you to understand it. It's the same as if.
H 15:38:29
Okay. Thank you. </span>
From Hurry's column