Go Back   Java Programming Forums > Java Standard Edition Programming Help > Java IDEs


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-07-2008, 11:26 PM
Junior Member
 

Join Date: Jul 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
kirman is on a distinguished road
Send a message via Yahoo to kirman
Default struts & database for eclipse

Hi, all. I wanna study struts framework to connect my web project to database (MySQL or Oracle). Where's the site that I can use it to study my want?

Now I use strutsIDE to build struts on my web project. Can anyone help me, please !

Thanks in advance.



Reply With Quote Share this thread on Facebook
Sponsored Links
Java Training from DevelopIntelligence
  #2 (permalink)  
Old 08-08-2008, 07:08 PM
Junior Member
 

Join Date: Aug 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
srinu3java is on a distinguished road
Default Re: struts & database for eclipse

please add these code in struts-config.xml, which database you are going to config:
================================================== ======
Java Code
<data-sources>
<data-source key="musiccollection" type="org.apache.commons.dbcp.BasicDataSource">
<set-property property="description" value="Music Collection Database"/>
<set-property property="driverClassName" value="oracle.jdbc.driver.OracleDriver"/>
<set-property property="username" value="root"/>
<set-property property="password" value=""/>
<set-property property="url" value="jdbc:oracle:thin:@localhost:1521: musiccollection" />
<set-property property="maxCount" value="3"/>
<set-property property="minCount" value="2"/>
</data-source>
</data-sources>
================================================== ======
Java Code
<data-sources>
<data-source key="musiccollection" type="org.apache.commons.dbcp.BasicDataSource">
<set-property property="description" value="Music Collection Database"/>
<set-property property="driverClassName" value="com.mysql.jdbc.Driver"/>
<set-property property="username" value="root"/>
<set-property property="password" value=""/>
<set-property property="url" value="jdbc:mysql://localhost/musiccollection" />
<set-property property="maxCount" value="3"/>
<set-property property="minCount" value="2"/>
</data-source>
</data-sources>
Reply With Quote
  #3 (permalink)  
Old 17-10-2008, 12:26 PM
Junior Member
 

Join Date: Aug 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
aibtus@gmail.com is on a distinguished road
Default Re: struts & database for eclipse

how does one get the struts to be configured properly to be used. we cannot juss add the above in the struts-config.xml. can someone walk us thru from scatch. lets say for eclipse with Java6 jdk and an opensource database on windows and on Linux...

regards
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Similar Threads
Thread Thread Starter Forum Replies Last Post
Beginners Eclipse Tutorial. How to run your first Eclipse Java Application. JavaPF Java Code Snippets and Tutorials 6 26-08-2010 06:30 PM
Struts 1.3.8 and tiles jsnx7 Web Frameworks 3 21-07-2009 08:29 AM
Linking Database Projects in NetBeans jcc285 Java IDEs 6 09-06-2009 08:23 AM
Desktop Database Application TCoomer JDBC & Databases 2 04-06-2009 08:51 PM
J2ME Application Database Synchronization jeremyraj Mobile Applications 0 13-05-2009 07:11 AM


100 most searched terms
Search Cloud
2d arraylist java actionlistener actionlistener in java actionlistener java addactionlistener addactionlistener in java addactionlistener java applications of oops could not create java virtual machine xp double format java double to int double to int java double to integer in java double to integer java eclipse shortcut keys eclipse tutorial for beginners exception in thread "awt-eventqueue-0" java.lang.outofmemoryerror: java heap space exception in thread "main" java.lang.nullpointerexception exception in thread "main" java.lang.outofmemoryerror: java heap space format double java get mouse position java java 2d arraylist java actionlistener java addactionlistener java convert list to map java double format java double formatting java double to int java double to integer java format double java forum java forums java get mouse position java list to map java mouse position java programming forum java programming forums java programming help java sendkeys java two dimensional arraylist java.lang.classformaterror: truncated class file java.lang.outofmemoryerror: java heap space java.util.arraylist jbutton actionlistener jtextarea font jtextfield font size jxl.read.biff.biffexception: unable to recognize ole stream programming mutators and generics two dimensional arraylist java writing ipod apps

All times are GMT. The time now is 08:24 AM.
Powered by vBulletin® Copyright ©2000-2009, Jelsoft Enterprises Ltd.