| |

VerySource

 Forgot password?
 Register
Search
Author: jasonning

struts tags solve looping problems

[Copy link]

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-9 14:15:01
| Show all posts
Write the loop in the form in the background. Just use <bean write... in the foreground to call
Simply put, write the html code you want to display in the foreground as an array or String in the background and save it in the form
Then the foreground read


Remember to post
Reply

Use magic Report

1

Threads

5

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

 Author| Post time: 2020-8-10 22:30:01
| Show all posts
This is also a way. If I want to loop on the page, is there a good way to use tags
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-8-11 00:15:01
| Show all posts
<logic:iterate id="entity" name="polQueryList" scope="request" indexId="idx">

The name attribute is the LIST you get in the background
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list