I am trying to use XSLFO to produce a PDF file. I am getting closer but am having a problem still. I no longer get any transformation errors in my java servlet so I think I am creating the transformation correctly. I am getting the following 2 errors though after the Acrobat reader is...
I want to create a vbs file that sends an E-mail message when certain system events happen. So my vbscript looks as follows:
Set Mail = Server.CreateObject("Persists.MailSender")
Mail.Host = smtpServer
Mail.From = addy_from
Mail.FromName = addy_from
Mail.AddAddress addy
Mail.AddAttachment...
I have decided to implement Log4J in my web applications. After setting this up, I realized that I had a problem when using a particular page that utilizes the HttpClient class in commons-httpclient.jar.
Apparently, that class requires the commons-logging.jar (which I removed when putting the...
I just upgraded from Tomcat 3.3 to 4.1 and noticed that when i restart the service, the stdout.log and stderr.log are cleared out? I can see how this could be good in some instances, but I need to have those logs kept so I have some sort of history of any errors.... Does anybody know why and/or...
This seems pretty easy in theory to me, but I am stumped. I have a webapp running on Tomcat 4.1. A user signs in and I authenticate them based on a MySQL database and all that fun stuff, and add their UserID to the HttpServletRequest.Session if their signon is successful. This is non-secured...
I am running version 4.1.1a of MySQL server, and I am running into a problem. The below SQL query causes an error, saying:
[MySQL][ODBC 3.51 Driver][mysqld-4.1.1a-alpha-nt]Every derived table must have it's own alias
I have looked at this query up and down and can't find anything wrong with...
I am able to run this query in access directly, but when I call it from my java application ot gives me an error - do I need this timestamp formatted differently or something of that nature???
DELETE FROM DB2_APPNAME_PNDING_PROF_OWNRSHP WHERE TS < #12/09/2004 05:35:03 PM# AND USR_ID <> 0...
I have an application which needs to look at fields in a multipart request in several different places of the code. The first time I look at the request, it works just fine, but every time after that it doesn't. Here is a simplified example of what is happening:
private ServletInputStream...
I am having a problem joining three tables together in this query. Everything looks fine to me, but I am getting an error when adding 'T5' into the mix. The following query DOES work:
SELECT DISTINCT
T1.USR_ID,
T1.USR_NM,
T1.FRST_NM,
T1.LST_NM...
I am having problems writing a query - I am not even sure if this is possible to do. Here is how in this example the 2 tables look:
TBL_PART_DM
-----------
PART_ID (KEY)
PART_IMG
PART_NAME
TBL_PART_LOC
------------
PART_ID (KEY)
PART_LOC (KEY)
In this example, lets say that somebody...
I have an application that queries a SQL2000 database remotely. It has to make multiple queries though and is timeing out because there are so many connections. What I am wondering is if I am doing this the most efficient way:
private void getResults() {
SQLConnectionFactory factory = new...
I am using a java servlet to dynamically generate an image file (a bar chart). I have been asked to place labels on the X and Y coords. The X is easy because you just use the getGraphics().drawString(). However, I can't seem to figure out how to do the Y label as I will need to have the label...
I am not sure if this is the right place to put this or not. I have an XSL file, and in that file, I want to output the response from a URL:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"...
What is the best way to round a double to an int? Math.round doesn't return an int when a double is passed in - only a long. So if I want to use Math.round, I actually have to do this:
int myInt = Math.round(Math.round(myDouble));
Kind of redundant? Thoughts?
I am running some servers from my home and my router crashes continuously (meaning that I lose my internet until I unplug my router and plug it back in). This is getting very annoying. And this is the second router that I have had issues with. Is there a way that I can use java to restart...
I am trying to render an HTML page from XML via a java servlet. Not sure if this is the right section or not, but I thought I would start here... I need to use CDATA because there is a section that will more than likely not be formatted correctly. So my XML look something like this:
<Root>...
I am trying to execute a *.bat file from within an ASP page. My vbscript looks like this:
<%
Dim oShell
Set oShell = Server.CreateObject("WSCript.shell")
oShell.run "c:\inetpub\jakarta\bin\stopTomcatService.bat"
Set oShell = Nothing
%>
This used to work, but I just upgraded servers and...
I have written a vbs file that launches a java class. The vbs file is set using windows scheduler so that it can be run every 10 minutes. My code looks like this:
Dim WSHShell, FSO, javaclass, cmdline
Set WSHShell = WScript.CreateObject("WScript.Shell")
Set FSO =...
In the following SQL, I have 2 tables (TRACTOR_TABLE and SOFTWARE_TABLE) that I am doing a LEFT JOIN on. If I remove the "GLOBAL_TABLE" from the end of the query, it works fine. However, I need to join the entire results of this query to another table, so that is why I need the lable at the...
I have an SQL problem that I am not sure how to solve. I am a java guy and SQL is not really my specialty. Basically I have a table setup something like this:
Table name: LOADS
LOAD_NUMBER SEQUENCE_NUMBER LOCATION
1100 1 Des Moines
1100...
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.