Java Servlets: Why hast though forsaken me? Part II

Sunday, April 8, 2007 No Comments

Integrating mySQL with Java Servlets is tedious, but at least the GUI is easier to derive. Looks like it works OK, but there are still some java stuff I keep forgetting:

Converting String to an Int -> Integer.parseInt(str); OR new Integer(str).intValue(); OR Integer.valueOf(str).intValue();
String to byte[] -> str.getBytes();
byte[] to String -> str.getBytes();
int to String -> Integer.toStrin(n); [...]

Java Servlets: Why hast though forsaken me?

Sunday, April 8, 2007 No Comments

The current Web Programming project is integrating mySQL with a Java Servlet front-end. This is fine, especially since current Java GUI’s are difficult to create. Doing this through a web page makes MUCH more sense. However, I can’t use cookies to hold some of my session data because my data occasionally contains characters that cookies [...]