Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using JavaBean with Java classes, JSP and MS Access

 
Charles Ante
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64613
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic