Hi Niksen,

Saya sedang mencoba mengerti, sebenarnya apa sih yang ingin dicapai dengan
"jeruk kok makan jeruk" ini. Bisa dijelaskan?
Saya percaya ada cara yang lebih baik daripada melakukan hal seperti ini.

Daniel?

2010/2/8 Niksen Harjanto <[email protected]>

>
>
> Rekan, saya punya 1 file JSP yang isinya meng-include JSP header sama
> servlet lain, tapi kenapa cuma 2 include awal aja yang tampil ya? Yang
> lainnya "menghilang"...
>
> ini skrip di JSPnya
>
> <html>
> <head>
> <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>
> <title>JSP Page</title>
> </head>
> <body>
> <h1>INDEX.JSP</h1>
> <%
> RequestDispatcher rd;
> rd = request.getRequestDispatcher("header.jsp");
> rd.include(request, response);
> rd = request.getRequestDispatcher("MessageServlet");
> rd.include(request, response);
> rd = request.getRequestDispatcher("form2.jsp");
> rd.include(request, response);
> rd = request.getRequestDispatcher("form3.jsp");
> rd.include(request, response);
> %>
> Jangan bilang kalo Index.jsp-nya ga bisa diload!!!
> <form name='form1' action='form2.jsp' method='POST'>
> <input type='submit' value='Press To Continue' name='btnContinue' />
> </form>
> </body>
> </html>
>
> Hasil di browwsernya :
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd";>
>
> <h1>Ini HEADER.JSP</h1>
> <h1>Message Servlet nih....</h1><br>
> Error Message-nya : bla bla bla<br>
>
> Apa statement include itu terbatas untuk 2 dokumen(JSP/servlet) aja?
>
> Makasih....
>  
>



-- 
-o--o---( ^  ^ )---o--o-
Speed Optimization: Seek and ye shall find!
In case it isn't in the cache yet, too bad, you've to wait 40x longer.
Daniel Baktiar (http://dbaktiar.wordpress.com)

Kirim email ke