Struts2 -- interaction between JSP pages and actions

Source: Internet
Author: User

 

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.