自己写的玩的东西,通过网络建立一个ejb的框架,并进行weblogic的部署

发表于:2007-07-01来源:作者:点击数: 标签:
主页面 %@page contenttype="text/html;charset=gb2312"% html body script language=" java script" function err(form) { if (form.ejb_name.value=="") { window.alert("请输入ejb名称"); form.ejb_name.focus(); return false; } if (form.ejb_name.value
主页面
<%@page contenttype="text/html;charset=gb2312"%>
<html>
<body>

<script language="javascript">
function err(form)
{
    if (form.ejb_name.value=="")
    {
        window.alert("请输入ejb名称");
        form.ejb_name.focus();
        return false;
    }
    if (form.ejb_name.value.charAt(0)<"A"||form.ejb_name.value.charAt(0)>"Z")
    {
        if(window.confirm("您输入的ejb名称第一个字母不是大写字母,是否修改"))
        {
            form.ejb_name.focus();
            return false;
        }
    }
    if (stringFilter(form.ejb_name.value)==1)
    {
        form.ejb_name.focus();
        form.ejb_name.value="";
        return false;
    }        

    return true;
}
function stringFilter(strFilter)
{
    for (i=0;i<strFilter.length;i++)
    {
        if((strFilter.charAt(i)>="A" && strFilter.charAt(i)<="Z")||(strFilter.charAt(i)>="a"&&strFilter.charAt(i)<="z")||(strFilter.charAt(i)>="0"&&strFilter.charAt(i)<="9")||(strFilter.charAt(i)=="_"))
        {}
        else
        {
            window.alert ("您的输入中有非法字符");
            return 1;
        }
    }
    return 0;
}

</script>
<center>
<form action="createejb.jsp" method="post" name="form1" onsubmit="return err(form1)">
<table border="1" width="500">
    <tr>
        <td align="right" width="300">
            请选择服务器的类型:
        </td>
        <td align="left" width="200">
            <SELECT NAME="server_type">
                <option value="weblogic">weblogic</option>
            </SELECT>
        </td>
    </tr>

    <tr>
        <td align="right" width="300">
            请选择您要创建的ejb类型:
        </td>
        <td align="left" width="200">
            <SELECT NAME="ejb_type">
                <option value="Stateless">Stateless bean</option>
                <option value="Stateful">Stateful bean</option>
                <option value="entity">Entity bean</option>
            </SELECT>
        </td>
    </tr>
    <tr>
        <td align="right" width="300">
            请输入您要创建的ejb名称:
            <br><font color="red">(以后所有创建的ejb均以此名称作为开头,例如xxxHome,xxxRemote,xxxEJB)</font>
        </td>
        <td align="left" width="200">
            <INPUT TYPE="text" NAME="ejb_name">
        </td>
    </tr>
    <tr>
        <td colspan="2" align="center"><INPUT TYPE="submit" value="提交">   <INPUT TYPE="reset" value="重填"></td>
    </tr>
</table>
</form>
</center>

</body>
</html>

原文转自:http://www.ltesting.net