> -----Original Message-----
> From: raju punith [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 03, 2002 9:23 PM
> To: [EMAIL PROTECTED]
> Subject: problem with <@include file %>
>
>
> Hi everyone,
>
> following is my jsp snippet .
>
>
> <html>
>   <head>
>      <title>Home Page</title>
>   </head>
>   <body>
>      <% String applPath =
> application.getInitParameter("WEBAPP");%>
>      <%@ include file = "<%=appPath%>/body.inc"%>
>      <%@ include file = "<%=appPath%>/banner.inc"%>

AFAIK, you cannot dynamically give the path of the file in the include tag.

>
>      <% String userName = (String)
> session.getAttribute("userName"); %>
>
>         <% if (null == userName) {%>
>            <%@ include file =
> "<%=appPath%>/navbar_no_logout.inc"%>
>              <%} else {%>
>                <%@ include file =
> "<%=appPath%>/navbar_with_logout.inc"%>
>             <%}%>
>
>       <#### rest of the code  ########>
>
>         </body>
>
> </html>
>
>
> the problem: when i invoke the jsp i get the following
> error
>
> org.apache.jasper.compiler.CompileException:
> /index.jsp(23,9) File "<%=appPath%>/body.inc" not
> found
>         at
> org.apache.jasper.compiler.JspParseEventListener.handleDirecti
> ve(JspParseEventListener.java:789)
>

Thats what the error says.
>
> any help would be much appreciated.
>
>
> Thanks
>
>
>
> __________________________________________________
> Do you Yahoo!?
> New DSL Internet Access from SBC & Yahoo!
> http://sbc.yahoo.com
>
> ______________________________________________________________
> _____________
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Disclaimer: This e-mail message along with any attachments is intended only
for the addressee and may contain confidential and privileged information of
GTL Limited. If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly prohibited. If you have received this message by
error, please notify us immediately, return the original mail to the sender
and delete the message from your system.

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to