How to enable Root User on Mac OS X

Here are easiest steps to enable Root User on Mac OS X Snow Leopard and later version of OS X like Lion.

Step 1: Go to System Preferences

Step 2: Select Users & Groups under System Tab

UsersGroups

Users & Groups under System Tab

Step 3: Select Login Options

Step 4: Click Join next to Network Account Server. It will open Directory Utility dialog box

DirectoryUtility

DirectoryUtility

Step 5: Click Edit Menu from the Menu Bar and click Enable Root User. System will ask you to enter password and it will enable Root User.

Read More at https://support.apple.com/kb/HT1528

 

 

Download Controller – JavaEE Servlet

Here is small piece of java code to generate binary stream which tells browser to save file as attachment. I believe that this code will help java beginners to understand HttpServletResponse of the Servlets.

Read More: http://commons.apache.org/fileupload/

Connect JavaEE Application to MySQL Database on GoDaddy Shared Linux Hosting Server

I was trying to find some example to connect MySQL database with my Java Shared Hosting Plan on GoDaddy.com but I could not. Well, I don’t want to say that GoDaddy has the best plan for hosting Java application. I still can not figure out how to use JSTL, custom url-pattens in the web.xml and forward requests from a servlet to JSP page. Also, we have to put http://<domain_name>/servlet/<servlet_name> to access servlet. But, here is simple working example to show you database connection from hosting to MySQL server on GoDaddy Shared Hosting.

Take a look at the example at link : GoDaddyJavaMySQL

DBConnector.java

GoDaddyJavaMySQL.java

web.xml