Hello,
I have a jsp page with several buttons.
<INPUT TYPE="submit" NAME="button_A" VALUE="Goto A">. I use these buttons to go to another page, depending on wich button is used.
In the servlet I retreive these with req.getParameter("button_A").
Once a...
Hello,
I'm using tomcat 4.1 and mysql. In the beans I connect to the database with sql queries. Now i have heard that you do not end these queries with a ";". Because then the query can be split up and someone can access the database and, for example, delete everything.
In my jsp...
Hello,
I'm using tomcat 4.1 and mysql. In the beans I connect to the database with sql queries. Now i have heard that you do not end these queries with a ";". Because then the querie can be split up and someone can access the database and, for example, delete everything.
In my jsp...
Would it be an option not to run the batchpdf.exe without the cmd.exe?
Another way to work around it is with a batchfile. Maybe that would help.
Dennis
Here is the way I use it:
First in the jsp pages I have the no caching stuff.
When you login I use a form to activate the servlet. When you login the servlet checks if the user is in the database. If so, I have a bean that "knows" that a user is logged in. This bean is always in the...
I don't think it is a tomcat problem.
You also have no ; after session.invalidate, but this is not the case in your code. I assume.
You could check if the invalidate is executed. Maybe some printlines around it.
In what way do you check on your jsp pages if a user is logged in? Do you put a...
You should take a look at the cache settings of your browser.
Or put the following in the header of your jsp pages.
<!-- doesn't work with IE -->
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<!-- doesn't work with Navigator -->
<META HTTP-EQUIV="expires"...
A sniffer is a tool that monitors your network traffic. It can see the packets that you receive and send. When you download a file (or webpage) it has to come over your network. And the file is devided in packets that are send from a server to your computer. Your computer puts everything...
I meant by that when you login you press a button, like submit. You can see the contents of what you send with a sniffer. That means you can retreive the username and password in a very simple way.
Is there a way to login that makes sure that this is not possible. I have looked at SSL but this...
I have build a login page for my website. Through a servlet i can get access to my site. The username and password are stored in a mysql database. I have tomcat 4 as a webserver
To gain access I use a <FORM> But when you login everything is sent to the server in plain text. Is there a way to...
In my application I use request.getServerName. It returns a null pointer exception. Is there anywhere I can set the server name? For example in server.xml. And how can I set it?
Dennis
You probably haven't changed the server.xml so i don't know if this could help you. But check if tomcat really runs on 8080.
Otherwise you should, if you have a one, check the settings of your firewall. The port 8080 might be closed.
Dennis
It isn't hard. Just zip it. Then rename to .war and if you want to test it reconfigure your tomcats server.xml for the war file.
It should work.
Dennis.
Is it possible to store Java Objects in mysql? And not just the variables?
This would be very helpfull.
For example:
I have a class Person with variables Name and Age. Later I decide to add Address. And I do not want to change the database or the Java code. I can store the variables in a...
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.