- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What are JSP actions elements?
Actions use constructs in XML syntax to control the behavior of the servlet engine. You can dynamically insert a file, reuse JavaBeans components, forward the user to another page, or generate HTML for the Java plugin.
There is only one syntax for the Action element, as it conforms to the XML standard −
<jsp:action_name attribute = "value" />
Action elements are basically predefined functions. The following table lists out the available JSP actions −
S.No. | Syntax & Purpose |
---|---|
1 | jsp:include Includes a file at the time the page is requested. |
2 | jsp:useBean Finds or instantiates a JavaBean. |
3 | jsp:setProperty Sets the property of a JavaBean. |
4 | jsp:getProperty Inserts the property of a JavaBean into the output. |
5 | jsp:forward Forwards the requester to a new page. |
6 | jsp:plugin Generates browser-specific code that makes an OBJECT or EMBED tag for the Java plugin. |
7 | jsp:element Defines XML elements dynamically. |
8 | jsp:attribute Defines dynamically-defined XML element's attribute. |
9 | jsp:body Defines dynamically-defined XML element's body. |
10 | jsp:text Used to write template text in JSP pages and documents. |
- Related Articles
- What are the Actions class in Selenium?
- What are the mobile device authentication actions?
- What are JSP comments?
- What are JSP Directives?
- What are JSP literals?
- What are filters in JSP?
- What are cookies in JSP?
- What are advantages of using JSP?
- What are the different scope values for the JSP action in JSP?
- What are JSTL Core tags in JSP?
- What implicit objects are supported by JSP?
- What are JSTL formatting tags in JSP?
- What are JSP declarations? In how many ways we can write JSP declarations?
- What are various attributes Of page directive in JSP?
- What do the id and scope attribute mean in the action elements in JSP?

Advertisements