[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index] [Home]

Re: FWD: RE: gnujsp not including packages of included packages


hi David,

The code would be easy to add, but what does
the servlet spec say about this?

Also, my experience has been that import does
not do that recursive thing you liked (unlike
include from c/c++).

rob


-----Original Message-----
From:    David Schlussel
Sent:    Thu, 12 Aug 1999 11:28:55 -0700 (PDT)
To:      rob_chou@bigfoot.com
Subject: Re: FWD: RE: gnujsp not including packages of 
included packages


is there a way to automatically import them via gnujsp? or 
jserv?

-david



On Tue, 10 Aug 1999, Robert Chou wrote:

> hi David,
> 
> Here's a sample of websphere puts at the beginning of
> it's generated java files:
> 
> import java.io.*;
> import java.util.*;
> import javax.servlet.*;
> import javax.servlet.http.*;
> import java.beans.Beans;
> 
> Just put the extra import statements into your jsp
> files.  Don't sweat it.
> 
> good luck,
> rob
> 
> ps. why are you switching from websphere to gnujsp?
> 
> 
> >===== Original Message From Robert Chou 
<SMTP:rob_chou@bigfoot.com> =====
> hi David,
> 
> The following applies to 0.9.10 and patches.
> Here's what gnujsp does:
> 1. parses jsp file and
> 2. generates a java file (serlvet)
> 3. compiles java file (serlvet)
> 4. calls above servlet
> 
> By default, gnujsp does not import any of the
> packages in classes.zip from the jdk.
> 
> Maybe websphere, by default, generates "import" statements
> for some of the packages in the jdk during step 2.
> I can check at work, where we use websphere, but you
> can also check by looking at the java source files that 
are
> generated.  For example, gnujsp has a "repository" path 
which
> contains all the generated java files.  Find those java 
files in
> websphere and you'll probably see lots of "imports" by 
default.
> 
> enjoy,
> Rob
> 
> ps. don't forget to get the caching patches to gnujsp 
0.9.10.
> It can offer the performance of static files while 
allowing
> different levels of dynamic generation.  I've added some
> more code, and will make another patch version later.
> 
> 
> 
> On Monday, August 09, 1999 1:08 PM, David Schlussel
> [SMTP:dschluss@instantobjects.com] wrote:
> > I'm new to the list, where's the FAQ, if any?
> >
> > Here's my question... I have a functional build of 
Apache
> > 1.3.6/ApacheJServ running on solaris 2.6 with java 1.2.1
> >
> > I added gnujsp to mix which works on the example pages, 
but is not
> > recursively importing the needed packages.  that is, 
page1.jsp imports
> > com.eci.mozart.biziq.plugins, which in turn imports 
java.util.*, but the
> > jsp page will not compile without adding in the <%@ 
import="java.util.*"
> > %> tag.
> >
> > (The same jsp works fine with other jsp interpreters 
like websphere, but
> > i'm trying to move away from websphere for a few 
reasons.)
> >
> > Is this a known bug/feature?
> >
> > -David
> >
> >
> >
> >
> 
> 






_______________________________________________________
Get Visto!  Groups, event calendars, email, and more...
Check it out @ http://www.visto.com/info