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?

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.


-----Original Message-----
From: Craig R. McClanahan [mailto:craigmcc@;apache.org]
Sent: 25 October 2002 19:22
To: 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 18:59:02 +0200
> From: Oliver Jonas <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: JSP's and J2SDK1.4 assert statement
>
> Form-based authentication assistanceHi,
>
> I'm trying to use the new assert statement in my JSP's. So, I set my
> JAVA_OPTS environment variable to "-source 1.4 -enableassertions" (w/o
> quotes) but the catalina startup script doesn't like it. And exists
> immediately without starting Tomcat.

Put it in CATALINA_OPTS intstead.

>
> I'm using Tomcat 4.1.12-LE on Windows 2000.
>
> Has anyone managed to make use of asserts in JSP pages?

Which implies you're putting code in scriptlets, right?  Sheesh ...

Java code to implement business logic belongs in Java classes, not
intermixed with your presentation markup in a JSP page.

>
>
> Thanks a lot,
> Oliver.

Craig McClanahan


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

---
Incoming 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

---
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


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

Reply via email to