Oct 9, 2001 #1 rmarkert IS-IT--Management Joined May 2, 2001 Messages 11 Location BR Hi, I was thinking about.... Is it possible I retrieve a JavaBean information from JSP and send it to a Servlet? Thanks... Renata
Hi, I was thinking about.... Is it possible I retrieve a JavaBean information from JSP and send it to a Servlet? Thanks... Renata
Oct 9, 2001 #2 wushutwist Programmer Joined Aug 3, 2000 Messages 984 Location US Sure, why not? Here is one possible procedure. In JSP: Code: - Create your JavaBean - Do whatever - Add JavaBean as an attribute of the HttpServletRequest object - Forward control to the Servlet In Servlet: Code: - Get JavaBean from the HttpServletRequest object - Do whatever BTW, most of the time you should be doing this in the other order... from Servlet to JSP. Upvote 0 Downvote
Sure, why not? Here is one possible procedure. In JSP: Code: - Create your JavaBean - Do whatever - Add JavaBean as an attribute of the HttpServletRequest object - Forward control to the Servlet In Servlet: Code: - Get JavaBean from the HttpServletRequest object - Do whatever BTW, most of the time you should be doing this in the other order... from Servlet to JSP.
Oct 9, 2001 Thread starter #3 rmarkert IS-IT--Management Joined May 2, 2001 Messages 11 Location BR It works! Thank you very much! Renata Upvote 0 Downvote