Posts

Showing posts from June, 2006

How can i prevent Browser from Caching the Page content?

Before sending the data to the browser, use the following code:
response.setHeader("Cache-Control","no-store");
response.setHeader ("Pragma","no-cache");
response.setDateHeader ("Expires", 0);
This also helps in case, when user should not be able to see previous pages by clicking the Back button in the browser.

Can an icon be published on the left side of the URL in the address bar?

Create an icon called favicon.ico and place that in the root of the website. You can also link to it using this: <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" /> Source: JGuru.com

JBoss - The Basics

This is not for the experienced JBoss application server user. It is meant to give the JBoss beginner the basics to running and deploying applications to JBoss 4.0.3 SP1.
JBoss LayoutJBoss is easy to understand if you know the way the directories are setup and how to work with them. First everything you will do to JBoss is in the install directory. bin directoryThe most important one here is the run.bat or run.sh. This will run the application server and display debug and information messages to the user in the session it is started in. To start JBoss simply use the run command from this directory. To stop the server do a CTRL-C in the session it was started in. There are also some other files there but this is the basics only so I will not discuss them. lib directoryThis is the "root" server lib directory. You don't usually have to nor want to do anything with these libs. server directoryThis is where the directories for the server instances are. This is wh…

[Humor] Compensation

Image
How are you compensated in the Organization for the good work? Is it one of these forms ;)