The include directive is executed during translation time and hence will not be
dynamic. Instead try using the <jsp:include> tag.
Tripat Kharbanda wrote:
> Hi people,
> I need the following help for JSPs.
>
> 1. In the include directive can't we give the absolute path instead of
> relative to a file which is to be included
> 2. Can servlet be the file of which contents are to be included.
>
> I tried for the 1st but couldn't fix it
> For the second one my browser gives the following error for the page
>
> Error: 500
> Unable to compile class for JSP
>
> and the startserver window shows the following error :
>
> com.sun.jsp.compiler.ParseException: Cannot read file:
> examples\jsp\maps\..\..\WEB-INF\servlets\OptionList
> at com.sun.jsp.compiler.JspReader.pushFile(JspReader.java:149)
> at com.sun.jsp.compiler.JspReader.pushFile(JspReader.java:106)
> at
> com.sun.jsp.compiler.Jsp1_0ParseEventListener.handleDirective(Jsp1_0P
> arseEventListener.java:630)
>
> where OptionList is my servlet name and the servlet is very much in that
> directory and map is my directory in JSP folder where i placed my JSP file.
> If i place an htm file in place of servlet it works well .
>
> I am using jswdk-1.0.1 and win'98.
>
> People who have sarcastic remarks to this problem need not respond to this
> mail.
>
> People willing to help are most welcome for their remarks ,suggestions and
> help in any form My sincere thanks to them in advance for giving it their
> time to read it.
>
> Thanks and regards
>
> ___________________________________________________________________________
> 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
___________________________________________________________________________
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