private void renderActorTitles(PrintWriter out) {
        ArrayList titles = new ArrayList();

        if (!uid.equals(""))
            titles = actMethods.getTitlesAndUserRating(aid, uid);
        else
            titles = actMethods.getTitlesAndRole(aid);

        if (titles.size() > 0) {
            out.println("\t\t<h2>Titles Stared In</h2>");
            out.println("\t\t<table>");
            out.println("\t\t\t<tr>");
            out.println("\t\t\t\t<td><b>Title Name</b></td>");
            out.println("\t\t\t\t<td><b>Release Year</b></td>");
            out.println("\t\t\t\t<td><b>Synopsis</b></td>");
            out.println("\t\t\t\t<td><b>Genre</b></td>");
            out.println("\t\t\t\t<td><b>Actor's Role</b></td>");

            if (!uid.equals(""))
                out.println("\t\t\t\t<td><b>" + uid + "'s Rating</b></td>");

            out.println("\t\t\t</tr>");

            for (int i = 0; i < titles.size(); i++) {
                out.println("\t\t\t<tr>");

                if (!uid.equals("")) {
                    ActorTitleRating title = (ActorTitleRating) titles.get(i);
                    boolean foundRating = false;

                    out.println("\t\t\t\t<td><a href=\"TitleServlet?aid=" + aid + "&uid=" + uid + "&tid=" + title.getTID() + "\">" + title.getName() + "</a></td>");
                    out.println("\t\t\t\t<td>" + title.getYear() + "</td>");
                    out.println("\t\t\t\t<td>" + title.getSynopsis() + "</td>");
                    out.println("\t\t\t\t<td>" + title.getGenre() + "</td>");
                    out.println("\t\t\t\t<td>" + title.getRole() + "</td>");
                    out.print("\t\t\t\t<td><form><select name=\"urating\">");

                    for (int j = 1; j <= 5; j++) {
                        if (title.getUserRating() == j) {
                            out.print("<option selected=\"selected\">" + j + "</option>");
                            foundRating = true;
                        }
                        else
                            out.print("<option>" + j + "</option>");
                    }

                    if (!foundRating)
                        out.print("<option selected=\"selected\">" + 0 + "</option>");
                    else
                        out.print("<option>" + 0 + "</option>");

                    out.print("</select>");
                    out.print("<input type=\"hidden\" name=\"uid\" value=\"" + uid + "\" />");
                    out.print("<input type=\"hidden\" name=\"tid\" value=\"" + title.getTID() + "\" />");
                    out.print("<input type=\"hidden\" name=\"aid\" value=\"" + aid + "\" />");
                    out.print("<input type=\"hidden\" name=\"save\" value=\"true\" />");
                    out.print("<input type=\"submit\" value=\"Save Rating\" /></form></td>");
                    out.print("\t\t\t</tr>\n");
                    out.println("\t\t</table><br />");
                    out.println("\t\t<div><a href=\"TitleServlet?uid=" + uid + "&aid=" + aid + "&tid=" + title.getTID() + "&add=true\">Add New Movie</a>");
                    out.println("\t\t<div><a href=\"RoleServlet?uid=" + uid + "&aid=" + aid + "&add=true\">Add New Role</a><br />");
                }
                else {
                    TitleActorRole title = (TitleActorRole)  titles.get(i);

                    out.println("\t\t\t\t<td><a href=\"TitleServlet?aid=" + aid + "&tid=" + title.getTID() + "\">" + title.getName() + "</a></td>");
                    out.println("\t\t\t\t<td>" + title.getYear() + "</td>");
                    out.println("\t\t\t\t<td>" + title.getSynopsis() + "</td>");
                    out.println("\t\t\t\t<td>" + title.getGenre() + "</td>");
                    out.println("\t\t\t\t<td>" + title.getRole() + "</td>");
                    out.println("\t\t\t</tr>");
                    out.println("\t\t</table><br />");
                }
            }
        }
    }