s2sgateway

Practical Learning of Programming languages such us j2ee,java,jsp

Enter your email address to subscribe tutorials and projects:

  Powered by FeedBurner

Change in Withdrawal of Funds from PayPal Accounts for India Users

Today Paypal Anounced in a statement that there may be “Change in Withdrawal of Funds from PayPal Accounts for India Users”.
The message from Paypal is follows

In accordance with regulatory instructions, we would like to notify you about a change in our withdrawal functionality in India starting on August 1, 2010. At present you can request for either an electronic or cheque withdrawal of funds from your PayPal account if you are an India user.

From July 29, 2010 onwards, you will only be able to request for a cheque withdrawal of funds from your PayPal account.

While we are working hard to restore the electronic withdrawal service, in the meantime, we are bringing this matter to your attention so that you can plan your future withdrawal activities accordingly.
To request for a cheque withdrawal:

1. Log into your PayPal account, click on ‘Withdraw’.
2. Click on the ‘Request a cheque from PayPal’ link.
3. Enter the withdrawal amount and select your mailing address, then click ‘Continue’.
4. Click ‘Submit’ to confirm your request.

In order to help you with this change and until further notice, we will refund the $5 USD cheque withdrawal fee to you for cheque withdrawals made on July 29, 2010 onwards.

So Request the cheque from july 29 onwards without paying commission any way they didn’t stop cheque transfer.

Convert jar to exe file

Today we are going to learn about the importance of conversion of jar to exe files.
Eventhough we are generating class files and make it to jar, It executes when double click on it but window user like to have in exe form so i list here certain exe converters for java try yourself and comment the best one.

If you know any other converter add as comment happy coding.

how to stop spam emails immediately

There are many ways to do this create a filter that will allows you to view mail from certain email addresses or use certain spam filters the one that i found online was
http://www.boxbe.com/

Boxbe is a free service that can safeguard your inbox, reduces unwanted mails, and eliminates email overload.

try this and tell your comments

Install Linux in a XP or a Windows 2000 or any windows OS systems dual boot

We are going to learn how to Install Linux in a XP or a Windows 2000 or any windows OS systems

Easy Steps:

Requirements:
1.Partition Magic software.or any other Partition software i go through Partition Magic steps.
2.Back up your hard drive atleast important files.

Steps

1.For example your system has 80GB harddisk You partitioned like below
C: primary 25 GB(XP is installed)
D:logical 30GB
E: logical 25GB
F:Cd drive
2.Install Partition Magic Next steps are do in partition magic software.

3.See what are the partitions available

4.If only one partition C: is shown then you have to format the other colons like
D: E: or any drive and delete those colons.

5.Now you have free spaces in your hardisk with C: have xp

6.Click Create new partiton in partition magic

7.Provide the name and size leave the file system as NTFS
for example D: 30,000MB(30 GB)

8.Create another Partition and specifies the file system as “ex3″
Name as Linux,Size as you like ex:23000 MB click ok

9.Create another partition change the file system as “swap”
specified balance space from your harddisk 2000MB and click ok

10.Click APPLY in the left bottom of partition magic software

Now You have

C: 25 GB with XP already installed
D: 30 GB Free Space
Linux ex3 23GB
swap space 2 GB

LINUX INSTALLATION

Go Ahead take the Linux installation CD or DVD.
1.open Partition Magic
2.Click Install another Operating System click Next
3.Check the linux option click next
4.Select the ex3 partition you have created and click finish.

Now system will restart and finish the linux installation Process.

How to do Dual boot xp and windows7

Today apart from Programming i can give you tips to do

Dual boot xp and windows7

To install windows 7 in a xp system and to make dual boot follow the steps below:
1.Backup all your data’s for safety purpose
2.There are two ways to do this one is clean installation and another one is modifying existing installation.
Modifying Existing Installation:
Download any partition manager we recommend free easeus partition manager
After installing Easeus partition manager open it you will see one partition that your xp and all files are there(if you are not backup your data do that first)
Click on the partition and click resize/moveon side menu and type some GB space for new allocation.click confirm to proceed.
After unallocated space created restart your system and put windows7 cd and boot
Install windows7 in to unallocated space after installing restart your system
You can able to view both operating system menus select one to load enjoy.

Clean Installation:
*Format your hard drive completely
*create two partitions.
*first install xp in the first partition and leave the other unallocated space untouched.
*second boot with windows 7 disk and install it in unallocated space.
*Now restart the computer you have two os list click anyone and it loads.
Any doubt ask us.

