In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you what the meaning and usage of JSP tags, I believe that most people still do not understand, so share this article for your reference, I hope you will learn a lot after reading this article, let's go to understand it!
< jsp:include>The tag indicates that it contains a static or dynamic file.
< jsp:forward>The tag indicates to redirect a static html/jsp file, or a program segment.
Syntax:
< jsp:forward page="path"} />Or
< jsp:forward page="path"} > < jsp:param name="paramName" value="paramValue" />……
< /jsp:forward> < jsp:useBean>The tag indicates that it is used to create an BEAN instance in the JSP page and specify its name and scope.
Syntax:
< jsp:useBean id="name" scope="page | request | session | application" typeSpec />There are several possible scenarios for typeSpec:
Class= "className" | class= "className" type= "typeName" | beanName= "beanName" type= "typeName" | type= "typeName" |
Note:
In the use of this JSP tag, you must use class or type, not both class and beanName. BeanName represents the name of Bean in the form of "a.b.c".
< jsp:getProperty>The tag means to get the value of the property of BEAN, convert it to a string, and then insert it into the output
< jsp:setProperty>The tag represents the value used to set the attribute in the Bean.
< jsp:setProperty name="login" property="username" value="Paopao"> < /jsp:setProperty> < jsp:setProperty name="login" property="password" value="Love"> < /jsp:setProperty> < jsp:plugin>The tag indicates that an applet or Bean is executed and, if possible, a Java plug-in is downloaded to execute it.
The above is all the content of the article "what is the meaning and usage of JSP tags". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.