Post on 10-Apr-2018
8/8/2019 WPSJ.D7.1.JSTL Tags - Iterators - Decision
1/14
1
JSTL Tags
1. Iteration
2. Decision making with scriplets
3. Decision making with JSTL tags
8/8/2019 WPSJ.D7.1.JSTL Tags - Iterators - Decision
2/14
2
Sample of Iterations
8/8/2019 WPSJ.D7.1.JSTL Tags - Iterators - Decision
3/14
3
1. Sample of Iteration
1. 2.
3.
4. 5.
6. 7.
8.
9. 11.
12. 13. 14. 15. Using Core Tag Library16.
8/8/2019 WPSJ.D7.1.JSTL Tags - Iterators - Decision
4/14
4
2. Sample of Iteration [cont]
17. 18. 19. There are cars. The Names are:
20.21. 22. 23. 24. 25. 26.
27. 28. The Names of the Bikes are:
29. 30. 31.
32.
33. 34.
8/8/2019 WPSJ.D7.1.JSTL Tags - Iterators - Decision
5/14
5
3. Sample of Iteration [cont]
35. 36. 37.38. 39.
40. 41. 42.43. 44. 45. 46. Successfully Shown the Names47. 48. 49. Unsuccessful To Show the Names50.
51. 52. 53.
8/8/2019 WPSJ.D7.1.JSTL Tags - Iterators - Decision
6/14
6
Add the JSTL library to the project
Right click on the project, select Property
8/8/2019 WPSJ.D7.1.JSTL Tags - Iterators - Decision
7/14
7
Add the JSTL library to the project
Select the library. Then click on Add Librarybutton
Click on OK button to go back the main screen ofNetBean IDE
8/8/2019 WPSJ.D7.1.JSTL Tags - Iterators - Decision
8/14
8
JSTL Tags
1. Iteration
2. Decision making with scriptlets
3. Decision making with JSTL tags
8/8/2019 WPSJ.D7.1.JSTL Tags - Iterators - Decision
9/14
9
2. Sample of decision.jsp (1/3)
1.
2.
3.
4.
5.
6.
7. Word Counter
8.
9. 10.
11. 15. Word Counter
16.
17. Nhp on vn bn yu thch:
18.
8/8/2019 WPSJ.D7.1.JSTL Tags - Iterators - Decision
10/14
10
2. Sample of decision.jsp (2/3)
19. 20.
21. 22.
23.
8/8/2019 WPSJ.D7.1.JSTL Tags - Iterators - Decision
11/14
11
2. Sample of decision.jsp (3/3)
33. 37. S t ca vn bn: 38.
8/8/2019 WPSJ.D7.1.JSTL Tags - Iterators - Decision
12/14
12
JSTL Tags
1. Iteration
2. Decision making with scriplets
3. Decision making with JSTL tags
8/8/2019 WPSJ.D7.1.JSTL Tags - Iterators - Decision
13/14
13
Sample code of decision-tag.jsp (1/2)
1. 2. 3. 4. 5. 6. 7. 8. Word Counter9. 10.
11. Word Counter12. 13. Nhp on vn bn yu thch:14.
15. ${param.para}16.
17. 18.
8/8/2019 WPSJ.D7.1.JSTL Tags - Iterators - Decision
14/14
14
Sample code of decision-tag.jsp (2/2)
19. 20. 21. 22.
23. 24. 25. S t ca vn bn: ${pageScope.nWords}26.
27.
28. 29. Vn bn rt ngn!30. 31. 32. Vn bn rt di!33.
34. 35. 36. 37. 38.