Posting your entire code would assist you in getting a possible solution
from the people on this list much faster.
Have a nice day.
With regards,
Sachin S. Khanna
http://www.emailanorder.com
----- Original Message -----
From: Quinn Stone <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 27, 2001 9:44 PM
Subject: <%@ including a file twice


> Hello:
>
> I am running on Jrun 3.1. I want to include standard form button at the
> top AND bottom of my forms. What I tried was this:
>
> <%@ include file="includes/formButtons.jsp" %>
>
> at the top and bottom of the form in my jsp page. However, Jrun displays
> the following error:
>
> Parse Error in JSP page: The include directive on line 155 of page
> /note.jsp The page '/includes/formButtons.jsp' cannot be included,
> including it here will cause infinite recursion.
>
> To me, it seems the compiler might be trying to create internal methods
> of the same name whenever it encounters the <% include %> for the same
> file. I can create two include files with different names that contain
> the same code to get around it, but that's not very modular.
>
> formButtons.jsp looks like this:
> <%
> if ( inserting )
> {
> %>
>         <input type="submit" name="cancelButton" value="Cancel">
>         <input type="submit" name="saveButton" value="Save">
> <%
> } else {
> %>
>         <input type="submit" name="insertButton" value="Add">
>         <input type="submit" name="deleteButton" value="Delete">
>         <input type="submit" name="updateButton" value="Update">
> <%
> }
> %>
>
> Any suggestions?
> ------------------------------------------
> Quinn Stone
> Stone Consultants
> 2214 1/2 Santa Clara Ave.
> Alameda, CA 94501
> 510.865.7342
> www.stoneconsultants.com
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to