hai friend.. grand welcome to you......happy x-mas........ visit my web site

Monday, March 9, 2009

Shankrappanakodlu -Temple

ShankrappanKodlu is one of the most beautiful Temple in the region with peaceful ambience.

To see the temple map..please

click here

Thursday, February 19, 2009

You May Be Victim Of Software ConterFeiting

Hai …

If you want to get out of the problem “you may be victim of software counterfeiting” just follow these steps ..
Step-1:Safe mode

• Reboot your computer and as soon as Windows logs off, start repeatively tapping the F8 Key on your keyboard.
• As soon as you see the Windows Advanced Startup options select Safe Mode within Safe Mode get yourself into these folders…
• C:\Windows\System32 (Rename wgatray.exe to wgatrayold.exe)
• C:\Windows\System32\dllcache (Rename wgatray.exe to wgatrayold.exe)
Note: Dllcache is a hidden folder, to view hidden folders do the following, go to Start, Control Panel, Folder Options,
Select the view Tab and under the Hidden Files option, select Show hidden files and folders

2) Safe Mode Registry

• Click on Start, Run and within the open dialog box type regedit and click OK.
• Within the Registry Editor navigate your self to
HKEY_Local_Machine\Software\Microsoft\WindowsNT\CurrentVersi-on\Winlogon\Notify\WGALOGON
• Right Click and Export the WGALOGON Folder (this should be saved onto your machine for backup purposes)
• After Exporting the folder, DELETE the WGALOGON folder
• After deleting close all applications and Restart your machine back to Normal Mode
After being prompt of a successful validation, Restart your Machine

Saturday, January 10, 2009

How to write the Servlet program?


How to write the Servlet program?

here is the simple steps to write the servlet program .just follow it .

step 1:

create a folder or directory and give any name…generally we name the directory or folder name as application name.

here I consider my application name as helloSevlet. Hence I name my directory or folder name as helloSevlet.

Step 2:

Create three more directory (directory or folder both are same) in parent directory helloSevlet. Name them as

i)src

ii) resources

iii)WEB-INF

note that the name of the directory WEB-INF must be in capital I have shown.

The directory h ierarchy as viewed as follows.

Some important points to remember:

We generally put all .java files in src directory which are considered as source files.

We generally put all html ,jsp, and any supported files in resources directory.

WEB-INF directory is maily gives the web information which is discussed in next step.

Step 3:

Now consider the WEB-INF directory.

Create one directory and name it as classes .

This classes directory will have all .classes files which we got from the .java files when they compiled in the src .

The WEB-INF directory also consists of one XML file called web.xml which is called as deployment descriptor or configuration file.

Now the total directory hirerchey is as follows

Code:

Login.html.(this login.html file is placed in resources folder).

New Document

New Document

method="GET" >

username

password




Code:

Login.java(this login.java file is placed in src directory)

import javax.servlet.http.*;

import javax.servlet.*;

import java.io.*;

public class login extends HttpServlet

{

public void doGet(HttpServletRequest req,HttpServletResponse res)throws IOException,ServletException

{

res.setContentType("text/html");

PrintWriter out=res.getWriter();

String s=req.getParameter("username");

String s1=req.getParameter("pwd");

out.println("u r name is:"+s);

out.println("u r password is:"+s1);

}

}

Code:

Web.xml(this web.xml file is placed in WEB-INF)

login

login

login

/login

resources/login.html

Compilation:

I placed my application directory in c: drive.the compilation is as follows.

C:\helloServlet\src>javac login.java –d ../web-inf\classes (enter)

the above command will produce the login.class file and it is placed in classes directory of WEB-INF directory.

Creating war file:

To create war file the following command should be followed.

C:\helloServlet>jar -cfv helloServlet.war . (enter)

Final step:

Copy the helloServlet.war file from the helloServlet directory and place it in webapp directory of your tomcat server.

Then run the tomcat server. Open IE browser and type the url as followed in the address bar.

http://localhost:8080/helloServlet/... It will run ………..

 
have a good time.................