| |

VerySource

 Forgot password?
 Register
Search
View: 1303|Reply: 12

Simple problem with beans in jsp

[Copy link]

1

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-1-30 06:20:01
| Show all posts |Read mode
In the java file, I got the basic information of three people. I want to use the same bean to transfer to the jsp page. How should I use and define this bean in this java file. And how to usebean in jsp
For example: <jsp: useBean id = "?????" scope = "request" class = "">
Novice please expert help.
Reply

Use magic Report

0

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-3-5 19:00:01
| Show all posts
You can write it in front of the vector in the collection class and take it out.
Reply

Use magic Report

0

Threads

2

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-3-6 10:30:01
| Show all posts
return list;
Reply

Use magic Report

0

Threads

9

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-3-14 00:15:01
| Show all posts
Drop into Vector
Reply

Use magic Report

1

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-3-14 20:45:01
| Show all posts
It can be taken out, but: <jsp: useBean id = "?????" scope = "request" class = "">
How to write the id in Chinese?
Reply

Use magic Report

0

Threads

6

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-3-17 18:45:02
| Show all posts
<jsp: userBean id = "aa" scope = "request" class = "xxx.xxxx.xxx.class name">
<%
   List lList = aa. Basic information method for three people;
   

%>
Reply

Use magic Report

0

Threads

6

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-3-17 20:30:02
| Show all posts
lList contains the information you want, I do n’t know, right?
Reply

Use magic Report

1

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-3-18 13:45:01
| Show all posts
its not right
Then aa.getName (); whose name is taken! !! !! !!
Reply

Use magic Report

0

Threads

18

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

Post time: 2020-3-18 15:15:01
| Show all posts
List
List
Reply

Use magic Report

1

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-3-18 22:00:01
| Show all posts
What does List mean?
Are you saying that you don't use beans, use lists to pass parameters! !!
Beginners don't understand
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