Thanks I did that and it worked. However now I get the following errors even though my MyBeans does exist in the webapp. Any ideas why it cannot import MyBeans?
C:\tomcat\webapps\www.popmates.com\WEB-INF\classes>javac profilePost.java
profilePost.java:11: package MyBeans does not exist
import...
OK I have checked and I do have a file called servlet.jar in directory TOMCAT_HOME/common/lib but I am still not able to javac.
Can you think of a reason why javac cannot seem to find this file when I run it.
Could this be something to do with setting the environment variables for tomcat and...
I recently had to reformat my hard drive and I am trying to rebuild an application. I had the actuall webapps part of the application backed up but not the rest of tomcat.
So I have download tomcat and installed tomcat and copied across the webapp.
Now when I try to javac one of my servlets I...
I have the following table which stores entries "content" submitted by users "submitname" about celebrities "celebname"
CREATE TABLE submit (
id int(10) NOT NULL auto_increment,
celebname varchar(50) default NULL,
content varchar(255) default NULL,
date_modified timestamp(10) NOT NULL...
I know that there is way to do this because I have actually seen tiny pop up windows which do not have the minimize, maximize and close buttons.
Does anyone know how to open a window without those buttons?
Andy
I am trying to create a 1 by 1 pixel pup up window, however the smallest I seem to be able to get the window is about 100 * 100. The reason for this seems to be because of the window minimize, maximize and close buttons.
So my question is - is is possible to get rid of the bar containing the...
When I run the following query
select count( username) as count, username
from friends
where status="validated"
group by username
order by count;
it gives me a list of each username in the and how many times it appears in the friends table
Can anyone tell me how to rewrite this query so...
...help. I want to create a index to help the following statement run faster, can anyone suggest which would be the best index to create
select * from profile, album, movie, book, contact
where profile.album = album.albumid
and profile.movie = movie.movieid
and profile.book = book.bookid...
I have been running tomcat on windows xp for 9 months now with no problems.
Today I was working with tomcat when my computer crashed. When I restarted my computer and then tryed to restart tomcat it would not work.
Each time I start it from the command line it tries to start and after a few...
When I put fr2.flush();
I get the following error
inviteMailServlet3.java:128: cannot resolve symbol
symbol : method flush ()
location: class java.io.FileReader
fr2.flush();
^
Can you tell me what I have done wrong?
Andy
Hi Byam, thanks for the suggestions.
Here is an example of my filereading code
fr2 = new FileReader("/home/popmate/webapps/uk2/jsp/inviteMailMember1.txt");
while( ( ch2 = fr2.read() ) != -1 )
{
sbContent.append( (char) ch2 );
}
I have not closed the file. Could you please tell...
Thanks for the suggestion.
But if it was a concurrency issue, why would it be resolved by restarting the server. Would there still be just as many people trying to access the file concurrently?
Andy
My site has a number of servlets that send emails out ( ie. when a user registers for an account). The text of the email is held in a text file which the servlets opens and reads using the following line:
FileReader fr4 = new FileReader("../webapps/uk2/jsp/contactMail1.txt")...
I have two tables "profile" and "photovote" both of which have a column named "username". I want to copy the value of "username" from "profile" to "photovote" (which is currently empty.
I have tried doing
insert into photovote...
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.