aspose file tools
The moose likes JDBC and the fly likes Difficulty in following the MVC Architecture Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply locked New topic
Author

Difficulty in following the MVC Architecture

chirag rana
Greenhorn

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
Marshal

Joined: Jan 10, 2002
Posts: 56214
    
  13

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.

thanks,
bear


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Difficulty in following the MVC Architecture
 
Similar Threads
Difficulty in following MVC Architecture
JSP with Beans
Problem with database connections between Java and Oracle
Difficulty in working with MVC Architecture
Behaviour on failure of validate in form bean