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!

Recent content by Ciarrai

  1. Ciarrai

    writing file to server

    Hi, i am trying to empty the contents of an excel file into an excel spreadsheet - i'm using HSSF. It works fine when i'm testing it on tomcat on my local machine, but when I try to write to a folder on the web server it doesn't appear. The file path is absolute and I set the folder permissions...
  2. Ciarrai

    Problem with OnClick Event

    Hi, I am using an external stylesheet to control the background image on mouseover and mouseout events. Is there anyway I can change the background image on an onClick event?? Also will I lose the effect of mouseOver if i put code in? Here is the code: <table width="115px"> <tr class =...
  3. Ciarrai

    POI MySQL to Excel

    Got it working taking out the first for loop...school boy error...Thanks everyone.
  4. Ciarrai

    Problem with loop

    Thanks for you help. That worked perfectly! Ciarrai
  5. Ciarrai

    Problem with loop

    Thank you for your replies. I added in the extra <td> tags and the rsCategories.moveFirst. However, i still can't get the loop to work properly. If I have three options in the database I get 3 columns. If i Have 4 options in the database I get 4 columns. The checked checkboxes are appearing...
  6. Ciarrai

    POI MySQL to Excel

    Hi, I'm trying to read from a table into an Excel spreadsheet. My loop is wrong but is there a more efficient way of doing this? Thanks. try{ queryString = ("SELECT * from table ORDER BY time ASC"); // create a new workbook HSSFWorkbook wb = new HSSFWorkbook(); // create a new...
  7. Ciarrai

    Problem with loop

    Hi, This is probably very simple but for some reason I can't get this loop to work properly. I am looping through a column in my database. If a field is found in the column a checked box is displayed along with the name of the field. If it is not found I want to display an unchecked box. I've...
  8. Ciarrai

    Passing values from one form to another form

    Thank you for your replies. I realised I needed to set the value in form one so I gave the form a name(theFrm) and used a javascript function to set the value and pass it to form 2(theForm). &lt;script language = &quot;javascript&quot;&gt; function getValue() { var...
  9. Ciarrai

    Passing values from one form to another form

    I'm getting errors passing values from one form to another. I'd be glad if anybody could point out what I'm doing wrong.. I'm passing 'headline' to the second form and I've tried to use input type = 'hidden' to capture the value and send it to my asp page where I am sending the values to my...
  10. Ciarrai

    javascript pattern matching problem

    Hi, I have created a html Page that allows a user to input data to a textarea on a form. On this I am using a Javascript function to ensure line returns are maintained by inserting <br> tags. This method, Validate(), is called when the form is submitted. My problem however is this: Once the...
  11. Ciarrai

    Servlet MySQL Slash Issue

    Thanks sedj,i replaced the &quot;\&quot; with &quot;\\&quot; and it works perfectly and, seperately to that I went with the Apache Commons FileUpload package.
  12. Ciarrai

    Servlet MySQL Slash Issue

    Hi, I can upload a file to my Tomcat directory nicely. I tested the filepath and its printing &quot;C:\Program Files\Apache Tomcat\Webapps\...etc&quot;. I then pass the doc name and filepath to a placeholder in MySQL. BUT, when I retrive the filepath it is minus any slashes. I suppose this is a...
  13. Ciarrai

    Servlet File Upload Issue

    Hi, I want to save a document on my local machine and then upload it to my Apache Tomcat file directory. I want to store the name and path in a mysql database and archive all the uploaded files. I was wondering how best to tackle this problem using servlets? I know in ASP that the application of...
  14. Ciarrai

    writing text file into BLOB field

    Works nicely. Thanks!
  15. Ciarrai

    writing text file into BLOB field

    I'm trying to use a servlet to write a file into a BLOB field in a mysql database. I can display the contents on my browser but all I seem to be entering in the blob field is &quot;com.mysql.jdbc.Blob@6295eb&quot;. Heres the code. Any ideas? import java.io.*; import javax.servlet.*; import...

Part and Inventory Search

Back
Top