| |

VerySource

 Forgot password?
 Register
Search
View: 815|Reply: 1

Use STRUTS tags to intercept characters

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-20 17:20:01
| Show all posts |Read mode
<logic: iterate id = "news" name = "list">
<tr>
<td width = "76%"> ·&nbsp; <a class="link1" href="news_show.jsp" target=_blank>
<bean: write name = "news" property = "name" /> </a> </ td>
<td width = "24%" height = "30" align = "center"> <bean: write name = "news" format = "yyyy-MM-dd" property = "createtime" /> </ td>
</ tr>
</ logic: iterate>

In the page, I use <bean: write name = "news" property = "name" /> to output the content of name, but the content of name is too long. I want to intercept characters of a certain length. Nothing can be achieved, please enlighten prawns !!
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-6-29 07:30:02
| Show all posts
You use JAVASCRIPT to write a small function to intercept, and then use JS document.write() in the corresponding position.
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