You have a few options:
1. Use JNDI lookups inside the JSP to get a reference to the session bean to insert the record.
2. Use a Servlet handler/controller to inject the session bean via @EJB.
3. Use a
JSF backing bean to inject the session bean via @EJB.
I would recommend option 3 if this is a real-life application, quite possibly with Seam. Option 1 would be acceptable for beginner code to learn the internals of the technology but really should be avoided in real life. If you are very averse to using JSF, I would suggest option 2. Another alternative is to use something like
Struts 2. You may inject EJBs into Struts Actions with minimal effort. No technology will allow you to inject EJBs into JSPs. As of
Java EE 6, JSP is mostly regarded as a legacy technology in favor of JSF/Facelets.
Look to the documentation of your application server on how to perform a JNDI look-up of a session bean if you opt to use JSP only.
Hope it helps,
Reza