/* 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. <HTML

2. <HEAD><TITLE

3. JSP Forward 

4. </TITLE></HEAD

5. <BODY

6. <h2

7.  

8. Not this page, but ..... 

9. </h2

10. <% 

11.   if ( request.getParameter("amount")!= null

12.   { 

13. %> 

14. <jsp:forward  page="another.jsp"  /> 

15. <% 

16.   } 

17. %> 

18. </BODY

19. </HTML

20. ==================== 

21.  <% request.setAttribute(..., ...); %> 

22.  

23. ======== another.jsp ====================== 

24.  

25. <HTML

26. <HEAD><TITLE

27. JSP Forward 

28. </TITLE></HEAD

29. <BODY

30.  

31. <h2

32.  

33. This is  <u> 

34.   <%= request.getServletPath() %> 

35. </u><br

36. with  <u> 

37.   <%= request.getParameter("amount") %> 

38. </u>. 

39.  

40. </h2

41. </BODY></HTML