%@ page import="java.io.*, java.util.*,java.sql.*,spsjobs.*" %>
<%! Connection con=null; %>
<%! JobsOnlineConnectionPoolS insert=null; %>
<%
//-----------------------------Code for connection pool begins ------------
insert=new JobsOnlineConnectionPoolS();
boolean conCheck=true;
try
{
con=insert.getConnection();
if (con==null)
{
Thread.sleep(50);
con=insert.getConnection();
if (con==null)
{
Thread.sleep(50);
con=insert.getConnection();
if (con==null)
{
conCheck=false;
}
}
}
if(conCheck){
//--------------------------------First cut -------------------------------
%>
<%
String loginname,password,type;
try
{
loginname = (String)session.getValue("loginname");
password = (String)session.getValue("password");
type =(String)session.getValue("type");
if (loginname == null || loginname.equals("") || password == null || password.equals("") )
{ %>
spsjobs::services
| 4 |
|
|
| |
Copyright © 2006 sps intrad Pvt.Ltd, All Rights Reserved. |
<%
}else if(type.equals("vacancy"))
{
%>
<%@include file="jobsonline_vacancy_General.jsp" %>
<%
}
else if(!type.equals("student"))
{
%>
<%@include file="jobsonline_vacancy_General_others.jsp" %>
<%
}
else
{
%>
<%@include file="jobsonline_regerror.htm" %>
<%
}
}catch(Exception e)
{
System.out.println("The error is "+e);
} %>
<%
//-------------------------------Second Cut---------------------------------
}//end of if block for connection boolean
else{
%>
<%@ include file="jobsonline_connection.jsp" %>
<%
}//end of else block for connection boolean
}//end of try
catch(Exception ex){
}
finally{
try{
if (con!=null){
insert.freeConnection(con);
}
}
catch(Exception e){
}
}
//-------------------------------close of Second Cut---------------------------------
%>