Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@jakarta.apache.org Received: (qmail 17786 invoked by uid 500); 22 Aug 2001 11:31:31 -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 17779 invoked from network); 22 Aug 2001 11:31:29 -0000 Received: from unknown (HELO dns1.mphasispune.com) (203.197.90.213) by h31.sny.collab.net with SMTP; 22 Aug 2001 11:31:29 -0000 Received: by mail.mphasispune.com with Internet Mail Service (5.5.2653.19) id ; Wed, 22 Aug 2001 16:59:01 +0530 Message-ID: <31CCFF317E4BD41199A200508B5F3F804F7EBF@mail.mphasispune.com> From: Anwar Sadat To: "'struts-user@jakarta.apache.org'" Subject: RE: problem in including file in INCLUDE TAG in jsp Date: Wed, 22 Aug 2001 16:58:55 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C12AFD.A0D6D1D0" 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_01C12AFD.A0D6D1D0 Content-Type: text/plain; charset="ISO-8859-1" Hi Thanx for the response. Still i am having a problem in running the jsp. I am running this on WebSphere 3.5. I am using the servlet engine of WebSphere to run my jsp's. The rest of the lines are being compiled except for this. The error that it throws is SERVLET EXCEPTION regards Anwar -----Original Message----- From: Thai Thanh Ha [mailto:thaiha@psv.com.vn] Sent: Wednesday, August 22, 2001 4:09 PM To: struts-user@jakarta.apache.org Subject: RE: problem in including file in INCLUDE TAG in jsp Hi Anwar, If you want to include dynamically, you should use this action Regards, Thai -----Original Message----- From: Anwar Sadat [mailto:anwar.sadat@mphasis.com] Sent: Wednesday, August 22, 2001 5:21 PM To: 'struts-user@jakarta.apache.org' Subject: problem in including file in INCLUDE TAG in jsp 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_01C12AFD.A0D6D1D0 Content-Type: text/html; charset="ISO-8859-1" AW: SilverStream behind firewall
Hi
  Thanx for the response.
 
Still  i am having a problem in running the jsp.
I am running this on WebSphere 3.5. I am using the servlet engine of WebSphere to run my jsp's.
The rest of the lines are being compiled except for this.
 
The error that it throws is SERVLET EXCEPTION
 
regards
Anwar
-----Original Message-----
From: Thai Thanh Ha [mailto:thaiha@psv.com.vn]
Sent: Wednesday, August 22, 2001 4:09 PM
To: struts-user@jakarta.apache.org
Subject: RE: problem in including file in INCLUDE TAG in jsp

Hi Anwar,
 
If you want to include dynamically, you should use this action
 
<jsp:include page='<%= sUrl %>' flush="true"/>
 
Regards,
Thai
-----Original Message-----
From: Anwar Sadat [mailto:anwar.sadat@mphasis.com]
Sent: Wednesday, August 22, 2001 5:21 PM
To: 'struts-user@jakarta.apache.org'
Subject: problem in including file in INCLUDE TAG in jsp

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