•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 426,634 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 1,592 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: 958 | Replies: 0 | Solved
•
•
Join Date: Aug 2007
Posts: 40
Reputation:
Rep Power: 2
Solved Threads: 0
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);
}
}
%>•
•
•
•
•
•
•
•
DaniWeb JSP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- illegal start of expression (Java)
- JAVA Illegal Start of Expression Error (Java)
- Fibonacci Recursion - Illegal Start of expression! (Java)
- illegal start of expression (Java)
- Why illegal start of expression error? (Java)
- illegal start of expression (Java)
- Help on error message, illegal start an ';' expected (Java)
Other Threads in the JSP Forum
- Previous Thread: Re:HTTP Status 404 ERROR
- Next Thread: Something small..



Threaded Mode