User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 402,907 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,113 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 909 | Replies: 0 | Solved
Reply
Join Date: Aug 2007
Posts: 40
Reputation: mimsc is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
mimsc mimsc is offline Offline
Light Poster

illegal start of expression

  #1  
Nov 8th, 2007
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);
		}
	}
%>
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JSP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JSP Forum

All times are GMT -4. The time now is 3:39 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC