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
  #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
Sponsored Links
  #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
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
Beginners Eclipse Tutorial. How to run your first Eclipse Java Application. JavaPF Java Code Snippets and Tutorials 3 12-03-2009 10:07 AM


100 most searched terms
Search Cloud
2 dimensional arraylist java 2d arraylist java 2d arraylist java example actionlistener actionlistener in java actionlistener java addactionlistener addactionlistener java avatar hardware id coincounter java convert double to integer in java convert double to integer java double format java double to int java double to integer java eclipse shortcut keys eclipse tutorial for beginners exception in thread "main" java.lang.nullpointerexception format double in java format double java get mouse position java hardware id avatar how to get back to the main menu java how to get position values of mouse using java ipod touch java java 2 dimensional arraylist java actionlistener java addactionlistener java convert double to int java convert double to integer java double format java double to int java double to integer java format double java format double to 2 decimal places java forum java forums java get mouse position java list to map java programming forum java programming forums java two dimensional arraylist java.util.arraylist javabat answers javabat makelast jbutton actionlistener jbutton java programming forums two dimensional arraylist java writing apps for ipod touch

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