File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

toogle assertion mechanism

Pradeep Kumar
Ranch Hand

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

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

SCJP 1.6
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30586
    
154

Pradeep,
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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
GeeCON Prague 2014
 
subject: toogle assertion mechanism