File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Difficulty in following the MVC Architecture Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Reply locked New topic

Difficulty in following the MVC Architecture

chirag rana

Joined: Aug 05, 2004
Posts: 5
Respected Sir,
I m working on my curriculum project which is based on MVC architecture.From the front-end(jsp file) i m sending the request to servlet which acts as a request dispatcher(which dispatches the request to bean in which I have written the database connectivity code with Oracle8i).The problem is that the parameters which i m passing from servlet are not passing in beans so I m not able to get the connection.So If u can please send in the snippet of passing the values to beans I will b very thankful to u.

The second problem is that if I m giving static oracle driver,url,userid and password and then execute the application from jsp->servlet->bean->oracle with the help of Tomcat4.0 then it gives me the exception of ClassNotFoundException.When we run any simple java program which accesses the database from the command prompt we set the path and classpath of Oracle.But when jsp,servlet,beans are used we have to execute it through Tomcat server and how should I set the path of Oracle in the server.Please give the solution of both these problems so that I can proceed in my project.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63870

Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place. Please continue any discussion of this topic here.


[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Difficulty in following the MVC Architecture
It's not a secret anymore!