Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Other Programming (https://www.askmehelpdesk.com/forumdisplay.php?f=437)
-   -   Dynamic values in context.xml in tomcat? (https://www.askmehelpdesk.com/showthread.php?t=774005)

  • Nov 5, 2013, 10:33 AM
    rajesh561
    Dynamic values in context.xml in tomcat?
    Please Help me...
    <Resource name="jdbc/xxxx" auth="Container" type="javax.sql.DataSource"
    maxActive="40" maxIdle="15" maxWait="-1" username="xxxxx" password="xxxxx" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://xxxxx/xxxx" removeAbandoned="true" removeAbandonedTimeout="60" logAbandoned="true"
    />

    how can I get a dynamic values in username,password and url using struts.

    Ex:whenever user logins this values must be changed dynamically based on user id.

    username:xxxxxx
    password:xxxxxx

    when user is authenticated then the values get from the database,and those values must replaced in above mentioned.(like username,password and url.)


    Thank you advance.

  • All times are GMT -7. The time now is 12:25 AM.