js| page JSP pages are pages generated by web developers using JSP built-in tags and custom tags, combined with other static tags (HTML or XML tags). The JSP page has an extension of. jsp or. jspx,web server to notify the JSP engine to process the elements of the page through this extension. You can also use other extensions to contact the JSP engine by deploying the description file Web.xml.
The exact format of the JSP page is described in the JSP specification.
How does a JSP page work?
Explain the tags in the JSP page through the JSP engine to produce the desired content. For example, call a bean to access a database that uses the JDBC API or to include a file. The JSP engine then sends the returned results to the browser as an HTML (or XML) page. Essentially, the business logic of the generated content is encapsulated in the label and beans of the server-side processing.
Does JSP technology need to use other Java platform APIs?
JSP pages are usually compiled into Java platform servlet classes. As a result, JSP pages need to be run with Java virtual machines that support the Java platform servlet specification.
How can JSP pages be invoked and compiled?
The JSP page is actually compiled only once when it is first invoked. The page is compiled into a Java Servlet class and resides in server memory so that the page will be called soon after.
What is the syntax of JSP technology?
The syntax and references for JSP can be browsed and downloaded on our website.
Can I use JSP technology to generate XML pages?
Of course, the JSP specification supports the creation of XML documents. For simple XML document generation, XML tags are included in the static portion of the JSP page. Dynamic XML builds need to be implemented using bean components or custom tags. See the White Paper developing XML Solutions with JavaServer Pages Technology (PDF) for more details.
Can I use XML tools to generate and process JSP pages?
The JSP 2.0 specification describes the mapping between JSP pages and XML documents. This mapping enables you to use XML tools to generate and process JSP pages.
How do I use the Javabeans component (bean) in a JSP page?
The JSP specification includes a standard label for using and processing beans. Use the Usebean tag to generate an instance of a particular JavaBeans. If an instance of this class already exists, it is used directly. Otherwise, create a new instance. The SetProperty and GetProperty tags allow you to manipulate the properties of a given object. These tags are described in detail in the JSP Specification and guide.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.