/* Copyright (c) SEMM NL All rights reserved.
Author : Paul Hamaker. Part of JavaLessons.com
This code is for educational purposes only. Use at own risk.*/

1. <!--========= querystr.jsp ==========================--> 

2. <HTML

3. <HEAD

4. <TITLE

5. JSP Query String 

6. </TITLE

7. </HEAD

8.  

9. <BODY

10.  

11. <A HREF

12. "querystr.jsp?fullname=James%20Bean&city=Peopolis"

13. Link to this page with query-string 

14. </A

15.  

16. <h2

17.  

18. This page's URL contains<br> 

19. <u> 

20.   <%= request.getQueryString() %> 

21.  

22. </u><br> as query-string. 

23. <hr

24. First parameter is :<br

25. <u> 

26.   <%=  request.getParameter("fullname")  %> 

27.  

28. </u>. 

29. <hr

30. Second one :<br

31. <u> 

32.  

33.   <%=  request.getParameter("city")  %> 

34.  

35. </u>. 

36. <hr

37. Third ??? :<br

38. <u> 

39.  

40.   <%=  request.getParameter("telephone")  %> 

41.  

42. </u>. 

43. </h2

44. EL 

45.     ${ pageContext.request.queryString } 

46.     ${ param['fullname'] } 

47.     ${ param.fullname } 

48. </BODY></HTML

49. <%--  

50. application : pageContext.servletContext 

51. session : pageContext.session 

52.  --%> 

53.