DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   JSP (http://www.daniweb.com/forums/forum24.html)
-   -   illegal start of expression (http://www.daniweb.com/forums/thread96017.html)

mimsc Nov 8th, 2007 3:23 pm
illegal start of expression
 
Can anyone see it..I can't find it


<%
        RequestDispatcher dispatcher = request.getRequestDispatcher("/jsp/ErrorPage.jsp");
       
    UserDataVO userData = null;
   
    String username = request.getParameter("username");
    String password = request.getParameter("password");
   
    boolean loginOkay = false;
    boolean trialOkay = true;
        boolean pageError = false;
       
        boolean hasBlanks = false;
       
        String menuType = null;
       
        String adminServer=request.getServerName();
        String javaAdminServer=request.getServerName();
       
        if (request.getServerName().startsWith("localhost") || request.getServerName().startsWith("199")) {

                adminServer = "zeus.homes.com";
                //for redirects, we need apache

                javaAdminServer = adminServer + ":8080";
        } else if (request.getServerName().equals("zeus.homes.com")) {
                adminServer = "zeus.homes.com";
                javaAdminServer = adminServer + ":8080";
        } else if (request.getServerName().startsWith("atprod")) {
                //adminServer = "cp";
                adminServer = "atprod.homes.com";  //atprod.homes.com  original 10/31/07
                //for redirects, we need apache
                javaAdminServer = javaAdminServer + ":8080";  // commented out originally. 10/31/07
        }
       
        if ((username != null) && (password != null)) {
                loginOkay = UserInfoDAO.verifyLogin(username,password);
                if (loginOkay) trialOkay = UserInfoDAO.checkTrialOkay(username);
        }
       
        if (loginOkay && trialOkay) {
                try{
                        /**
                        * Get accountInfo based on accountName
                        */
                        if (username != null) {
                                userData = UserInfoDAO.getUserInfo(username);
                        }
                }catch(Exception e){
                        request.setAttribute("pageError","An error occured trying to log into control panel.");
                        dispatcher.forward(request, response);
                }
        }
%>


All times are GMT -4. The time now is 10:38 pm.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC