<%@ include file ="filename" %> problem

2000-04-12 Thread Liza J Alenchery

Hi

I have a jsp file(file1.jsp)  which has a <%@ include file ="file2.jsp" %>
in it.  I am getting compilation errors saying that the beans that I
included in file1 cannot be seen in file2. So I put  in file 2.
Then I get the error 'Cannot forward as OutputStream or Writer has already
been obtained'.

What am I doing wrong?

thanks in advance

liza



__
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
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



Re: <%@ include file ="filename" %> problem

2000-04-12 Thread Christopher Lynch

Just provide an example of how you are calling your Bean from you jsp file.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
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



Re: <%@ include file ="filename" %> problem

2000-04-12 Thread Visakh Menon

Liza,

Check if you are referring to the bean with the same id in file2. Or problem
could be with your classpath. Check if you've set it properly for the bean.
Also check if you are refering file2 in file1 with proper URL. I can't think
of any other reason. There is no need to put  in file2.

Vis..
__
Get Your Private, Free Email at http://www.hotmail.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
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



Re: <%@ include file ="filename" %> problem

2000-04-12 Thread liuhao

hi:
the file2.jsp is a static file??? if yes, you could not include
 in it, while if no, you could not use <%@ include %> to
include a dynamic file. try  element.
- Original Message -
From: Liza J Alenchery <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 12, 2000 11:57 PM
Subject: <%@ include file ="filename" %> problem


> Hi
>
> I have a jsp file(file1.jsp)  which has a <%@ include file ="file2.jsp" %>
> in it.  I am getting compilation errors saying that the beans that I
> included in file1 cannot be seen in file2. So I put  in file
2.
> Then I get the error 'Cannot forward as OutputStream or Writer has already
> been obtained'.
>
> What am I doing wrong?
>
> thanks in advance
>
> liza
>
>
>
> __
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> 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".
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



Re: <%@ include file ="filename" %> problem

2000-04-24 Thread piyush raj jain

hi .
i guess your  tag is after the <%@ include...>directive
first instantiate the bean then include the page i hope the bean with the same name
would be visible
regds
piyu

Liza J Alenchery wrote:

> Hi
>
> I have a jsp file(file1.jsp)  which has a <%@ include file ="file2.jsp" %>
> in it.  I am getting compilation errors saying that the beans that I
> included in file1 cannot be seen in file2. So I put  in file 2.
> Then I get the error 'Cannot forward as OutputStream or Writer has already
> been obtained'.
>
> What am I doing wrong?
>
> thanks in advance
>
> liza
>
> __
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com
>
> ===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> 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".
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