if (!init)
{
RequestContext requestContext = cycle.getRequestContext();
ApplicationServlet servlet = requestContext.getServlet();
ServletContext context = servlet.getServletContext();
IPropertySource propertySource = cycle.getEngine().getPropertySource();
Resource webInfLocation = new ContextResource(context, "/WEB-INF/");
Resource webInfAppLocation =
webInfLocation.getRelativeResource(servlet.getServletName() + "/");
readQuestions(
easyQuestions,
webInfAppLocation,
propertySource.getPropertyValue("easyquestionsfile"));
readQuestions(
mediumQuestions,
webInfAppLocation,
propertySource.getPropertyValue("mediumquestiosfile"));
readQuestions(
hardQuestions,
webInfAppLocation,
propertySource.getPropertyValue("hardquestionsfile"));
points = new int[10];
names = new String[10];
for (int i = 0; i <= 9; i++)
{
points[i] = 0;