Passing data between a JSP page and servlet using JSON and JQuery (part 2)

In part 1, I discussed the client side code and gave examples of how to use JSON in a web page using JavaScript.  Part 2 discusses the server side code and gives an example of Continue reading


Controlling the CADWorker’s Appetite

By default the Windchill CAD worker will attempt to publish all EPMDocuments regardless of whether the EPMDocument is a part, drawing, manufacturing assembly, skeleton, etc.

Due to the extensible nature of Windchill, you can control  Continue reading

Publishing viewables upon check-in

There’s an option within Windchill PDMLink to automatically publish lightweight viewable files for Creo View each time an item is checked in.  All publishing is handled behind the scenes Continue reading


Creating a zip file in Java using the Zip4j library

This morning brought a new challenge — creating a compressed zip file of a directory from within an existing Java program for archival purposes.

Rather than installing a 3rd party program like 7Zip, this code needed to be Continue reading


Pausing a Windows 7 batch file

I was working on another batch file today and needed a way for the script to wait for a given number of seconds before continuing to execute.  On a whim, I tried the wait command by adding “wait 30“, thinking the script would wait at that spot for 30 seconds before continuing.

The script did wait for 30 seconds, but instead of continuing to execute, it simply Continue reading


Kill processes using command prompt in Windows 7

I was working on a startup script this morning and needed a way for the script to kill one process before starting up a new process.  I’ve used pskill.exe in the past, but wanted to find out if there were any built-in tools in Windows 7 before resorting to Sysinternals components.

It just so happens that Continue reading


How to reduce NullPointerExceptions

This is a coding technique that can help reduce the number of NullPointerExceptions that you need to deal with without resorting to checking for null Strings every time you compare literal values.

This is the way we’re taught to Continue reading