This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hello there, I am designing a website that is supposed to take in parameter values from a JSP (Presentation layer), send it to a JavaBean which will in turn send these parameter values to my Java class (Business logic) for confirmation in a MS Access database. Everything works fine between my database and my business logic. My problem is I need to know how to send the information passed in the JSP page via a JavaBean to the Java class for database operations. [ March 30, 2004: Message edited by: Bear Bibeault ]
By this, I assume you mean the results of a form submission? You cannot capture these directly into a JavaBean. When the form is submitted, something needs to gather the request parameters (by the way, whether these came frpm a JSP page or not is moot) and package them into the bean and then call the business logic with the bean. Your best bet is for the form to submit to a servlet that will perform all this processing. When the servlet and business logic are finished with their work, it can then forward to a JSP to display whatever results are appropriate. P.S. I removed your "urgent" request (nothing will get your post ignored faster than declaring it URGENT), and the solicitation to answer by email. All replies should be posted in this forum for all to benefit from.