tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Jonas" <oli...@dialogue.co.uk>
Subject RE: JSP's and J2SDK1.4 assert statement
Date Fri, 25 Oct 2002 21:21:08 GMT
RE: JSP's and J2SDK1.4 assert statementMade asserts work by modifying the
Jasper source as Craig suggested.

For those of you interested I put the source/bin in a zip at:
http://personales.ya.com/oliverjonas/jasper/jasper.zip


All source changes are indicated. Source used for modifications is from the
Tomcat 4.1.12 version. README-1.4.txt explains what to set up in web.xml
(basically there's a new servlet attribute that defines the source
compatibility).

Unfortunate that you can't do this without patching your Tomcat
installation.... maybe support for this could go into 4.1.13?


Regards,
Oliver.
  -----Original Message-----
  From: Craig R. McClanahan [mailto:craigmcc@apache.org]
  Sent: 25 October 2002 21:21
  To: Oliver Jonas
  Cc: Tomcat Users List
  Subject: RE: JSP's and J2SDK1.4 assert statement





  On Fri, 25 Oct 2002, Oliver Jonas wrote:

  > Date: Fri, 25 Oct 2002 19:28:34 +0200
  > From: Oliver Jonas <oliver@dialogue.co.uk>
  > To: Tomcat Users List <tomcat-user@jakarta.apache.org>
  > Cc: craigmcc@apache.org
  > Subject: RE: JSP's and J2SDK1.4 assert statement
  >
  > Hi Craig,
  >
  > I also tried CATALINA_OPTS... same thing happens. Thinking about it
"-source
  > 1.4" isn't actually a valid option for "java", only for "javac". (Maybe
  > that's why it fails because it starts fine if I only put
"-enableassertions"
  > in JAVA_OPTS.
  >
  > So I guess I need to tell Jasper to use the option "-source 1.4".
  >
  >
  > Any ideas how to?
  >

  Nope ... you'd have to modify Jasper sources to do this.

  > Thanks,
  > Oliver.
  >
  > PS: Using JSP's only for HTML presentation... but would still like to
have
  > asserts to make sure values returned by the underlying Java API are
valid.
  >

  Good.



  --
  To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
  For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.394 / Virus Database: 224 - Release Date: 03/10/2002

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message