Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Website to study Struts framework

  1. #1
    Junior Member
    Join Date
    Jul 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Website to study Struts framework

    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.


  2. #2
    Junior Member
    Join Date
    Aug 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: struts & database for eclipse

    please add these code in struts-config.xml, which database you are going to config:
    ================================================== ======
    <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>
    ================================================== ======
    <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>

  3. #3
    Junior Member
    Join Date
    Aug 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

Similar Threads

  1. Replies: 24
    Last Post: August 4th, 2014, 12:49 PM
  2. Database synchronization from RMS with MySQL in Online mode
    By jeremyraj in forum Java ME (Mobile Edition)
    Replies: 1
    Last Post: January 24th, 2011, 08:08 AM
  3. Struts 1.3.8 and tiles
    By jsnx7 in forum Web Frameworks
    Replies: 3
    Last Post: July 21st, 2009, 03:29 AM
  4. Database connection using NetBeans
    By jcc285 in forum Java IDEs
    Replies: 6
    Last Post: June 9th, 2009, 03:23 AM
  5. Desktop Database Application
    By TCoomer in forum JDBC & Databases
    Replies: 2
    Last Post: June 4th, 2009, 03:51 PM