|
|
|
JSP Tutorials
|
Conditional Include with
Whenever we want to check that the value entered by the user is fulfilling the condition or not, then in these condition the tag is used. In this tag there is no way to specify the default value.
View Rating |
|
|
JSP Tutorials
|
JSTL for Loop
Consider a case where we want to do something with a collection like an array, retrieving one element at a time, and prints that element in a dynamically generated row.
View Rating |
|
|
JSP Tutorials
|
JSTL: another for each and status
In this program we are declaring one array of type String in which we are going to store some movies name in it. This declaration will be done inside the scriptlet directive. Now set the attribute by using the pageContext implicit object.
View Rating |
|
|
JSP Tutorials
|
Creating a Local Variable in JSP
In jsp when we have to create a method or variable we usually declare it inside the declaration tag. If we declare it inside the declaration directive then then the scope of the variables will be applicable in the whole page. This works like a instance va
View Rating |
|
|
JSP Tutorials
|
JSTL If- Else
The problem with is that, this tag will not work if the value entered by the user doesn't match any of the condition given in the program. In this tag there is no way to specify the default value.
View Rating |
|
|
JSP Tutorials
|
in JSTL
The JSP Standard Tag Library (JSTL) core library, provides custom tags for basic functionality. Instead of using those hardcoded scriptlet, It allows you to program your pages using tags.
View Rating |
|
|
JSP Tutorials
|
EL and Complex Java Beans
EL means the expression language , it makes it possible to easily access application data stored in JavaBeans components. The jsp expression language allows a page author to access a bean using simple syntax such as $(name).
View Rating |
|
|