Tuesday, June 25, 2013

Creating A simple DB2 Database Application with jsp

Creating a Database Application with jsp


                         In this session we are going to see that How to Create A simple DB2 Database Application with JSP (java server pages) . Application which we are going to build is login form
Topics Covered :

1. creating database for an application

2.Creating A form and sending data to server

3. connection to database with jsp

Steps to Follow
1.    Create database"VOTERS"
  •   create table "VOTER_DETAILS"
  •   insert column "name" Character30 and "voter_id" Varchar 20
  •   set voter_id as primary key
  •   insert values in table
2. open RAD
3. creat dynamic web project "project1"
4.  Right click on project and  -> new  -> webpage -> give page name as  index
5. index.jsp is opened if not then explore web Content folder of project1 and double click on index.jsp
6. in that page  place the code in between body tag

Voter name: Voter id:

7. save that page
8. now  we need to create the page where the form data is passed i.e. check.jsp
9. create new page as check.jsp
10  open that page source n delete all n paste the code given below

<%@page import="java.sql.*" language="java" contentType="text/html;
charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%
Class.forName("com.ibm.db2.jcc.DB2Driver");
System.out.println("driver loaded sucesssssssssssssssssss");
Connection Conn=DriverManager.getConnection("jdbc:db2://localhost:50000/VOTERS","username","password");
String voter_name=request.getParameter("name");
String voter_id=request.getParameter("voter_id");
PreparedStatement Stmt=Conn.prepareStatement("SELECT NAME FROM VOTER_DETAILS WHERE NAME='"+voter_name+"' AND VOTER_ID='"+voter_id+"'");
System.out.println("Statement loaded sucesssssssssssssssssss");
Stmt.executeQuery();
ResultSet rs=Stmt.getResultSet();
System.out.println("query execute loaded sucesssssssssssssssssss");
String name= null;
while(rs.next())
{ name=rs.getString(1);
}
rs.close();Stmt.close();Conn.close();
if(name != null)
out.println("Welcome to "+name);
else
out.println("Please check your voter name and voter id...");
%>


11. now save this page
12. now what left is creating the database connection
13. open data perspective  goto window -> open  perspective ->select data  perspective
14. creating connection
  •   right click on database select new a new window prompt
  •   fill the details as shown in image 
test the connection :

15. now start the server

16. run the application

17. if you t\run and submit the form you will get error .....








18. cause of the above error is the .. library file missing for db2
19. To solve this follow the steps given below
  •  expand the project
  •  project->webcontent->web inf -> select lib folder
  •  right click on lib  -> select import -> expand general -> select file system 
  •  click on next then browse the path  C:\Program Files\IBM\SQLLIB\java
  •  select java folder now check db2jcc.jar 
20. Now Import completed you can run the project 
21. Everything i shown in pictures just follow them 
22. its always good to here the reply so please comment n share this  :)










                            

You might also Like:

SENDING SMS VIA WAY2SMS USING JAVA

way2sms using Java

UPDATED CODE

This tutorial shows that how you can use the http://www.indyarocks.com/ for sending message using your java application 

Steps to Follow
  1. create a account on http://www.indyarocks.com/ 
  2. after getting indiarocks username and password use the code given below.
  3. modify the following details
    1. put your email id in Email string
    2. put your indiarocks username
    3. put your indiarocks password
    4. put number as the number on which you want to send sms
    5. put your messgae in messgae string , i limited the length to 110 char for stopping the misuse
  4. if you copy the code in your application's jsp page don't forget to import java.net.*,java.io.*,java.net.URLEncoder
Example JSP code

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><%@page
 language="java" import="java.net.*,java.io.*,java.net.URLEncoder;" contentType="text/html; charset=ISO-8859-1"
 pageEncoding="ISO-8859-1"%>

<html>
<head>
<title>index</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
</head>
<body>
<%
/* This api is only for developemnt purpose.

info : make sure to use valid email otherwise it won't work,message char limit is 110

**/
String email="put your email id here"; 
String user=" your Indiarocks username";
String pass=" your Indiarocks password";
String number="some number on which you want to send msg";
String msg="your message to send" ; 
String mURL="http://www.onl9class.com/smsapi/smsir.php?email="+email+"&user="+user+"&pass="+pass+"&number="+number+"&msg="+URLEncoder.encode(msg, "UTF-8");;
URL url = new URL(mURL);
BufferedReader reader = null;

try {
    reader = new BufferedReader(new InputStreamReader(url.openStream(), "UTF-8"));

    for (String line; (line = reader.readLine()) != null;) {
        out.println(line);
    }
} finally {
    if (reader != null) try { reader.close(); } catch (IOException ignore) {}
}
 %>