Getting number of rows in jsp page

There is time needed where we want to know how many rows are there in table.
For that we want to check the database by providing select * from table command instead we can get no of rows in jsp page itself.
Create a table named users with one column name for ex

create table users(name varchar(100));
insert into users values(’http://s2sgateway.com’);
insert into users values(’http://sitepromoter.co.cc’);

Then save the following code in a file named count.jsp and create a web.xml file with in web-inf folder.


<%@ page import="java.sql.*" %>
    <%
	int count=0;
    try{
      Class.forName("com.mysql.jdbc.Driver");
      Connection con= DriverManager.getConnection("jdbc:mysql://localhost/s2sgateway", "username", "password");
      PreparedStatement p = con.prepareStatement("");
      ResultSet rs = p.executeQuery("select count(*) from users");
      while (rs.next()){
        count = rs.getInt(1);
      }
      out.println("The Total Count is " + count);
    }
    catch(Exception e){
      out.println("The exception is " + e);
	  %>
	  

Now run the program you will get count as 2 any doubt ask us happy coding

10 Reasons of failures in interviews

Today Many young generation students are searching for jobs without any success.

The reasons for failures in interviews are as follows

  • Wrong Preparation of Resume
  • Not knowing latest information about technology
  • They don’t even know what is mentioned in their resume itself
  • Without Preparation attending interview
  • Knows only one language (ie java or .net)and don’t even know that as well fully
  • Without knowing the Basic definition of the language they have studied
  • Applying for all jobs without noticing the Requirement
  • Lose confidence even before start of interview
  • Getting feared after seeing a huge crowd before us in the walkin interviews
  • Last but not least Going to interview campus very late that adds tension so focus changes

So Understand These reasons and try to avoid it so that you can achieve the success in interviews.
We will see how to get success in interviews in next section.

weekend walkins in chennai for java,j2ee

There is a requirement for sun certified java professionals who has SCJP certificate can directly walkin
Company:www.inatech.com
Job Requirement:

* BE / B.Tech with 65% minimum
* SCJP certified with good skills in J2EE will be advantage
* Excellent communication both written & spoken

Job Location: Chennai & Bangalore
Walk-in Date: 11th July 2010
Entry Time: On or before 10:30 AM

Venue:
California Software Co. Ltd, Chennai
Robert V Chandran Tower, No.149,Velachery Main Road(Next to Doshi Apartments),
Pallikaranai, Chennai, Tamilnadu - 600100.

This is direct walkin so qualified candidates directly attend all the best.

java,j2ee walkin at chennai rom 7 july 2010 to 11 july 2010

As i mentioned in previous posts i have now give you information about a

walkin in chennai

from 7 july 2010 to 11 july 2010

Company name:Bahwan CyberTek
(BCT)
Experience:1-9 years

DESIRED CANDIDATE PROFILE:
Desired candidates must have expertise in modeling and designing Java/J2ee based solutions including SOA based solutions,
Web services and must have expertise working with analyzing, fine tuning the performance of the application.
Candidates should be expertise with Struts & Hibernate, JSP, Servlet, Java, DAO, SQL, JMS, WEB Services, EJB, JNDI, SOA and log4j.
Expertise with WEBLOGIC, WEBSPHERE.

JOB DESCRIPTION:
Work knowledge in JAVA Security, SAX, DOM, JDOM, SWING and with SOA Life cycle management.
Design and Hands on development of production code, code reviews. Work Exposure in Unit Testing, Fixing defects,
should be able to work independently and part of the team.
Salary: Best in the industry.
Education: BE / B.Tech / ME / M.Tech / MCA / M.Sc.
If the above job description matches your profile, walk in for a Direct Interview
with a copy of your updated resume along with 2 passport size photographs.
Others kindly ignore this mail.
Walk-in Dates: 07/07/2010 (Wednesday) to 11/07/2010(Sunday)

Walk-in Time : 10:00am – 6:00pm
Venue Details for Interview:
Bahwan CyberTek Pvt Ltd.,
8th Floor, Bahwan CyberTek IT Park
#148, Rajiv Gandhi Salai (OMR),
Okkiyam Thoraipakkam,
Chennai - 600097.
Tel: +91-44-43449000.
www.bahwancybertek.com

Job Posters can post their job using the contact link at top.Happy Weekend.

How to authenticate in a webapplication using jsp and servlet

Authentication in webapplication using jsp and servlet is easy to do.
The Page that contains the forms are placed in jsp page and the action event is redirected to a servlet where authentication happens if authentication is success it redirect to authenticated page or else redirect to login page with message incorrect username/password.
Create a basic table in mysql or any database with two fields username and password and load the values for that.
Create a file login.jsp with code below and save in loginsystem folder in webapps of tomcat.
login.jsp


<html>
<head>
<script>
function checkNull(field)
{
	if(login.user.value == "")
	{
		alert("Enter the Login Name");
		login.user.focus();
		return false;
	}
	else if(login.pass.value == "" )
	{
		alert("Enter the Password");
		login.pass.focus();
		return false;
	}
	else
	{
		return true;
	}
}

function focus()
{
	login.user.focus();
}
</script>
</head>
<body>

<form action ="login" method="post" name="login">

<p> </p>

<font color="#FF3300" size="6"> <a href="http://s2sgateway.com">Tutorial by S2SGATEWAY.COM</a>!!!!!!!!!</font></p>

<a title="Press To Go Back" href="login.jsp" style="text-decoration: none">
<font color="#FFFFFF" face="Bauhaus 93" size="4"><-- BACK</font></a></p>
<div align="center">
  <center>
<div align="center">
  <center>
<table border="1" cellpadding="5" cellspacing="0" style="border-collapse: collapse" bordercolor="#0099cc" width="51%" id="AutoNumber1" bgcolor="#0099CC" height="134">
  <tr>
    <td width="100%" colspan="3" height="19">
      <p align="center">
      <b><font face="Verdana" color="#00FF00">ADMIN LOGIN 
      </font></b></p>

    </td>
  </tr>
  <tr>
    <td width="30%" height="23"><font face="Verdana" size="2" color="#800080">
    USER NAME</font></td>
    <td width="72%" colspan="2" height="23"><font color="#800080"><input type="text" name="user" size="20" onload = 'T1.focus();'></font></td>
  </tr>
  <script>
	focus();
  </script>

  <tr>
    <td width="30%" height="23"><font face="Verdana" size="2" color="#800080">
    PASSWORD</font></td>
    <td width="72%" colspan="2" height="23"><font color="#800080"><input type="password" name="pass" size="20">   
    </font> </td>
  </tr>

  <tr>
    <td width="30%" height="23"> </td>
    <td width="72%" colspan="2" height="23"> </td>
  </tr>
  <tr>
    <td width="30%" height="26"> </td>
    <td width="18%" height="26">
    <p align="left"><font color="#800080"><input type="submit" value="Login" name="B1" onclick = 'return checkNull();'></font></td>
    <td width="54%" height="26"><font color="#800080"><input type="reset" value="Reset" name="B2"></font></td>
  </tr>
</table>

  </center>
</div>
<p align="left"><font color="#008080">          </font></p>

<p align="left"><font color="#008080">                                                                        
</font></p>

<p align="left"><font color="#008080">                  
</font></p>

  </center>
</div>
</form>
</body>
</html>

Now create a java file named login.java with code below and compile it and place the class in web-inf/classes folder.
login.java



import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.*;
import javax.servlet.http.*;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class login extends HttpServlet {

	public login() {
		super();
	}

	public void destroy() {
		super.destroy(); 

	}

	public void doPost(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {

		String a=request.getParameter("user");
String b=request.getParameter("pass");
HttpSession s=request.getSession();
login l =(login)s.getAttribute("a");

System.out.println(a);
	try
		{
			Class.forName("com.mysql.jdbc.Driver");

			Connection con=DriverManager.getConnection("jdbc:mysql://localhost/dbname","username","password");

			Statement st=null;
			String c="select * from login where username='"+a+"' AND pass='"+b+"'";
			st=con.createStatement();
			ResultSet rs=st.executeQuery(c);

			if(rs.next())
			{
				response.sendRedirect("success.jsp");

			}
			else
			response.sendRedirect("login.jsp");

		}
	catch(Exception e){}
	}

	public void init() throws ServletException {

	}

}

Now add the servlet setting in web.xml like below

web.xml


<wep-app>
  <servlet>
    <description>This is the description of my J2EE component</description>
    <display-name>This is the display name of my J2EE component</display-name>
    <servlet-name>login</servlet-name>
    <servlet-class>login</servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>login</servlet-name>
    <url-pattern>/login/*</url-pattern>
  </servlet-mapping>
  <welcome-file-list>
    <welcome-file>home.html</welcome-file>
  </welcome-file-list>
</web-app>

Thats it now you can run by visiting your tomcat http://localhost:8080/loginsystem/login.jsp
Any doubt ask us happy coding