| |

VerySource

 Forgot password?
 Register
Search
View: 697|Reply: 2

What do Config and Context mean in JSP?

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-18 13:00:01
| Show all posts |Read mode
What do Config and Context mean in JSP? What is the relationship between them, and what role do they play?
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-2-16 01:30:01
| Show all posts
config refers to the configuration of the servlet. If Context refers to pageContext, then it is to manage the access to the visible part of the JSP. Both are built-in objects. Even newbie. . . . . Don't make fun of prawns
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-2-22 22:15:02
| Show all posts
context You refer to the pagecontext object, which provides access to other JSP hidden objects. It is more common to use setAttribute () and getAttribute () methods to set and find objects. The config object is derived from ServletConfig, which contains the configuration information of the current JSP / Servlet web application.
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