In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces how the JSP grammar format is, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
JSP grammar explanation XML:namespace prefix = o ns = "urn:schemas-microsoft-com:Office:office" / >
(1) instruction explanation
Page instruction
Include instruction
Contains a static file
Include action instruction
(1)
(2)
Forward action instruction
(1)
(2)
UseBean instruction
GetProperty instruction
SetProperty instruction
There are several possible scenarios for prop_expr:
Property= "*" | property= "propertyName" |
Property= "propertyName" param= "parameterName" |
Property= "propertyName" value= "propertyValue"
(2) explanation of built-in objects
JSP has the following built-in objects: request, response, out, Session, pageContext, application, config, page
The main methods of the request object:
1. GetParameter (String name) return String
2. GetParameterNames () return Enumeration
3. GetParameterValues (String name) return String []
The main methods of the out object:
1. Out.print (String name)
The main methods of the Session object:
1. GetAttribute (String name) return object
2. GetAttributeNames () return Enumeration
3. GetCreationTime () return long
4. GetId () return String
5. GetLastAccessedTime () return long
6. GetMaxInactiveInterval () return int
7. RemoveAttribute (String name) void
8. SetAttribute (String name, java.lang.Object value) void
The main methods of the application object:
1. GetAttribute (String name) return Object
2. GetAttributeNames () return Enumeration
3. GetInitParameter (String name)
4. GetservletInfo ()
5. SetAttribute (String name, Object object)
Thank you for reading this article carefully. I hope the article "what is the JSP Grammar format" shared by the editor will be helpful to you. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.