最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
创建部署的xml文件和bat文件
时间:2022-07-02 17:28:23 编辑:袖梨 来源:一聚教程网
createxml.jsp
<%@page contenttype="text/html;charset=gb2312"%>
<%@page import="java.io.*"%>
<%
try
{
String ejb_type=request.getParameter("ejb_type");
String ejb_name=request.getParameter("ejb_name");
String server_type=request.getParameter("server_type");
String prim_key_class=request.getParameter("prim_key_class");
String transaction_type=request.getParameter("transaction_type");
String trans_attribute=request.getParameter("trans_attribute");
String package_name=request.getParameter("package_name");
File myFile=new File(ejb_name+"//ejb-jar.xml");
myFile.createNewFile();
PrintWriter pw_jar_xml=new PrintWriter(new FileWriter(myFile));
pw_jar_xml.println("");
pw_jar_xml.println("Beans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>");
pw_jar_xml.println("");
pw_jar_xml.println("");
if(!ejb_type.equals("entity"))
{
pw_jar_xml.println("");
pw_jar_xml.println(""+ejb_name+" ");
<%@page contenttype="text/html;charset=gb2312"%>
<%@page import="java.io.*"%>
<%
try
{
String ejb_type=request.getParameter("ejb_type");
String ejb_name=request.getParameter("ejb_name");
String server_type=request.getParameter("server_type");
String prim_key_class=request.getParameter("prim_key_class");
String transaction_type=request.getParameter("transaction_type");
String trans_attribute=request.getParameter("trans_attribute");
String package_name=request.getParameter("package_name");
File myFile=new File(ejb_name+"//ejb-jar.xml");
myFile.createNewFile();
PrintWriter pw_jar_xml=new PrintWriter(new FileWriter(myFile));
pw_jar_xml.println("");
pw_jar_xml.println("Beans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>");
pw_jar_xml.println("
pw_jar_xml.println("
if(!ejb_type.equals("entity"))
{
pw_jar_xml.println("
pw_jar_xml.println("