File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes toogle assertion mechanism Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "toogle assertion mechanism" Watch "toogle assertion mechanism" New topic

toogle assertion mechanism

Pradeep Kumar
Ranch Hand

Joined: Sep 11, 2007
Posts: 77
How to enable or disable asserions at run time when we are working on server side technologies like servlets, jsp.

Thanks and Regards,
[ October 15, 2008: Message edited by: Bear Bibeault ]

SCJP 1.6
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33124

Enable assertions is a command line argument that needs to be configured in your server. Every server does this differently. A quick search found a thread showing this for Tomcat. What server are you using? You'll more likely get a relevant answer with that information.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: toogle assertion mechanism
It's not a secret anymore!