</body>
</html>


You might also like:

10 Fastest Supercomputers In The World



SENDING SMS VIA WAY2SMS IN ASP.NET C#



Monday, June 24, 2013

Transformers PC Game Full Version Free Download

Transformers: The Game PC RIP Full Version 


Transformers: The Game Minimum System Requirement
Transformers: The Game Recommended System Requirements
Transformers: The Game  OS: Windows XP/Vista
Transformers: The Game Processor: Pentium 4 @ 3 GHz
Transformers: The Game Memory: 1 GB
Transformers: The Game Hard Drive: 2.0 GB Free
Transformers: The Game Video Memory: 128 MB (GeForce 6800/ATI X800+)
Transformers: The Game Sound Card: DirectX Compatible
Transformers: The Game DirectX: 9.0c
Transformers: The Game Keyboard & Mouse
Transformers: The Game DVD Rom Drive 

Transformers: The Game Information
Transformers: The Game is the name of multiple versions of a video game based on the 2007 live action film Transformers, all of which were released in North America in June 2007. Home console and PC versions were developed by Traveller's Tales for the PlayStation 2, Xbox 360, Wii, PlayStation 3 and PC. A different PlayStation Portable version was developed by Savage Entertainment.

Transformers Autobots and Transformers Decepticons are the Nintendo DS versions of Transfomers: The Game. Vicarious Visions, who was tasked with bringing the adaptation to the Nintendo DS, chose to adapt the DS version into two separate games. Autobots follows the heroes' perspective while Decepticons follows the villains'. Unlike games with multiple SKUs such as Pokémon which feature only minor differences between versions, these are two separate games, sharing some basic similarities, but with unique characters, missions and locations.

Gameplay
The game (in all its versions) is mainly a third-person action-shooter. All the robots have at least four attack types: a light weapon, a heavy weapon, a melee attack, and the ability to throw objects such as cars, lamp posts, trees, etc. As its title and characters imply, a robot can transform into a vehicle and viceversa, this gives the game some racing elements, as the player must, in some missions, race to certain point within a time limit or before a character of the opposing faction does. Each area is a open world environment, and there are also side-missions, Energon cubes and Autobot/Decepticon emblems scattered through the city, if accomplished successfully/collected the player can unlock trailers, production photos and unlock color schemes for certain characters.

Transformers: The Game Screenshots


  1. First Click on Download.
  2. Then Wait For 5 second to load the Ads.
  3. Click on skip and Download.




Resident Evil 2 For PC Full Free Games

Download Resident Evil 2 For PC Full Free Games


Download Resident Evil 2 For PC, Download Resident Evil 2 For PC, Free Full Version, Full Version Resident Evil 2 Download PC, Resident Evil Game For PC Free Download, Download PC Games For Free, Resident Evil 2 Download, Free Resident Evil 2 Rip For PC.

Download Resident Evil 2 For PC, Download Resident Evil 2 For PC, Free Full Version, Full Version Resident Evil 2 Download PC, Rip Resident Evil 2 PC

Resident Evil 2 PC Game Minimum and Recommended System Requirements:
Resident Evil 2 PC Game Minimum System Requirements:
OS: Windows 7/95/98/XP/Vista
Processor: Pentium @ 166 MHz
Ram: 24 MB
Hard Drive: 300+ MB Free
Video Memory: 4 MB
Sound Card: DirectX Compatible
Direct X: 6.0
Keyboard & Mouse

Resident Evil 2 PC Game Recommended System Requirements:
OS: Windows 7/95/98/XP/Vista
Processor: Pentium 2 @ 266 MHz
Ram: 64 MB
Hard Drive: 300+ MB Free
Video Memory: 8 MB
Sound Card: DirectX Compatible
Direct X: 6.0
Keyboard & Mouse


Resident Evil 2 PC Game Information:

Resident Evil 2, known as Biohazard 2 (バイオハザード2 Baiohazādo Tsū?) in Japan, is a survival horror video game originally released for the PlayStation in 1998. Developed by Capcom as the second installment in the Resident Evil series, its story takes place two months after the events of the first game, Resident Evil. It is set in Raccoon City, an American community whose residents have been transformed into zombies by the T-virus, a biological weapon developed by the pharmaceutical company Umbrella. In their escape from the city, the two protagonists, Leon S. Kennedy and Claire Redfield, encounter other survivors, and are confronted by William Birkin, the mutated creator of the G-virus, a more powerful variation of the T-virus.

