• Post Reply Bookmark Topic Watch Topic
  • New Topic

Difficulty in following MVC Architecture  RSS feed

 
chirag rana
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 66148
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"chirag_mihir",

We're pleased to have you here with us on the Ranch, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
Forum Bartender
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37181
515
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chirag,
As Bear pointed out, we also require a last name. What you had before was closer, but it had an underscore.

Thanks,
Jeanne
[ August 05, 2004: Message edited by: Jeanne Boyarsky ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!