Placement of jars for JSP

2000-11-02 Thread Aaron Scott-Boddendijk

I've done the JSP tutorials for making a taglib. Easy... Worked first time...
Modified it to accept a parameter to query a database (ORACLE) to verify
that the data-source... relatively easy - some path hiccups locating libraries... all 
sorted.

but...

I'd like to avoid the rebuilding and copying of the jar file each time to test.

1. Can a JSP be directed to a class tree (folder structure with a meta-inf folder)
rather than a .jar.
2. if not can the jar be placed elsewhere than in the folder with the .jsp file 
itself. eg
a classes folder in the web-inf folder?

--
Aaron Scott-Boddendijk
INTAZ Limited
+64 7 838 3371 Voice
+64 7 838 3372 Fax






Re: Oracle data-source connect

2000-11-02 Thread Aaron Scott-Boddendijk

  url="jdbc:oracle:thin:scott/tiger@localhost:1512:pc29"

The port is usually 1521 isn't it, not 1512

--
Aaron Scott-Boddendijk
INTAZ Limited
+64 7 838 3371 Voice
+64 7 838 3372 Fax






Re: Placement of jars for JSP

2000-11-02 Thread Aaron Scott-Boddendijk

 You can place the JAR anywhere - orion will automatically detect it has
 changed when you recompile / rejar, and it will load the new driver.
 
 Just change the location with the taglib-location attribute in web.xml.

Ok that's working - can the taglib-location be a folder rather than a
jar to test without rebuilding the jar each time...
EG place the tag-location refering to the top of our package hierarchy
and add a META-INF folder with the relevent taglib/tag info...

I've tried it with no luck - is there a way for this to work?

--
Aaron Scott-Boddendijk
INTAZ Limited
+64 7 838 3371 Voice
+64 7 838 3372 Fax






Re: Servlet Caching Bug?

2000-10-26 Thread Aaron Scott-Boddendijk

 library is for classes loaded at startup and for use in every application,
 these will not get reloaded. (Eg in months and months of using Orion, I've
 never once needed a library tag)

The only purpose I've put it to is the jdbc classes for oracle and our organisations
class tree so that these don't need to be in the orion structure.

--
Aaron Scott-Boddendijk
INTAZ Limited
+64 7 838 3371 Voice
+64 7 838 3372 Fax






Fw: Creating 2 Web-sites hosted from orion [V.Newbie]

2000-10-19 Thread Aaron Scott-Boddendijk

I joined the list posted this message but never got any replies or the round trip...

hopefull expression
I'm now retrieving plenty of messages indicating at a rate that indicates I might
have missed any replies...
/hopefull expression

Please contact me off list if this has already been answered...

- Original Message - 
 I installed Orion - works great... but...
 
 I have been asked to create an intranet site (intranet.intaz.co.nz) and
 a dev site (dev.intaz.co.nz) hosted on the same machine (WinNT4).
 
 I got the initial site (dev.intaz.co.nz) working via client DNS search entry
 and an entry in the servers hosts file... Replaced the default-web-site
 folder
 contents with our intranet (that was living as a file:// based set of
 pages)...
 Works great...
 
 Now I have to put the dev site in for JSP/Servelet and EJB development...
 
 a) What do I have to change in NT to make the virtual host. (2 domains, 1
 IP#)
 b) is the 'node' entry in the 'server.xml' and a second
 'default-web-app.xml' file
 (with their respective 'virtual-hosts="blah.intaz.co.nz"' entries) all I
 need for the
 orion side of things?
 
 --
 Aaron Scott-Boddendijk
 INTAZ Limited
 +64 7 838 3371 Voice
 +64 7 838 3372 Fax






Re: I had not seen this before ... and it looks hokey to me.

2000-10-19 Thread Aaron Scott-Boddendijk

\ The biggest drawback to anonymous inner classes (as I see it) is that the
 compiler creates a separate class file for each one.  I had a small
 project's .jar file double in size due to these class files (since .jar
 compression is file-by-file).

There certainly needs to be some degree of standardisation on a chunking
mechanism under the jar scheme. I appreciate that it's nice to have pure
compatibility with zip but it's not ideal for large class hierarchies - especially
as one of the aims is brevity of transmission.  I wondered if something like
package level chunking would work well and have the archive directory contain
a packing list indexed to the package chunk.

Another possiblity is to have non-static inner classes loaded with the enclosing
class but not initialised until first use. Then a java bytecode file could contain
all directly dependant classes in one file - no more Class$1.class files and perhaps
a more efficient loading process... Static inner classes of course should probably
still be separate - Does an enclosing class get loaded and initalised when a static
inner class is instanciated?

--
Aaron Scott-Boddendijk
INTAZ Limited
+64 7 838 3371 Voice
+64 7 838 3372 Fax






Creating 2 Web-sites hosted from orion [V.Newbie]

2000-10-18 Thread Aaron Scott-Boddendijk

I installed Orion - works great... but...

I have been asked to create an intranet site (intranet.intaz.co.nz) and
a dev site (dev.intaz.co.nz) hosted on the same machine (WinNT4).

I got the initial site (dev.intaz.co.nz) working via client DNS search entry
and an entry in the servers hosts file... Replaced the default-web-site
folder
contents with our intranet (that was living as a file:// based set of
pages)...
Works great...

Now I have to put the dev site in for JSP/Servelet and EJB development...

a) What do I have to change in NT to make the virtual host. (2 domains, 1
IP#)
b) is the 'node' entry in the 'server.xml' and a second
'default-web-app.xml' file
(with their respective 'virtual-hosts="blah.intaz.co.nz"' entries) all I
need for the
orion side of things?

--
Aaron Scott-Boddendijk
INTAZ Limited
+64 7 838 3371 Voice
+64 7 838 3372 Fax