The gameplay of Resident Evil 2 focuses on exploration, puzzle solving and combat, and features typical survival horror elements such as limited saves and ammunition. The game's main difference from its predecessor is the "Zapping System", which provides each player character with unique storylines and obstacles. Developed by a team of 40–50 people over the course of one year and nine months, Resident Evil 2 was directed by Hideki Kamiya and produced by Shinji Mikami. The initial version of the game, commonly referred to as Resident Evil 1.5, differed drastically from the released product and was scrapped at a development stage of 60–80%, after being deemed "dull and boring" by the producer. The resulting redesign introduced different settings and a more cinematic story presentation, supported by a soundtrack that employs "desperation" as an underlying theme.

Resident Evil 2 was critically acclaimed by critics, who praised its atmosphere, setting, graphics and audio. Its controls, voice acting and inventory system were criticized, however, and certain reviewers disliked its puzzles. The game has become a million-seller, and is the franchise's most successful title on a single platform. Years after its first release, Resident Evil 2 was included in several lists of the 100 best games. Following its initial success on the PlayStation, it was ported to Microsoft Windows, the Nintendo 64, Dreamcast and Nintendo GameCube, and was released as a modified 2.5D version for the Game.com handheld. The story of Resident Evil 2 was retold and built upon in several later games, and has been adapted into a variety of licensed works.
Information From: Wikipedia

Resident Evil 2 PC Game Screenshots:
Download Resident Evil 2 For PC, Download Resident Evil 2 For PC, Free Full Version, Full Version Resident Evil 2 Download PC, Rip Resident Evil 2 PC
Download Resident Evil 2 For PC, Download Resident Evil 2 For PC, Free Full Version, Full Version Resident Evil 2 Download PC, Rip Resident Evil 2 PC
Download Resident Evil 2 For PC, Download Resident Evil 2 For PC, Free Full Version, Full Version Resident Evil 2 Download PC, Rip Resident Evil 2 PC




Wednesday, June 19, 2013

Fastest Cars In The World


1. Bugatti Veyron Super Sport: 267 mph (429 km/h), 0-60 in 2.4 secs. Aluminum, Narrow Angle 8 Liter W16 Engine with 1200 hp, base price is $2,400,000. Although the Bugatti Veyron lost the title to SSC Ultimate Aero on March 2007, Bugatti challenge the record in Germany on July 10, 2010 with the new 2010 Super Sport Version and the Veyron once again claims the title of the fastest car in the world at 267 mph. The original Bugatti Veyron has a top speed of 253 mph, priced at $1,700,000 and equipped with 1001 hp.



#2 is a tie at 260 mph!

2. Hennessey Venom GT260 mph (418 km/h), 0-60 in 2.5 seconds, has a 6.2-liter LS9 Turbocharged V8 Twin Turbo V8 Engine producing 1200 hp, has a price tag of $950,000. The Venom GT has yet to be tested and proven, but could possibly hit a top speed of 275 mph. This might just be the Veyron Super Sport's closest competitor!


2. Koenigsegg Agera R: 260 mph (418 km/h), 0-60 in 2.9 secs. 5.0-liter V8 Engine with twin turbo’s, housing 1099 hp. Base price is $1,600,000. If you're into snow sports, the Agera R can be fitted with a Ski Box as well as winter tires, not that I would take one on a ski trip or anything like that. While the Agera R has a massive theoretical top speed, the current tested top speed is 260 mph. Expect this snow car to be the Bugatti's arch enemy for the next 5 years.
 


Also a tie for #3.

3. SSC Ultimate Aero257 mph (413 km/h), 0-60 in 2.7 secs. Twin-Turbo V8 Engine with 1183 hp, base price is $654,400. Tested in March 2007 by Guinness World Records, The SSC Ultimate Aero was the fastest car in the world from March 2007 to July 2010. On March 2011, the Koenigsegg Agera R also surpassed it, forcing this American made car to the #3 spot. Shelby SuperCars will continue their quest to reclaim the fastest car title, and their new SSC Tuatura might do the job (we'll just have to wait).
SSC Ultimate Aero Red doors open


3. 9ff GT9-R: 257 mph (413 km/h), 0-60 in 2.9 secs. 4.0 Litre V6 Twin-Turbo Engine with 1120 hp, base price is $695,000. Based on the Porsche 911, the 9ff GT9-R 1120 hp version is limited to 20 units and the exterior may be modified to suit the owner.



4. Saleen S7 Twin-Turbo: 248 mph (399 km/h), 0-60 in 2.8 secs. Twin Turbo All Aluminum V8 Engine with 750 hp, base price is $555,000. Smooth and bad-ass. It will make you want to show it off non-stop.
Saleen S7 Twin Turbo dark orange front view


