I cant see why it is not working please help
Hello all,
I am practicing JSP by developing a site of my own.. I have come across a problem that I could not figure out.. I will appreciate all your hints please.. If I am posting this question in a wrong forum please be kind enough to route me to an appropriate forum please.
I have a JSP that works fine in Firefox but will not load on any other browsers...like IE 8, Chrome, Safari
I do not know if it is a problem with JSP or not I will greatly appreciate your input please. I stick the code below
<%@ page contentType="text/html" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ page language="Java"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>joblet.lk</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="styles.css" />
<script language="javascript" src="/test/DisableRightClick.js"></script>
<script language="javascript" src="/test/newPopWindow.js"></script>
<link rel="shortcut icon" href="/test/Images/favicon.gif">
</head>
<body bgcolor='#ffffdc'>
<!-- Begin Wrapper -->
<div id="wrapper">
<!-- Begin Header -->
<!--div id="header"><h1><a href="http://www.test/index.html">test</a></h1></div-->
<div id="header">
<!--p class="header">test</p-->
<div id='logo'><img src="/test/Images/test.jpg"></div>
<div id="banner">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs
/flash/swflash.cab#version=6,0,29,0"
width="475" height="81">
<param name="quality" value="high">
<embed src="myFlashMovie.SWF" quality="high" pluginspage=
"http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="475"
height="81">
</embed>
</object>
</div>
<div id='time'>
<script>
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
document.write("<small><font color='000000' face='Arial'><b>"+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+"</b></font></small>")
</script>
</div>
</div>
<!-- End Header -->
<!-- Begin Navigation -->
<div id="navitop"> </div>
<!-- End Navigation -->
<!-- Begin Navigation -->
<div id="navigation">
<div class="rollover"><a href="/test/">Home</a></div>
<div class="rollover"><a href="/test/servlet/jController?empid='12345610'">Recruit</a></div>
<div class="rollover"><a href="#">History</a></div>
<div class="rollover"><a href="#">Location</a></div>
<div class="rollover"><a href="#">FAQ</a></div>
<div class="rollover"><a href="#">Contact</a></div>
</div>
<!-- End Navigation -->
<!--Check if list available in the session else route to the index.jsp -- >
<script>
function doit(){
window.print()
</script>
<script>
function didit(){
window.close()
</script>
<%
if (session.getAttribute("validEmployer")==null)
{%>
<form method="post" action="/test/recauthentication.jsp">
<div><span id ='count1'> <a href="reclogin.jsp"> logout</a></span> </div>
<div id='content_small'>
<table border = '0'>
<tr>
<td align = right width = '15%'></td>
<td align = left><h5>Authentication</h5></td>
</tr>
<tr>
<td align = right width = '15%'>e-mail:</td>
<td align = left width = '20%'>
<input type=text name="email"><br>
</td>
</tr>
<tr>
<td align = right width = '15%'>password:</td>
<td align = left width = '20%'>
<input type=password name="password"><br><p>
</td>
</tr>
<tr>
<td align = right width = '15%'><span id ='count1'>. </span><br><p></td>
<td align = left width = '20%'>${fn:escapeXml(param.errorMsg)}
<br><p></td>
</tr>
<tr>
<td align = right width = '15%'></td>
<td align = left width = '20%'>
<input type="submit" value="Login">
</form>
<a href=JavaScript:newPopWindow('../test/recregister.jsp',470,310,'c');window.close();><span id='count'> Not Registered ?</span></a>
</td>
</tr>
</table>
</div>
<%}
else {
response.sendRedirect("/test/recruiter.jsp");
%>
</div>
<!-- End Wrapper -->
</body>
</html> A Million Thanks in Advance
Too much code to review in depth.
Couple of things that jumped out at me
1 - request.sendRedirect sent at the end. You should do any request forward/redirects as soon as possible in the jsp - before your response gets committed. It is illegal to forward/redirect after a response has been committed. That might explain the errors.
2 - As a suggestion, view source on the page, and save the file as html. Or use the functionality to "save a webpage" to your local computer. Try loading that HTML page in all the browsers. That should help you diagnose is it the HTML code, or is it the JSP side of things that is broken.
hope this helps,
evnafets
Similar Messages
-
I have 4s iPhone , I download the iOS 7. Now the front receiver microphone is not working , please help me that how to fix the problem.
I live in South Africa, and I had the same problem with my iPhone 4.
After weeks of frustration and swearing, I was in the process of restoring my phone to a previous iOS. To do that you need to turn the "Find my iPhone" option off, since i turned it off, my problem was solved. No need to repair anything or revert back to old iOS.
***** that i cant use Find my iPhone, but atleast i can use my phone. -
while updating 4.0 version to 5 version system shows sim card is not valid. My iphone is not working .Please help me
I would imagine your iPhone was hacked to make it work on your local carrier.
Updating the iOs to 5.xx will lock it back to the original carrier .The carrier holding the lock are the only
entity able to authorise the unlock .You will have to contact them and see if they unlock and the terms the apply -
HT1414 my handsfree is not working please help me
Hi There!
I am using Iphone 4s and ny handsfree in not working please help meTry restarting you iPhone by holding down the on/off and the home buttons at the same time until you see the Apple logo.
-
The built-in mic in g50 122ca laptop model is not working. please help me out.
the built-in mic in g50 122ca laptop model is not working. please help me out. OS: Windows Vista (32-bit)
here is a sample code .
so far you procedure looks good but
i bet you have to specify the name of report , instead of 'filename'.
see this
Plist_id := GET_PARAMETER_LIST('P_name');
IF NOT ID_NULL(Plist_id) THEN
DESTROY_PARAMETER_LIST(Plist_id);
END IF;
Plist_id := CREATE_PARAMETER_LIST('P_name');
ADD_PARAMETER( Plist_id, 'P_Receive_date', TEXT_PARAMETER, TO_CHAR(Receive_date,'mm/dd/yyyy'));
ADD_PARAMETER( Plist_id, 'P_Hearing_date', TEXT_PARAMETER, TO_CHAR(Hearing_date,'mm/dd/yyyy'));
ADD_PARAMETER( Plist_id, 'P_Hearing_time', TEXT_PARAMETER, TO_CHAR(Hearing_time,'mm/dd/yyyy'));
ADD_PARAMETER( Plist_id, 'P_Issue_date', TEXT_PARAMETER, TO_CHAR(Issue_date,'mm/dd/yyyy'));
ADD_PARAMETER( Plist_id, 'P_Workshop_date', TEXT_PARAMETER, TO_CHAR(Workshop_date,'mm/dd/yyyy'));
-- RUN_PRODCT(REPORTS,'..\Reports\Pro_License',SYNCHRONOUS, RUNTIME, FILESYSTEM, Plist_id, NULL);
-- here Pro_License is the name of report.
did you tried to see if the parameter passed using a message ?
try
message('parameter name'); pause; write this before "run_report". -
The click at touchpad is not working, please help!!!
I use Macpro, recently the click at touchpad is not working, please help!!! Thank you !!
For this issue AppleCare support told me to so a SMC reset as follows:
Power the machine OFF.
At the SAME TIME hold down the following buttons:
Shift
Control
Option
Power
Then release all buttons. Power up the Macbook and see if the trackpad button work.
Hope this helps.
Bill -
I backed up my Iphone to itunes so i can do the new Update to IOs 7 and so now that i updated it i want to backup and restore and its not working, Please help!
An iPhone backup to a computer via iTunes stores the photos in a backup file that is only meant to be be used if needed to restore back to the phone. There is 3rd party "extractor" software available but otherwise the photos are not directly viewable.
The backup via iTunes was a good idea and your Camera Roll photos should be there and should be able to be restored to your new phone. However if it was me I wouldn't rely on that alone. I would also import the photos to a computer where you can see and verify that you have a copy. That is a good idea at any time (not just when you know you might need it). Any phone can be lost, broken, suffer hardware issues, etc at any time and lose all data on it. Following is a link with information on how to import the photos to a computer: Import photos and videos from your iPhone, iPad, or iPod touch to your Mac or Windows PC - Apple Support -
my iphone 4s does not start by power switch, it starts when i connect to pc. the proximity sensor is not working. please help.
Sounds like it may be a hardware issue.
Please contact Apple Support in your country.
Here is a list of numbers: http://support.apple.com/kb/HE57
Regards
J -
I have unabled 5 fingure gesture now not able to perform any task,also my power button is not working,please help me in removing this gesture,using I phone 4
I have unabled 5 fingure gesture now not able to perform any task,also my power button is not working,please help me in removing this gesture,using I phone 4
-
I installed windows 7 on my macbook pro. all is working but lan adaptor and sound od laptop is not working. please help me or send the link where i can download the these drivers.I have lost my resource cd .
If you are running Lion or Mountain Lion, the drivers are downloaded from within Bootcamp Assistant. If you are running Snow Leopard the drivers are on your Snow Leopard install disk.
Read the Bootcamp Install Guide for your version of OSx. http://www.apple.com/support/bootcamp/
Bootcamp questions should be asked in the Bootcamp forum where the Bootcamp gurus hang out https://discussions.apple.com/community/windows_software/boot_camp -
this is what my iphone 4 shows. iv tried switching off again and again, closing apps by double tapping the home button but still not working. please help.
is there any other method to download ios 6.1.2.
my phone is not being recognized by itunes on my new windows 8. neither its working on touch copy.
kindly help.
thankswell in thatcase, i need another help .
thanks for your instant reply.
i have currently bought a new laptop (windows 8) and my iphone is not being recognized by itunes.
because i have no backup on my previous laptop, i downloaded touchcopy but even touch copy is not recognizing my iphone. -
I have ne iphone 5, i been setting my email using AT&T global but it is not working, please help me on the correct configuration
Contact the email provider and obtain the correct setup information.
-
my itnues for pc is not working it shows that iTunes has stop working,I have downloaded Itnues many times but still it is not working, please help me
Please helppppp
-
All my old tv shows are not working please help my computer sed I have to Atheris 5 computers to play all my old tv shows I Pade for with eney Itunas cards.
What do y mean by not work?
What happens when y try to play them on yur iPod?
What happens when yo try to play them in iTunes on yur computer?
If you get a message what is the exact wording of the message?
You can redownload most iTunes purchases by:
Downloading past purchases from the App Store, iBookstore, and iTunes Store
Some countries do not allow redownloads some kinds of media -
hi
i tried to update to ios 8.2 on my iphone 5s when message popup to me now my iphone not working, please help i dont want to lose my dataWhat is the exact text of the message you got? And did you not back up before you updated?
Maybe you are looking for
-
Creation of disconnection notification for the disconnection document
Hi, I created a disconnection document using FM ISU_S_DISCDOC_CREATE for the installation. Now i have to create the disconnection notification for the disconnection document. Is there any FM to do that. Regards, Mukesh Kumar
-
Late 2011 MacBook Pro Audio Crackling from 3.5mm Output and USB Audio Devices.
Howdy. I don't know what's wrong with my laptop. Recently any headphone I have used with the 3.5mm output has been crackleing. I assumed the jack it's self was broke but when I set up my Audioenndine D1 amp it is still crackling from videos on YouTub
-
Cf9 won't start after installing JRE 7 update 25
C:\ColdFusion9\bin>cfstart.bat C:\ColdFusion9\runtime\jre\lib\rt.jar: error reading zip file Error occurred during initialization of VM java/lang/NoClassDefFoundError: sun/reflect/UnsafeFieldAccessorImpl
-
Technician times being changed without notice
Has anyone else had a 4-7pm appointment with a technician being changed that is also having the night time slow download speed? My appointment was suppose to be 4-7 on friday and the only reason I found out was because we were having the same slow sp
-
ILifeMediaBrowser makes Safari and Firefox crash all the time
Hi, Safari keeps crashing on account of iLifeMediaBrowser (which I don't know what it is), and when I tried to switch to Firefox, it did the same. What is iLifeMediaBrowser and why is it acting out on my computer today? Please help! Thanks!