thanks for the post
what happens if I do now know how many dates will there be in the array?
i am getting the dates from the sql table and dates are not sorted
hi I am trying to write a simple logic
say example
<pre>
a=20030930;
b=20031005;
c=20031130;
d=20031231;
e=20030829;
while (1){
..
if(currentdate <= dateline)
{
print(date);
}
}
where dateline is a list of all the dates eg a, b, c, d, e
But my above codes prints
b
c
d
How...
Hi
I have got a question. How do I call another servlet?
http://localhost/test/servlet/FirstServlet
http://localhost/test/servlet/SecondServlet
How do I call SencondServlet from the FirstServlet?
I do not wish to use the url method. Is there another way?
I am currently using JWSDP 1.0 to deploy my servlets. But I am unable to deploy my properties file into the WEB-INF folder.
eg
test.properties always go directly to the context folder everytime I add it. I tried to move it to the WEB-INF folder but it can't.
Anyone can solve this?
I am using JWSDP 1.0 to deploy my servlets. Apparently I am unable to deploy my properties file into the WEB-INF folder.
eg config.properties always go directly to the context folder everytime I add it. I tried to move it to the WEB-INF folder but it can't.
Anyone can solve this?
is there a way all the servlets is totally unable to do that unless we deploy it?
If we have to put it on the web server then it would be simple. We can just redirect the servlet to the filename itself. But this is not what I wanted.
Any codes that will be able to solve this issue?
I tot of that but I do not want people to find out the link as it may contain some private stuff. This will only be accessible only from a login page. Therefore I was thinking of storing the file in a local drive which is not deployable in Tomcat.
the file will be stored in c:/tmp in the server computer.
The client will be able to download the file when he clicks on a button.
I need to write code for the user to download the file. I have really no idea how to approach this method.
I am planning to write a code to downlaod an excel file in c:\tmp
Anyone has any idea how will I be able to achieve that as the c:\tmp is not deployed in Tomcat?
Any example codes that anyone can provide me?
I wrote the function below but I am not sure how to parse the tablenames.
Basically I am confused now. The examples from the google really messed me up.
private void dropTable() throws SQLException
{
try {
out.println("Dropping Table.............");
stmt = conn.createStatement()...
forgot to include that I wish to write a seperate method to drop the tables in sql, so that it I dun have to write multiple commands each time I wan to drop the table rite?
Hi all.. I am new to java and I am thinking of dropping all the tables in mysql.
I have written halfway and I am stuck. can someone help me?
String query = "SELECT tablename FROM tablelist";
ResultSet rs = con.runQuery(query);
ArrayList infoList = new ArrayList();
while (rs.next()) {...
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.