
- Basic JSP Tutorial
- JSP - Home
- JSP - Overview
- JSP - Environment Setup
- JSP - Architecture
- JSP - Lifecycle
- JSP - Syntax
- JSP - Directives
- JSP - Actions
- JSP - Implicit Objects
- JSP - Client Request
- JSP - Server Response
- JSP - Http Status Codes
- JSP - Form Processing
- JSP - Writing Filters
- JSP - Cookies Handling
- JSP - Session Tracking
- JSP - File Uploading
- JSP - Handling Date
- JSP - Page Redirect
- JSP - Hits Counter
- JSP - Auto Refresh
- JSP - Sending Email
- Advanced JSP Tutorials
- JSP - Standard Tag Library
- JSP - Database Access
- JSP - XML Data
- JSP - Java Beans
- JSP - Custom Tags
- JSP - Expression Language
- JSP - Exception Handling
- JSP - Debugging
- JSP - Security
- JSP - Internationalization
- JSP Useful Resources
- JSP - Questions and Answers
- JSP - Quick Guide
- JSP - Useful Resources
- JSP - Discussion
JSTL - Core <c:param> Tag
The <c:param> tag allows proper URL request parameter to be specified with URL and also does the necessary URL encoding required.
Within a <c:param> tag, the name attribute indicates the parameter name, and the value attribute indicates the parameter value −
Attribute
The <c:param> tag has the following attributes −
Attribute | Description | Required | Default |
---|---|---|---|
name | Name of the request parameter to set in the URL | Yes | None |
value | Value of the request parameter to set in the URL | No | Body |
Example
If you need to pass parameters to a <c:import> tag, use the <c:url> tag to create the URL first as shown below −
<c:url value = "/index.jsp" var = "myURL"> <c:param name = "trackingId" value = "1234"/> <c:param name = "reportType" value = "summary"/> </c:url> <c:import url = "${myURL}"/>
The above request will pass the URL as below - Try it yourself.
"/index.jsp?trackingId=1234;reportType=summary"
jsp_standard_tag_library.htm
Advertisements