bean instantiation and persistence question

From: Amy Johnson (amy_johnson_at_dnr.state.ak.us)
Date: 11/30/04


Date: Tue, 30 Nov 2004 08:55:50 -0900

I have a JSP that is a form. The form data is supposed to be stored in a
bean that I have set up as a session bean, then transfer to a servlet
for processing. The servlet then forwards to another JSP with another
form, and that goes to one of several JSPs. My problem is that, with the
bean set up as a session bean, I can't seem to get the initial JSP to
instantiate the bean. It doesn't happen until the servlet is called. Is
there something I'm doing wrong, or is there a way around this?

Thanks

Amy



Relevant Pages

  • Re: form bean and session attribute
    ... only HTML, nothing but HTML. ... the JSP *is* a servlet. ... That tag becomes Java code that moves data from the form data in the HTML to the Java bean, ...
    (comp.lang.java.help)
  • Re: JNDI Datasource oder Connection in Session?
    ... Bean und mache diese in der JSP-Seite verfügbar, um per Getter die Daten auszugeben? ... Servlet -> Bean -> JSP ... damit kann ein Servlet eine JSP ansprechen. ...
    (de.comp.lang.java)
  • TOMCAT HELP... org.apache.jasper.JasperException:
    ... I already have one servlet - bean - jsp page working and I have ... public class joinGroup extends HttpServlet{ ...
    (comp.lang.java)
  • Re: put application on server ??!!!!
    ... > I am new to web service programming and I just start to learn jsp. ... > make my application into a bean? ... separate those two pieces into separate code bases with published APIs ... Have forms submit to servlets. ...
    (comp.lang.java.programmer)
  • Re: form bean and session attribute
    ... controller (servlet), other than what I currently have, though, rather then the inverse which you seem to propose. ... You cannot put parameters directly into a "form bean" until they reach the server. ... There is no "form bean" on the client side, so what you are describing is not possible. ... The difference is that the crappy example uses a JSP to do that logic, which is not a best practice. ...
    (comp.lang.java.help)