Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: mluken
  • Content: Threads
  • Order by date
  1. mluken

    Problem using XSLFO

    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...
  2. mluken

    Sending E-mail from a vbs file

    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...
  3. mluken

    Log4J and commons-logging

    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...
  4. mluken

    Tomcat 4.1 clearing out stdout and stderr on restart?

    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...
  5. mluken

    Keeping session alive when going between HTTP and SSL

    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...
  6. mluken

    Derived tables / alias error when doing a union

    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...
  7. mluken

    Problem with a timestamp query???

    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...
  8. mluken

    ServletInputStream error when reading more than once

    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...
  9. mluken

    Problem joining 3 tables

    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...
  10. mluken

    Using COUNT and joining to another table

    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...
  11. mluken

    Java timing out when making connection to SQL server

    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...
  12. mluken

    Rotating a graphic

    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...
  13. mluken

    XSL referencing external URL

    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"...
  14. mluken

    rounding a double to an int

    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?
  15. mluken

    Resetting a router via java

    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...
  16. mluken

    Rendering HTML using XML/CDATA in java servlet

    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>...
  17. mluken

    Permission denied when running a shell script from within vbscript

    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...
  18. mluken

    Launching a java class from a vbs file while excluding console window

    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 =...
  19. mluken

    Syntax error when left joining tables

    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...
  20. mluken

    SQL help (can't think of a more descriptive subject)

    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...

Part and Inventory Search

Back
Top