servlet与session bean绑定问题
在我的servlet中dopost的代码如下: 出现的问题是: session bean没有绑定bound.谁能给一个例子!
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
//doGet(request, response);
String name;
response.setContentType(CONTENT_TYPE);
PrintWriter out = response.getWriter();
out.println("<html><head><title>formsubmit555</title></head><body>");
try {
Context ctx = new InitialContext();
MySessionVector55Home home=(MySessionVector55Home)ctx.lookup("MySessionVector");
MySessionVector55 mySessionVector55=home.create();
out.println("name is: "+mySessionVector55.MyHuode552("11"));
}catch(Exception ee)
{
System.out.println("error is: "+ee.getMessage());
}
out.println("</body></html>");
}