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...
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 =...
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...
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...
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...
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).
<script language = "javascript">
function getValue()
{
var...
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...
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...
Thanks sedj,i replaced the "\" with "\\" and it works perfectly and, seperately to that I went with the Apache Commons FileUpload package.
Hi,
I can upload a file to my Tomcat directory nicely. I tested the filepath and its printing "C:\Program Files\Apache Tomcat\Webapps\...etc". 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...
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...
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 "com.mysql.jdbc.Blob@6295eb". Heres the code. Any ideas?
import java.io.*;
import javax.servlet.*;
import...
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.