Yes in the real version I actually have a file inbetween the quotes and it still
doenst work (yes the file even exists...)
Anyone successfully using the stuff with Jrun, or is it broken? I've also tried the
jsp:include version with no luck.
I can include the page with the RequestDispatcher, but I want it to have the
variables in the same scope as the
JSP...
thanx,
-gabe
Gabriel Lawrence wrote:
> Does this work on Jrun (v2.3.3 windows nt?) I get the following message when I
> try and use the <%@include file=""%> tag...
>
> 500 Internal Server Error
> JSP Parse Error
> JSP Directive fileis not recognized.
>
> any ideas?
>
> Darin Wilson wrote:
>
> > Using the include directive (as you are doing) rather than the include
> > action (<jsp:include ...>) means that the file is "included" at page
> > translation time rather than page request time; your included file is
> > essentially cut and pasted into the calling JSP *before* the page is
> > compiled. So, you don't actually need to pass parameters into the included
> > .jsp - they'll just be there as part of the resulting servlet's method.
> >
> > For example, if this your JSP looks something like this:
> >
> > <%
> > String pageName = "Some JSP";
> > %>
> > <html>
> > ... your HTML here ...
> >
> > <%@ include file="_footer.jsp" %>
> >
> > </html>
> >
> > And "_footer.jsp" looks like this:
> >
> > This page is <%= pageName %>
> >
> > The JSP engine will do this at page translation time:
> >
> > <%
> > String pageName = "Some JSP";
> > %>
> > <html>
> > ... your HTML here ...
> >
> > This page is <%= pageName %>
> >
> > </html>
> >
> > And then compile it.
> >
> > Good luck,
> > Darin Wilson
> > [EMAIL PROTECTED]
> > http://www.doughnet.com/
> >
> > -----Original Message-----
> > From: A mailing list about Java Server Pages specification and reference
> > [mailto: Behalf Of Frank Starsinic
> > Sent: Wednesday, August 25, 1999 2:50 PM
> > To: [EMAIL PROTECTED]
> > Subject: passing parameters from one jsp to another (tms)
> >
> > if i have an include in my jsp like so....
> >
> > <%@ include file="_footer.jsp" %>
> >
> > how can i pass variables to that jsp file so it can parse them and display
> > them
> > accordingly.
> >
> > just like passing parameters to a method in java like displayFooter(x,y,z)
> >
> > thanks,
> > frank
> >
> > "Smith, John H" wrote:
> >
> > > Hello,
> > >
> > > I am trying to get the GNUJSP servlet to run. Has anyone seen
> > > this error before? I am running the latest GNUJSP servlet:
> > >
> > > Service call error:(class: org/gjt/jsp/JSPCompiler, method:
> > javaStringEncode
> > > signature: (Ljava/lang/String;)Ljava/lang/String;) Unsorted lookup switch
> > .
> > >
> > > Thanks
> > >
> > >
> > ===========================================================================
> > > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> > body
> > > of the message "signoff JSP-INTEREST". For general help, send email to
> > > [EMAIL PROTECTED] and include in the body of the message "help".
> > > For JSP FAQ, http://www.esperanto.org.nz/jsp/jspfaq.html
> >
> > ===========================================================================
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > FAQs on JSP can be found at:
> > http://java.sun.com/products/jsp/faq.html
> > http://www.esperanto.org.nz/jsp/jspfaq.html
> >
> > ===========================================================================
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> > FAQs on JSP can be found at:
> > http://java.sun.com/products/jsp/faq.html
> > http://www.esperanto.org.nz/jsp/jspfaq.html
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> FAQs on JSP can be found at:
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html