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 17:28:34 GMT
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 <oliver@dialogue.co.uk>
> Reply-To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> 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>


Mime
View raw message