Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@jakarta.apache.org Received: (qmail 7897 invoked by uid 500); 22 Aug 2001 10:23:22 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: struts-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 7888 invoked from network); 22 Aug 2001 10:23:20 -0000 Received: from unknown (HELO dns1.mphasispune.com) (203.197.90.213) by h31.sny.collab.net with SMTP; 22 Aug 2001 10:23:19 -0000 Received: by mail.mphasispune.com with Internet Mail Service (5.5.2653.19) id ; Wed, 22 Aug 2001 15:50:59 +0530 Message-ID: <31CCFF317E4BD41199A200508B5F3F804F7EBD@mail.mphasispune.com> From: Anwar Sadat To: "'struts-user@jakarta.apache.org'" Subject: problem in including file in INCLUDE TAG in jsp Date: Wed, 22 Aug 2001 15:50:54 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C12AF4.205B5D90" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C12AF4.205B5D90 Content-Type: text/plain; charset="ISO-8859-1" Hi all, I have a problem in including a html file in the JSP file. I have a 2 jsp's. The first jsp has a submit button. When i click on this submit button, I pass the filename as hidden type. I get this hidden variable in my next jsp. I will am trying to include this hidden variable in my include tag. here is the code snippet. first JSP.
My second JSP <% String sUrl = request.getParameter("url"); %> <%@ include file="<%=sUrl%>" %> Is this correct.. I am having problems in compiling the second JSP.. Kindly help me regarding this. Quick response is appreciated. Thanx in advance. Regards Anwar K ------_=_NextPart_001_01C12AF4.205B5D90 Content-Type: text/html; charset="ISO-8859-1" AW: SilverStream behind firewall
Hi all,
   I have a problem in including a html file in the JSP file.
I have a 2 jsp's. The first jsp has a submit button.
When i click on this submit button, I pass the filename as hidden type.
I get this hidden variable in my next jsp.
I will am trying to include this hidden variable in my include tag.
 
here is the code snippet.
 
first JSP.
 
<form name=editPreferences method="post" action="http://serverb/two.jsp">
<input type="submit" value="Edit Preferences">
<input type="hidden" name="url" value="/abc.htm">
</form>
 
My second JSP
<% String sUrl = request.getParameter("url"); %>
 
<%@ include file="<%=sUrl%>" %>
 
 
Is this correct.. I am having problems in compiling the second JSP..
 
Kindly help me regarding this.
Quick response is appreciated.
 
Thanx in advance.
 
Regards
Anwar K
------_=_NextPart_001_01C12AF4.205B5D90--