![]() |
VOOZH | about |
The Expression Tag in JSP is used to display output directly on the clientβs browser. It allows embedding Java expressions inside a JSP page and automatically converts them into string output. This tag simplifies printing data without writing explicit output statements.
Syntax:
<%= expression %>
Example
Explanation: In this example, the string "Welcome to GeeksforGeeks" will be printed directly in the client's browser.
Output
This HTML file takes the username from the user and sends it to Geeks.jsp on form submission
Output:
Here we are creating a jsp file names as Geeks.jsp
Explanation:
If user enters Geeks, it displays: Hello Geeks!
Output: