You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by hu...@apache.org on 2005/06/08 22:59:16 UTC
svn commit: r189637 - in /struts/sandbox/trunk/overdrive/PhoneBook: Core/
Core/Commands/ Test/ Test/Forms/ Test/bin/Debug/ Web/ Web/Forms/
Web/Resources/Query/
Author: husted
Date: Wed Jun 8 13:59:14 2005
New Revision: 189637
URL: http://svn.apache.org/viewcvs?rev=189637&view=rev
Log:
OVR-5
* Add simple list of all entries.
Added:
struts/sandbox/trunk/overdrive/PhoneBook/Core/AppContext.cs
struts/sandbox/trunk/overdrive/PhoneBook/Core/AppContextList.cs
struts/sandbox/trunk/overdrive/PhoneBook/Test/Forms/
struts/sandbox/trunk/overdrive/PhoneBook/Test/Forms/DirectoryTest.cs
struts/sandbox/trunk/overdrive/PhoneBook/Test/bin/Debug/sqlmap.config.xml
struts/sandbox/trunk/overdrive/PhoneBook/Web/Resources/Query/SelectAll.xml
struts/sandbox/trunk/overdrive/PhoneBook/Web/sqlmap.config.xml
Removed:
struts/sandbox/trunk/overdrive/PhoneBook/Web/Resources/Query/properties.xml
Modified:
struts/sandbox/trunk/overdrive/PhoneBook/Core/Commands/BaseList.cs
struts/sandbox/trunk/overdrive/PhoneBook/Core/Core.csproj
struts/sandbox/trunk/overdrive/PhoneBook/Test/Test.csproj
struts/sandbox/trunk/overdrive/PhoneBook/Test/bin/Debug/sqlmap.config
struts/sandbox/trunk/overdrive/PhoneBook/Web/Forms/Directory.aspx
struts/sandbox/trunk/overdrive/PhoneBook/Web/Forms/Directory.aspx.cs
struts/sandbox/trunk/overdrive/PhoneBook/Web/Resources/Query/default.xml
struts/sandbox/trunk/overdrive/PhoneBook/Web/Web.csproj
struts/sandbox/trunk/overdrive/PhoneBook/Web/sqlmap.config
Added: struts/sandbox/trunk/overdrive/PhoneBook/Core/AppContext.cs
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/PhoneBook/Core/AppContext.cs?rev=189637&view=auto
==============================================================================
--- struts/sandbox/trunk/overdrive/PhoneBook/Core/AppContext.cs (added)
+++ struts/sandbox/trunk/overdrive/PhoneBook/Core/AppContext.cs Wed Jun 8 13:59:14 2005
@@ -0,0 +1,127 @@
+using System;
+using System.Collections;
+using Nexus.Core;
+
+namespace PhoneBook.Core
+{
+ /// <summary>
+ /// Summary description for AppContext.
+ /// </summary>
+ public class AppContext: Hashtable
+ {
+
+ #region Constructors
+
+ /// <summary>
+ /// Instantiate with zero parameters.
+ /// </summary>
+ public AppContext ()
+ {
+ }
+
+ /// <summary>
+ /// Instantiate from a IDictionary.
+ /// </summary>
+ /// <param name="dictionary">Values for new object</param>
+ public AppContext (IDictionary dictionary)
+ {
+ IEnumerator keys = dictionary.Keys.GetEnumerator ();
+ while (keys.MoveNext ())
+ {
+ string key = keys.Current as string;
+ this.Add (key, dictionary [key].ToString ());
+ }
+ }
+
+ /*
+ /// <summary>
+ /// Instantiate from an IDictionary,
+ /// formatting each entry using the FieldTable from a INexusContext,
+ /// and reporting any conversion or formatting errors in the INexusContext.
+ /// </summary>
+ /// <remarks><p>
+ /// The result of a query will come back as a list of IDictionaries,
+ /// using native, unformatted data types.
+ /// This constructor can be used to loop through a list of IDictionaires,
+ /// create a AppContext for each entry, and formatting any values
+ /// along the way. (Dates being the best example.)
+ /// The result is a AppContextList that can be used as a DataGrid
+ /// DataSource (or whatever).
+ /// </p></remarks>
+ /// <param name="dictionary">Values for new object</param>
+ /// <param name="context">Context with FieldTable and error handler</param>
+ public AppContext (IDictionary dictionary, IRequestContext context)
+ {
+ #region Assert parameters
+
+ if (null == dictionary) throw new ArgumentNullException ("dictionary", "AppContext(IDictionary,INexusContext");
+ if (null == context) throw new ArgumentNullException ("context", "AppContext(IDictionary,INexusContext");
+ IFieldTable table = context.FieldTable;
+ if (null == table) throw new ArgumentNullException ("FieldTable", "AppContext(IDictionary,INexusContext");
+
+ #endregion
+
+ IEnumerator keys = dictionary.Keys.GetEnumerator ();
+ while (keys.MoveNext ())
+ {
+ string key = keys.Current as string;
+ IValidatorContext input = new ValidatorContext (); // ISSUE: Spring? [WNE-63]
+ input.FieldKey = key;
+ input.Source = dictionary [key];
+ bool okay = table.Format (input);
+ if (!okay)
+ // OR, do we just want to push convert/format(id) up?
+ context.AddAlertForField (key);
+ this.Add (key, input.Target);
+ }
+ }
+ */
+ #endregion
+
+
+ /*
+ public string property
+ {
+ get { return this[App.PROPERTY] as string; }
+ set { this[App.PROPERTY] = value; }
+ }
+ */
+
+ public string first_name
+ {
+ get { return this[App.FIRST_NAME] as string; }
+ set { this[App.FIRST_NAME] = value; }
+ }
+
+ public string last_name
+ {
+ get { return this[App.LAST_NAME] as string; }
+ set { this[App.LAST_NAME] = value; }
+ }
+
+ public string extension
+ {
+ get { return this[App.EXTENSION] as string; }
+ set { this[App.EXTENSION] = value; }
+ }
+
+ public string user_name
+ {
+ get { return this[App.USER_NAME] as string; }
+ set { this[App.USER_NAME] = value; }
+ }
+
+ public string hired
+ {
+ get { return this[App.HIRED] as string; }
+ set { this[App.HIRED] = value; }
+ }
+
+ public string hours
+ {
+ get { return this[App.HOURS] as string; }
+ set { this[App.HOURS] = value; }
+ }
+
+ }
+}
Added: struts/sandbox/trunk/overdrive/PhoneBook/Core/AppContextList.cs
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/PhoneBook/Core/AppContextList.cs?rev=189637&view=auto
==============================================================================
--- struts/sandbox/trunk/overdrive/PhoneBook/Core/AppContextList.cs (added)
+++ struts/sandbox/trunk/overdrive/PhoneBook/Core/AppContextList.cs Wed Jun 8 13:59:14 2005
@@ -0,0 +1,44 @@
+using System.Collections;
+using Nexus.Core;
+
+namespace PhoneBook.Core
+{
+ /// <summary>
+ /// A list of AppFieldSet objects.
+ /// </summary>
+ public class AppContextList : ArrayList
+ {
+ /// <summary>
+ /// Instantiate with zero parameters.
+ /// </summary>
+ public AppContextList ()
+ {
+ }
+
+ /// <summary>
+ /// Create a AppContext object for each IDictionary on a IList.
+ /// </summary>
+ /// <param name="dictionaries">A IList of IDictionaries with data values.</param>
+ public AppContextList (IList dictionaries)
+ {
+ foreach (IDictionary item in dictionaries)
+ {
+ Add (new AppContext (item));
+ }
+ }
+
+ /// <summary>
+ /// Create a AppContext object for each IDictionary on a IList,
+ /// using a FieldTable to format each entry.
+ /// </summary>
+ /// <param name="dictionaries">A IList of IDictionaries with data values.</param>
+ public AppContextList (IList dictionaries, IRequestContext context)
+ {
+ foreach (IDictionary item in dictionaries)
+ {
+ // TODO: Add (new AppContext (item, context));
+ }
+ }
+
+ }
+}
\ No newline at end of file
Modified: struts/sandbox/trunk/overdrive/PhoneBook/Core/Commands/BaseList.cs
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/PhoneBook/Core/Commands/BaseList.cs?rev=189637&r1=189636&r2=189637&view=diff
==============================================================================
--- struts/sandbox/trunk/overdrive/PhoneBook/Core/Commands/BaseList.cs (original)
+++ struts/sandbox/trunk/overdrive/PhoneBook/Core/Commands/BaseList.cs Wed Jun 8 13:59:14 2005
@@ -11,7 +11,8 @@
public override bool RequestExecute (IRequestContext context)
{
IList rows = Mapper ().QueryForList (ID, null);
- context.Outcome = rows;
+ AppContextList list = new AppContextList (rows);
+ context.Outcome = list;
return CONTINUE;
}
}
Modified: struts/sandbox/trunk/overdrive/PhoneBook/Core/Core.csproj
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/PhoneBook/Core/Core.csproj?rev=189637&r1=189636&r2=189637&view=diff
==============================================================================
--- struts/sandbox/trunk/overdrive/PhoneBook/Core/Core.csproj (original)
+++ struts/sandbox/trunk/overdrive/PhoneBook/Core/Core.csproj Wed Jun 8 13:59:14 2005
@@ -104,6 +104,16 @@
BuildAction = "Compile"
/>
<File
+ RelPath = "AppContext.cs"
+ SubType = "Code"
+ BuildAction = "Compile"
+ />
+ <File
+ RelPath = "AppContextList.cs"
+ SubType = "Code"
+ BuildAction = "Compile"
+ />
+ <File
RelPath = "AssemblyInfo.cs"
SubType = "Code"
BuildAction = "Compile"
Added: struts/sandbox/trunk/overdrive/PhoneBook/Test/Forms/DirectoryTest.cs
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/PhoneBook/Test/Forms/DirectoryTest.cs?rev=189637&view=auto
==============================================================================
--- struts/sandbox/trunk/overdrive/PhoneBook/Test/Forms/DirectoryTest.cs (added)
+++ struts/sandbox/trunk/overdrive/PhoneBook/Test/Forms/DirectoryTest.cs Wed Jun 8 13:59:14 2005
@@ -0,0 +1,50 @@
+using NUnit.Extensions.Asp;
+using NUnit.Extensions.Asp.AspTester;
+using NUnit.Framework;
+
+namespace WNE.Core.Forms
+{
+ [TestFixture]
+ public class DirectoryTest : WebFormTestCase
+ {
+
+ PanelTester pnlFind;
+ DropDownListTester lstSelect;
+ TextBoxTester txtFind;
+ ButtonTester cmdFind;
+
+ PanelTester pnlList;
+ DataGridTester repList;
+ ButtonTester cmdAdd;
+
+ protected override void SetUp ()
+ {
+ base.SetUp ();
+
+ pnlFind = new PanelTester("pnlFind", CurrentWebForm);
+ lstSelect = new DropDownListTester("lstSelect", CurrentWebForm);
+ txtFind = new TextBoxTester("txtFind",CurrentWebForm);
+ cmdFind = new ButtonTester("cmdFind",CurrentWebForm);
+
+ pnlList = new PanelTester("pnlList",CurrentWebForm);
+ repList = new DataGridTester("repList",CurrentWebForm);
+ cmdAdd = new ButtonTester("cmdAdd",CurrentWebForm);
+
+ Browser.GetPage ("http://localhost/PhoneBook/Forms/Directory.aspx");
+ }
+
+ [Test]
+ public void FindControls()
+ {
+ WebAssert.Visible(pnlFind);
+ WebAssert.Visible(lstSelect);
+ WebAssert.Visible(txtFind);
+ WebAssert.Visible(cmdFind);
+
+ WebAssert.Visible(pnlList);
+ WebAssert.Visible(repList);
+ WebAssert.Visible(cmdAdd);
+ }
+
+ }
+}
\ No newline at end of file
Modified: struts/sandbox/trunk/overdrive/PhoneBook/Test/Test.csproj
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/PhoneBook/Test/Test.csproj?rev=189637&r1=189636&r2=189637&view=diff
==============================================================================
--- struts/sandbox/trunk/overdrive/PhoneBook/Test/Test.csproj (original)
+++ struts/sandbox/trunk/overdrive/PhoneBook/Test/Test.csproj Wed Jun 8 13:59:14 2005
@@ -143,7 +143,16 @@
BuildAction = "Content"
/>
<File
+ RelPath = "bin\Debug\sqlmap.config.xml"
+ BuildAction = "Content"
+ />
+ <File
RelPath = "Commands\SelectAllTest.cs"
+ SubType = "Code"
+ BuildAction = "Compile"
+ />
+ <File
+ RelPath = "Forms\DirectoryTest.cs"
SubType = "Code"
BuildAction = "Compile"
/>
Modified: struts/sandbox/trunk/overdrive/PhoneBook/Test/bin/Debug/sqlmap.config
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/PhoneBook/Test/bin/Debug/sqlmap.config?rev=189637&r1=189636&r2=189637&view=diff
==============================================================================
--- struts/sandbox/trunk/overdrive/PhoneBook/Test/bin/Debug/sqlmap.config (original)
+++ struts/sandbox/trunk/overdrive/PhoneBook/Test/bin/Debug/sqlmap.config Wed Jun 8 13:59:14 2005
@@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="SqlMapConfig.xsd">
- <properties resource="/Resources/Query/properties.xml"/>
+ <properties resource="/bin/Debug/sqlmap.config.xml"/>
<settings>
<setting useStatementNamespaces="false"/>
Added: struts/sandbox/trunk/overdrive/PhoneBook/Test/bin/Debug/sqlmap.config.xml
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/PhoneBook/Test/bin/Debug/sqlmap.config.xml?rev=189637&view=auto
==============================================================================
--- struts/sandbox/trunk/overdrive/PhoneBook/Test/bin/Debug/sqlmap.config.xml (added)
+++ struts/sandbox/trunk/overdrive/PhoneBook/Test/bin/Debug/sqlmap.config.xml Wed Jun 8 13:59:14 2005
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<settings>
+ <add key="provider" value="ByteFx" />
+ <add key="development" value="Host=localhost;Database=phonebook;Username=root" />
+ <add key="production" value="Host=zippy;Database=phonebook;Username=phonebookApp;Password=p1nH34d" />
+</settings>
Modified: struts/sandbox/trunk/overdrive/PhoneBook/Web/Forms/Directory.aspx
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/PhoneBook/Web/Forms/Directory.aspx?rev=189637&r1=189636&r2=189637&view=diff
==============================================================================
--- struts/sandbox/trunk/overdrive/PhoneBook/Web/Forms/Directory.aspx (original)
+++ struts/sandbox/trunk/overdrive/PhoneBook/Web/Forms/Directory.aspx Wed Jun 8 13:59:14 2005
@@ -13,12 +13,6 @@
<h1>PhoneBook Directory</h1>
<form id="frmDirectory" method="post" runat="server">
- <!-- ERROR -->
- <asp:Panel id="pnlError" Runat="server">
- <HR>
- <asp:Label id="lblError" Runat="server"></asp:Label>
- </asp:Panel>
-
<!-- PROMPT -->
<p>To select entries, choose a filter or search for a Name or Extension.</p>
@@ -34,10 +28,18 @@
<!-- LIST -->
<asp:Panel ID="pnlList" Runat="server">
<asp:DataGrid id="repList" Runat="server"
- PagerStyle-Mode="NumericPages" AllowPaging="true" PageSize="10">
+ PagerStyle-Mode="NumericPages" AllowPaging="true" PageSize="10" AutoGenerateColumns=False>
<HeaderStyle CssClass="HeaderStyle" BackColor="#CCCC99"></HeaderStyle>
<AlternatingItemStyle CssClass="AlternatingItemStyle" BackColor="#CCCC99"></AlternatingItemStyle>
<EditItemStyle CssClass="EditItemStyle"></EditItemStyle>
+ <Columns>
+ <asp:BoundColumn DataField="last_name" HeaderText="LAST NAME"></asp:BoundColumn>
+ <asp:BoundColumn DataField="first_name" HeaderText="FIRST NAME"></asp:BoundColumn>
+ <asp:BoundColumn DataField="extension" HeaderText="EXTENSION"></asp:BoundColumn>
+ <asp:BoundColumn DataField="user_name" HeaderText="USER"></asp:BoundColumn>
+ <asp:BoundColumn DataField="hired" HeaderText="HIRE DATE"></asp:BoundColumn>
+ <asp:BoundColumn DataField="hours" HeaderText="HOURS"></asp:BoundColumn>
+ </Columns>
</asp:DataGrid>
</asp:Panel>
Modified: struts/sandbox/trunk/overdrive/PhoneBook/Web/Forms/Directory.aspx.cs
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/PhoneBook/Web/Forms/Directory.aspx.cs?rev=189637&r1=189636&r2=189637&view=diff
==============================================================================
--- struts/sandbox/trunk/overdrive/PhoneBook/Web/Forms/Directory.aspx.cs (original)
+++ struts/sandbox/trunk/overdrive/PhoneBook/Web/Forms/Directory.aspx.cs Wed Jun 8 13:59:14 2005
@@ -1,6 +1,10 @@
using System;
+using System.Collections;
using System.Web.UI;
using System.Web.UI.WebControls;
+using Nexus.Core;
+using PhoneBook.Core;
+using PhoneBook.Core.Commands;
namespace PhoneBook.Web
{
@@ -11,13 +15,6 @@
public class Directory : Page
{
- #region Page Properties
-
- protected Panel pnlError;
- protected Label lblError;
-
- #endregion
-
#region Messages
private const string msg_FIND_CMD = "FIND";
@@ -25,6 +22,17 @@
#endregion
+ public IList GetDataSource ()
+ {
+ BaseList command = new BaseList();
+ command.ID = App.SELECT_ALL;
+ IRequestContext context = command.NewContext ();
+ command.Execute(context);
+ IList result = context.Outcome as IList;
+ return result;
+ }
+
+
#region Find
protected Panel pnlFind;
@@ -69,17 +77,10 @@
// Put user code to initialize the list here
}
- private bool List_Load ()
+ private void List_Load ()
{
- bool okay = true ; // TODO: ...
- if (okay)
- {
- // TODO: repList.DataSource = ... ;
- repList.DataBind ();
- pnlList.Visible = true;
- }
- // TODO: else ...
- return okay;
+ repList.DataSource = GetDataSource();
+ repList.DataBind ();
}
// postback events
@@ -122,7 +123,11 @@
private void Page_Load(object sender, System.EventArgs e)
{
- if (!IsPostBack) Find_Load();
+ if (!IsPostBack)
+ {
+ Find_Load();
+ List_Load();
+ }
}
#region Web Form Designer generated code
@@ -147,4 +152,5 @@
#endregion
}
+
}
Added: struts/sandbox/trunk/overdrive/PhoneBook/Web/Resources/Query/SelectAll.xml
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/PhoneBook/Web/Resources/Query/SelectAll.xml?rev=189637&view=auto
==============================================================================
--- struts/sandbox/trunk/overdrive/PhoneBook/Web/Resources/Query/SelectAll.xml (added)
+++ struts/sandbox/trunk/overdrive/PhoneBook/Web/Resources/Query/SelectAll.xml Wed Jun 8 13:59:14 2005
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8" ?>
+
+<sqlMap
+ namespace="PhoneBook"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="SqlMap.xsd" >
+
+ <statements>
+ <select id="select_all" resultClass="Hashtable">
+ SELECT
+ pk_entry,
+ last_name,
+ first_name,
+ extension,
+ user_name,
+ editor,
+ hired,
+ hours
+ FROM entry
+ </select>
+ </statements>
+
+</sqlMap>
Modified: struts/sandbox/trunk/overdrive/PhoneBook/Web/Resources/Query/default.xml
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/PhoneBook/Web/Resources/Query/default.xml?rev=189637&r1=189636&r2=189637&view=diff
==============================================================================
--- struts/sandbox/trunk/overdrive/PhoneBook/Web/Resources/Query/default.xml (original)
+++ struts/sandbox/trunk/overdrive/PhoneBook/Web/Resources/Query/default.xml Wed Jun 8 13:59:14 2005
@@ -5,8 +5,10 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="SqlMap.xsd" >
+<!--
<alias>
<typeAlias alias="KeyValue" type="Agility.Extras.KeyValue,Agility.Extras" />
</alias>
+-->
</sqlMap>
Modified: struts/sandbox/trunk/overdrive/PhoneBook/Web/Web.csproj
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/PhoneBook/Web/Web.csproj?rev=189637&r1=189636&r2=189637&view=diff
==============================================================================
--- struts/sandbox/trunk/overdrive/PhoneBook/Web/Web.csproj (original)
+++ struts/sandbox/trunk/overdrive/PhoneBook/Web/Web.csproj Wed Jun 8 13:59:14 2005
@@ -124,6 +124,16 @@
AssemblyName = "Nexus.Web"
HintPath = "..\..\Nexus\Web\bin\Nexus.Web.dll"
/>
+ <Reference
+ Name = "IBatisNet.DataMapper"
+ AssemblyName = "IBatisNet.DataMapper"
+ HintPath = "..\..\iBatisNet.bin\IBatisNet.DataMapper.dll"
+ />
+ <Reference
+ Name = "ByteFX.MySqlClient"
+ AssemblyName = "ByteFX.MySqlClient"
+ HintPath = "..\..\iBatisNet.bin\ByteFX.MySqlClient.dll"
+ />
</References>
</Build>
<Files>
@@ -162,6 +172,10 @@
BuildAction = "Content"
/>
<File
+ RelPath = "sqlmap.config.xml"
+ BuildAction = "Content"
+ />
+ <File
RelPath = "Web.config"
BuildAction = "Content"
/>
@@ -202,7 +216,7 @@
BuildAction = "Content"
/>
<File
- RelPath = "Resources\Query\properties.xml"
+ RelPath = "Resources\Query\SelectAll.xml"
BuildAction = "Content"
/>
</Include>
Modified: struts/sandbox/trunk/overdrive/PhoneBook/Web/sqlmap.config
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/PhoneBook/Web/sqlmap.config?rev=189637&r1=189636&r2=189637&view=diff
==============================================================================
--- struts/sandbox/trunk/overdrive/PhoneBook/Web/sqlmap.config (original)
+++ struts/sandbox/trunk/overdrive/PhoneBook/Web/sqlmap.config Wed Jun 8 13:59:14 2005
@@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="SqlMapConfig.xsd">
- <properties resource="/Resources/Query/properties.xml"/>
+ <properties resource="sqlmap.config.xml"/>
<settings>
<setting useStatementNamespaces="false"/>
Added: struts/sandbox/trunk/overdrive/PhoneBook/Web/sqlmap.config.xml
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/PhoneBook/Web/sqlmap.config.xml?rev=189637&view=auto
==============================================================================
--- struts/sandbox/trunk/overdrive/PhoneBook/Web/sqlmap.config.xml (added)
+++ struts/sandbox/trunk/overdrive/PhoneBook/Web/sqlmap.config.xml Wed Jun 8 13:59:14 2005
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<settings>
+ <add key="provider" value="ByteFx" />
+ <add key="development" value="Host=localhost;Database=phonebook;Username=root" />
+ <add key="production" value="Host=zippy;Database=phonebook;Username=phonebookApp;Password=p1nH34d" />
+</settings>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org