aspose file tools*
The moose likes JSP and the fly likes Using JavaBean with Java classes, JSP and MS Access Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Using JavaBean with Java classes, JSP and MS Access" Watch "Using JavaBean with Java classes, JSP and MS Access" New topic
Author

Using JavaBean with Java classes, JSP and MS Access

Charles Ante
Greenhorn

Joined: Mar 30, 2004
Posts: 1
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 ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61606
    
  67

take in parameter values from a JSP

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using JavaBean with Java classes, JSP and MS Access