------------webappsjajang
<%@ page contentType="text/html; charset=euc-kr" language="java" import="java.sql.*" errorPage="" %>
<%@ page import = "test.testBeans" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr" />
<title>무제 문서</title>
</head>
<body>
<%
testBeans ob = new testBeans();
ob.setX(33);
out.print(ob.getX() );
%>
</body>
</html>
-------------webappsjajangWEB-INFclasses
package test;
public class testBeans
{
private int x;
public void setX(int vx){
x=vx;
}
public int getX(){
return x;
}
public void print(){
System.out.println("x="+x);
}
public testBeans(){}
public static void main(String[] args)
{
testBeans ob = new testBeans();
ob.setX(33);
ob.print();
}
}



------------webappsjajang
<%@ page contentType="text/html; charset=euc-kr" language="java" import="java.sql.*" errorPage="" %>
<%@ page import = "testBeans" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr" />
<title>무제 문서</title>
</head>
<body>
<%
testBeans ob = new testBeans();
ob.setX(33);
out.print(ob.getX() );
%>
</body>
</html>
-------------webappsjajangWEB-INFclasses
public class testBeans
{
private int x;
public void setX(int vx){
x=vx;
}
public int getX(){
return x;
}
public void print(){
System.out.println("x="+x);
}
public testBeans(){}
public static void main(String[] args)
{
testBeans ob = new testBeans();
ob.setX(33);
ob.print();
}
}