void showpage(String url,BufferedReader b,PrintStream p)
	{
		File f;
		try {
			f = new File( "website/" + url);
			System.out.println(f.getAbsolutePath());
			String m = hf.defPageOrder(url);
			if (m.compareTo("NO") != 0)
			{
				url = m;
				h.setUrl(url);
			}
			if (h.getExt().compareTo("jsx")==0)
			{
				f = new File("website"+ url);
				printHeader(p, "text/html" , HTTP_OK, "OK");				
				pjx.parser(p, f);
			}
			else if (url.charAt(url.length()-1) == '/')
			{
				printHeader(p, "text/html" , HTTP_OK, "OK");
				d.Viewlist(p,url);				
			}
			else if (f.exists())
			{
				try {
					String type=hf.newfiletype(url);
					String[] help;
					if (type.compareTo("NO")!=0)
					{	
						help = type.split(":");
						printHeader(p, help[1], HTTP_OK, "OK");
						printimage(f,p);
					}
					else
					{
						printHeader(p, "text/html", HTTP_OK, "OK");
						p.println("Sorry the file type is not supported yet");
					}
				} catch (Exception e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}

			}
			else
			{
				p.print("HTTP/1.0 " + HTTP_NOTFOUND +  " File Not Found ");
				p.flush();
				p.write(EOL);
				p.flush();
				p.write(EOL);
			}
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}


	}