Hi guys,
Having a problem, my table does not get displayed, when i load the page it gives me the following error(p.s-the codes below): -
-
<%@ page import="java.util.*,java.io.*" %>
-
<%@ page import="testBean.TestBean" %>
-
-
-
<html>
-
<head>
-
-
<LINK REL="stylesheet" TYPE="text/css" HREF="stylesheet1.css">
-
-
</head>
-
-
<body>
-
-
<hr></hr>
-
-
<center>
-
-
<h1>
-
-
Weather Forecast</h1>
-
-
<table>
-
<tr><th>Todays Forecast</th></tr>
-
-
<tr>
-
<th>Temperature</th>
-
<th>Light</th>
-
</tr>
-
-
<%
-
-
String valString;
-
BufferedReader dataFile = null;
-
try {
-
String[] temp = {"Temperature", "Light"};
-
int recCount = 0;
-
FileReader dFile = new FileReader("w:/www/DataFile.txt");
-
dataFile = new BufferedReader(dFile);
-
valString = dataFile.readLine();
-
while(valString != null){
-
%>
-
-
-
<tr>
-
<td><%=temp[recCount]%></td>
-
<td><%=valString%></td>
-
</tr>
-
<%
-
recCount++;
-
//out.println(valString);
-
valString = dataFile.readLine();
-
}
-
}
-
catch (FileNotFoundException e) {
-
System.err.println("FileStreamsTest: " + e);
-
}
-
catch(IOException iOE) {
-
iOE.printStackTrace();
-
}
-
finally {
-
dataFile.close();
-
}
-
-
%>
-
-
</table>
-
-
-
<jsp:useBean id="temp" class="TestBean" />
-
-
<br><br><br>
-
-
<a href="test.html"> Local Five day forecast </a>
-
-
<br><br><br><br><br><br><br>
-
<table>
-
<tr><TD><IMG SRC="sunny.gif" ALT="S" BORDER=0 WIDTH=100 HEIGHT=100 ></TD><TD><h4> <%= temp.post() %> </h4></TD> </tr>
-
</table>
-
-
<br><br><br><br><br><br><br>
-
-
<hr></hr>
-
-
</body>
-
</html>
-
-
15 1584
Hi there,
i made alterations to the code, whereby i have created to separate tables for light and temperature, which reads two different files, although both the tables and data gets displayed, each table has two addtional empty rows printed to it, like below. How do I stop this from happening?? -
-
Todays Temperature
-
-
Outlook: image1.gif
-
Temperature: Todays temperature is: 90 degrees
-
Temperature :
-
Temperature :
-
-
Todays Light Intensity
-
-
Outlook: image2.gif
-
Light: Todays temperature is: 90 degrees
-
Light :
-
Light :
-
-
Hi there,
i made alterations to the code, whereby i have created to separate tables for light and temperature, which reads two different files, although both the tables and data gets displayed, each table has two addtional empty rows printed to it, like below. How do I stop this from happening?? -
-
Todays Temperature
-
-
Outlook: image1.gif
-
Temperature: Todays temperature is: 90 degrees
-
Temperature :
-
Temperature :
-
-
Todays Light Intensity
-
-
Outlook: image2.gif
-
Light: Todays temperature is: 90 degrees
-
Light :
-
Light :
-
-
You could exclude the empty string with -
-
while(tempString != null){
-
if(!tempString.equals("") ) {
-
//..........
I added the if statement but the page does not load up.
I added the if statement but the page does not load up.
You mean nothing shows? Any error messages, exceptions etc
no nothing, its like the screens frozen.
no nothing, its like the screens frozen.
It must be something else then. That if statement does not cause the computer to freeze.
The computer does not freeze, but it does not load up, however when i take the if statement away it loads up fine.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: python-help-bounces |
last post by:
Your message for python-help@python.org, the Python programming
language assistance line, has been received and is being delivered.
This automated response is sent to those of you new to python-help, to
point out a few resources that can help with answering your own
questions, or improve the chances of getting a useful answer from the
helpers.
The most comprehensive overview of python.org help resources is at
...
|
by: Sarir Khamsi |
last post by:
Is there a way to get help the way you get it from the Python
interpreter (eg, 'help(dir)' gives help on the 'dir' command) in the
module cmd.Cmd? I know how to add commands and help text to cmd.Cmd
but I would also like to get the man-page-like help for classes and
functions. Does anyone know how to do that? Thanks.
Sarir
|
by: tbatwork828 |
last post by:
If you were like me trying to figure out how to launch context
sensitive help topic by the context id, here is the link:
http://weblogs.asp.net/kencox/archive/2004/09/12/228349.aspx
and if link doesn't work, basically here is the article:
An Exploration Into Launching Context-Sensitive HTML Help with Topic
IDs in VB.NET
I spent this evening investigating the HTML Help API as implemented in
|
by: Colin J. Williams |
last post by:
Python advertises some basic service:
C:\Python24>python
Python 2.4.1 (#65, Mar 30 2005, 09:13:57) on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
With numarray, help gives unhelpful responses:
|
by: Bruce Dodds |
last post by:
I recently started using Access 2003 for the first time. I wanted to
pass on some comments about the Help system to Access MVPs who frequent
this board. I'm doing this in the hope that some of what I say may be
passed on to Microsoft.
Microsoft has implemented a combination local and web based help system
in Access 2003. The local Help installed on your hard drive is fast, but
the content is abbreviated. For really useful help you have...
| |
by: Steve Teeples |
last post by:
Can someone point me to a document that clearly identifies the steps of
creating a good help system for an application? I have a test tool that I'd
like to add help to so that others will know how to use it.
--
Steve
|
by: Yabedabe |
last post by:
Hello there,
I have a strange problem (possible bug?) to display two HTML Help
files at the same time.
To reproduce this problem. Create a new VB.Net solution. Place two
buttons on the form. Create two button_click events with the following
code in it
For button1
Help.ShowHelpIndex(Me, "C:\Temp\File1 mspaint.chm")
|
by: JonathanOrlev |
last post by:
Hello everybody,
I wrote this comment in another message of mine, but decided to post it
again as a standalone message.
I think that Microsoft's Office 2003 help system is horrible, probably
the worst I
ever seen.
I almost cannot find anything I need, including things I
|
by: PaulS |
last post by:
new to Fedora7, typed python in interactive interpreter, then help(). Then
modules to get a list of modules. Then module name to get info on a module
but no help file. What is the help file name? Is there an environmental
variable I have to set? Thanks,
Paul
|
by: priyajohal |
last post by:
#include<fstream.h>
#include<process.h>
#include<stdlib.h>
#include<conio.h>
#include<string.h>
#include<dos.h>
#include<ctype.h>
#include<stdio.h>
void setup()
void help();
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |