Hello all,
I am running into a problem trying to insert 12:00 PM into a DB2 database TIME field. I have a jsp page that has a select box with the values 1:00 to 12:00 and a select box with the values of AM and PM. I am using SimpleDateFormat and everything works with the exception of 12:00...
Hello everyone,
Do you have to use a try/catch block to check for a null object? I know this is a pretty simple question but it has been bothering me for a while. An example:
I have a class called RoadCond that is a bean. So the following code throws a Null Pointer Exception if I get a...
Hello all,
I am trying to write a query to select data from a database but do not know how to limit what is being selected. I need to use the SUM function to get the total from all of the records that are returned in the where clause but only want the DATE when records have a TRANS_TYPE of 0...
Hello all,
I am stuck on what is probably a simple problem. I have an ArrayList (which could be a List of need be) and am trying to print the values of the list which is multidimensional. Here is a result set:
7425 46 46
21146 25 25
21445 -10 0
I am getting this information from a database...
Hello All,
I am not an SQL expert by any means and I am getting stuck when trying to select multiple fields from two different tables. I understand why I am not able to do what I want to do but I am not sure how to get around it. Here is the SQL statement I have working so far:
SELECT...
Hello all,
Does anyone know how to convert type of Long to an Integer?
Long count = function(); // Returns a long
Integer factor = (Integer) count;
This obviously does not work but I am not sure how to get around this. Hibernate only returns a type of Long when using an aggregate count...
Hello all,
I am trying to create a popup div tag on the fly (which is working) but I need to create a list of links and call a javascript function with a parameter. The values I am trying to send in are being sent in as strings and not the variables. Has anyone come across this before? A...
Hello all,
I am running into a problem that I cannot seem to solve. I have an ArrayList of a object called roads and the iterate function is not working the way it should (or at least the way I think it should). Here is the code:
ArrayList roads = new...
Hello all,
I am new to Hibernate and I am getting an error that I cannot seem to resolve. Below is the hbm.xml file, the java class, and a little utility to run the code. I am printing the SQL code and when I run it in SQL plus I get the expected results but it will not load when I call my...
Hello all,
I am sure this is very easy but I am stumped. I am getting the error "object doesn't support this property or method" when using the onmouseover event. The error is triggered as soon as my mouse goes over the href tag. The code is really simple but I am not sure why I am getting...
Hello,
I have a form with a dropdown list and text box. I also have a reset button. I am trying to reset the dropdown list to the first value but I am not having any success. The text box is clearing so I know that I am getting to the Javascript function. My form and Javascript function are...
Hello,
I am struggling with this problem for several days now and cannot find a solution. I have a web form, when I enter a value it does a query on the value entered. I have several dropdown lists and need to populate the values. Some of these lists are dynamic and some are static...
Hello All,
My perl scripts are being run on a Windows 2000 server and are connecting to another machine running Microsoft's SQL. My programs work fine using the Perl DBI/DBD module. However, each perl script needs to re-connect to the SQL database. Is there anyway to pass the connection...
Hello,
Has anyone ever used cscript.exe or called a .vbs file from a Perl script on a web page? When I run my Perl script from the command line I place a system("cscript.exe") call with some parameters and it works fine. When I try to do this from a browser I get the following...
Hello All,
I am running into a problem using a Windows 2000 server running IIS 5.0. The following code works when it is run from a Perl program run at the command line but not run over the Internet.
## Start of code
$to = "brandon\@email.com";
$from = "server\@email.com"...
Hello All,
I am using a Windows 2000 server that is running IIS 5.0. My ftp site is using Windows account to allow access to the site, there is no anonymous access. What I would like to do is limit the size of space each user has. I have set up disk quotas on the drive but when a user...
Hello All,
I am using a Windows 2000 server that is running IIS 5.0. My ftp site is using Windows account to allow access to the site, there is no anonymous access. What I would like to do is limit the size of space each user has. I have set up disk quotas on the drive but when a user...
Hello All,
I am running IIS 5.0 on a Windows 2000 server. A web server has been running using Perl scripts. We were have security problems so I ran the Permission Wizard included in IIS 5.0. After running this wizard I am unable to run Perl Scripts. I get the following message:
Error...
Hello All,
I am running IIS 5.0 on a Windows 2000 server. A web server has been running using Perl scripts. We were have security problems so I ran the Permission Wizard included in IIS 5.0. After running this wizard I am unable to run Perl Scripts. I get the following message:
Error...
Hello All,
I am running IIS 5.0 on a Windows 2000 server. A web server has been running using Perl scripts. We were have security problems so I ran the Permission Wizard included in IIS 5.0. After running this wizard I am unable to run Perl Scripts. I get the following message:
Error...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.