Jasper compilation of included files

2004-10-15 Thread Dave Minter
I'm trying to get Jasper to pre-compile my JSP pages. I've got an Ant
task (swiped from the manual) kicking this off, and it works pretty
well up to a point. However...

This application has a number of pages that are built out of JSP
fragments. Something like this:

!-- File A --
% String s = foo; %
%@ include file=B.jsp %

!-- File B --
% if( s.equalsIgnoreCase(FOO) ) { %
PFoo/P
% } %

Obviously file B isn't valid on its own - it has an undefined label
s. On the other hand, A is entirely valid.

I can't figure out a way to tell Jasper (via the Ant task) NOT to try
to compile B.jsp on its own, without making B unavailable as an
include to A.

Is there a way to do this? Alternatively is there a reason why I
shouldn't be doing this in the first place?

Thanks,

Dave.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Jasper compilation of included files

2004-10-15 Thread Dave Minter
On Fri, 15 Oct 2004 14:11:54 +0200, Michael Schuerig
[EMAIL PROTECTED] wrote:
 On Friday 15 October 2004 13:52, Dave Minter wrote:
[snip]
 
 I've given JSP segments (fragments) a .jspf extension and that does the
 trick for me. See the spec JSP.1.1.8.
 
 Michael

And indeed that seems to work for me too. Thanks to Michael and Tim
for swift and effective responses.

Reference from the spec particularly appreciated as I like to know if
I'm doing things by the book or not.

Dave.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JNDI / DataSource problems

2002-03-26 Thread Dave Minter


Thanks - I've tried both the latest stable (which doesn't appear to contain a 
DataSource implementation) and the latest dev version (which does) of the 
postgres jdbc drivers. Both fail...

I'd kind of assumed that even a completely non-existant class would still 
result in an instantiated DataSource object, but that I wouldn't be able to 
retrieve any connections (duh !) from it - is this the behaviour I should 
expect, or is the behaviour I'm getting (viz a null pointer) what should be 
expected under those circumstances ?

Currently my application will scale to about 3 users - fortunately it's a 
spare time project, so this doesn't actually matter in any real sense ;-)

Dave.

On Tuesday 26 Mar 2002 7:09 am, you wrote:
  I'm having some problems initialising a DataSource object for the
  purposes of
 connection pooling under tomcat.
  
  The database to which I'm trying to connect is Postgresql. The
  connections
 work fine with the standard java.sql.* approach.

 
 Join the club. :-(
 

  Basically when I try to acquire a DataSource object, I get null. Nothing
  in
 my log files indicates the cause of the problem - or indeed that
  there is a problem at all (aside from my own log4j output).
  
  When using the standard java.sql stuff my jsp  servlets work perfectly
  in
 every respect, so I'm confident that the rest of my configuration is
  correct. Or correct enough, anyway.

 
 Same here, same behaviour, PostgreSQL 7.2
 

  Versions:
  tomcat: 4.0.3
  jdk: 1.3.1
  j2sdkee: 1.3
  postgresql: 7.1.3
  log4j: 1.2beta4

 
 One poster suggested it was the sign of Tyrex being unable to create a
 DataSource object. PostgreSQL in it's JAR doesn't have a DataSource
 implementation. Now there were some guys who say it is in the sources in
 developers version. I'll dig there deeper, if anything comes up, I'll
 e-mail.
 
 Nix.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Where can I find Administrator Documentation for Tomcat 4.03?

2002-03-23 Thread Dave Minter


Is this what you're after ?
http://localhost:8080/tomcat-docs/manager-howto.html

On Saturday 23 Mar 2002 6:02 pm, you wrote:
 Hi,
 in http://localhost:8080/tomcat-docs/appdev/deployment.html in section
 Deployment With Tomcat 4 there is a reference to the Administrator
 Documentation. Where can I find it?

 Thanks in advance,
 Alexander Höglind

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]