Gelo... lagi gak ada kerjaan jadi nya reply borongan neh gue...

Wakakakka

Pake tag...

<jsp:include />

 

Adelwin Handoyo  |  Senior Consultant - Wholesale Bank
Standard Chartered Bank
Plaza By The Park #06-00, 51 Bras Basah Road. Singapore (189554)
T : (65) 655 72441  | E adelwin.adel...@sc.com 

 

 

________________________________

From: jug-indonesia@yahoogroups.com
[mailto:jug-indone...@yahoogroups.com] On Behalf Of Niksen Harjanto
Sent: Monday, February 08, 2010 2:05 PM
To: jug-indonesia
Subject: [JUG-Indonesia] RequestDispatcher Include Ga Jalan

 

  

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
<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....




This email and any attachments are confidential and may also be privileged.  If 
you are not the addressee, do not disclose, copy, circulate or in any other way 
use or rely on the information contained in this email or any attachments.  If 
received in error, notify the sender immediately and delete this email and any 
attachments from your system.  Emails cannot be guaranteed to be secure or 
error free as the message and any attachments could be intercepted, corrupted, 
lost, delayed, incomplete or amended.  Standard Chartered PLC and its 
subsidiaries do not accept liability for damage caused by this email or any 
attachments and may monitor email traffic.

 

Standard Chartered PLC is incorporated in England with limited liability under 
company number 966425 and has its registered office at 1 Aldermanbury Square, 
London, EC2V 7SB.

 

Standard Chartered Bank ("SCB") is incorporated in England with limited 
liability by Royal Charter 1853, under reference ZC18.  The Principal Office of 
SCB is situated in England at 1 Aldermanbury Square, London EC2V 7SB. In the 
United Kingdom, SCB is authorised and regulated by the Financial Services 
Authority under FSA register number 114276.

 

If you are receiving this email from SCB outside the UK, please click 
http://www.standardchartered.com/global/email_disclaimer.html to refer to the 
information on other jurisdictions.

Kirim email ke