5. Koenigsegg CCX: 245 mph (394 km/h), 0-60 in 3.2 secs. 90 Degree V8 Engine 806 hp, base price is $545,568. Made in Sweden, it is the older brother of the Agera R, only losing to 4 other supercars in the world.
Orange Koenigsegg CCX


6. McLaren F1240 mph (386 km/h), 0-60 in 3.2 secs. BMW S70/2 60 Degree V12 Engine with 627 hp, base price is $970,000. The fastest car in the 20th century with doors that looks like bat wings. Maybe Batman needs to order one and paint it black
1997 McLaren F1 on the road black


7. Zenvo ST1233 mph (374 km/h), 0-60 in 2.9 secs. Twin-Charged 7.0 liter V8 Engine forging 1,104 hp. Base price: $1,225,000. The first Supercar from Zenvo Automotive, a Danish sports car company in pursuit of speed and perfection. This 100% Danish made supercar is limited to 15 units and the company even promised "flying doctors" to keep your baby functioning.
Danish supercar


There is a tie for 8th place at 225 mph.

8. Gumpert Apollo225 mph (362 km/h), 0-60 in 3.0 secs, 4.2 liter V8 Engine that houses 650 hp. Base price: $450,000. Gumpert claims that the Apollo was designed such that it could drive upside-down in a tunnel with speeds at 190 mph or above. Of course, no one has tested this yet. 

8. Noble M600225 mph (362 km/h), 0-60 in 3.7 secs. Twin-turbocharged 4.4-liter V8 Engine with 650 hp. Base price is $330,000. The Noble M600 also happens to be a very cool car. Its inconspicuous design sports a slender and contoured body which does not scream out for attention at every second of the day. 


There is a 3-way tie for #9!

9. Aston Martin One-77220 mph (354 km/h), 0-60 in 3.4 secs. 7.3 litre V12 Engine with 750 hp. Base price: $1,850,000. The production of this is limited to 77, hence the name One-77. This is beauty and power packed into One.


9. Ascari A10: 220 mph (354 km/h), 0-60 in 2.8 secs. 5.0 litre BMW V8 S62 Engine with 625 hp. Base price: $650,000. The company planned to produce 50 of these supercars at its factory in Banbury, England.

9. Lamborghini Aventador: 220 mph (354 km/h), 0-60 in 2.9 secs. V12 Engine with 700 hp, base price is $379,700. According to Lamborghini, Aventador is the name of a Bull that entered into battle at the Saragossa Arena on October 1993. This is the fastest bull in the world!



We have another 3-way a tie for 10th place:

10. Pagani Zonda Cinque Roadster: 217 mph (349 km/h), 0-60 in 3.4 secs. Twin turbocharged AMG V12 engine that produces 678 hp. Base price is $1,850,000. The Pagani Zonda Cinque Roadster is a limited-edition, with five ever produced. It is the quintessential exotic and exclusive supercar.

10. Ferrari Enzo217 mph (349 km/h), 0-60 in 3.4 secs. F140 Aluminum V12 Engine with 660 hp, base price is $670,000. Only 399 were ever produced; the price goes up every time someone crashes.Ferrari Enzo doors open front view

10. Jaguar XJ220217 mph (349 km/h), 0-60 in 3.8 secs. Twin Turbo V6 Engine with 542 hp, base price was $650,000. Made in 1992, this car still has what it takes to make the list.
Jaguar XJ220



Most Intelligent People in the World

10. James Woods – 180 IQ

James Woods is a movie, television and stage actor. 

9. Marilyn vos Savant – 190 IQ

She is a popular columnist for Parade Magazine.


8. Kenneth Ferrell – 190 IQ

Kenneth Ferrell is a North Carolina-based doctor who is a member of a number of elite IQ organizations, like the GenerIQ Society, Epimethius Society and the Order of Imhotep.


7. Garry Kasparov – 190 IQ

He is a chess grandmaster from Russia who became the youngest undisputed world champion when he was 22 years old. 

6. Mislav Predavec – 192 IQ

Mislav Predavec is the founder and president of the GenerIQ Society, an elite organization of some of the most intelligent people in the world.


5. Rick Rosner – 192 IQ

What sets him apart is his 192 IQ. He has put it to good use by joining the television game show called “Who Wants to be a Millionaire?”


4. Dr. Evangelos Katsioulis – 198 IQ

Dr. Evangelos Katsioulis is a Greek national who works as a psychiatrist.


3. Kim Ung Yong – 210 IQ

This South Korean has a tremendous capacity for both numbers and languages. He started speaking when he was only six months old.


2. Christopher Hirata – 225 IQ

At the age of 13, Christopher Hirata made waves by getting a gold medal at the international physics Olympiad.



1. Terrence Tao – 230 IQ


He is a mathematician of Australian and American roots.