DB connection between Two servlets

Hi,
I have Two servlets, servlet1,servlet2.
In servlet1, I have written Connection Pooling using java class and In the INIT method I'm writing the database connection,
My Question is, How to use the same DB connection in servlet2 ?
here is my code (some portion) :
public class abc_internal extends HttpServlet
{ private ConnectionPool pool;
Statement stmt = null;
Statement stmt1 = null;
Statement stmt2 = null;
ResultSet abc = null;
ResultSet Name_Header = null;
private static final String CONTENT_TYPE = "text/html; charset=windows-1252";
public void init(ServletConfig config) throws ServletException
try
pool = new ConnectionPool("oracle.jdbc.driver.OracleDriver","jdbc:oracle:thin:@IPADDRESS:1526:DB NAME","USERNAME","PASSWORD",5);
}catch(Exception e)
throw new UnavailableException("Couldn't create Connection Pool.....");
PLEASE Help me...
Thanks in advance.

Thanks for the reply... I'm new to Java...I would appreciate, if you can show me as a example for the above code...
Thanks.

Similar Messages

  • SNC connection between two SAProuter

    Hi Guys,
    Please give me the procedure to establish the SNC connectivity between two SAProuter.
    Thanks and Regards,
    Atul

    Hi Atul,
    have tried the SDN Search Function with "snc AND saprouter"? It gave me this Links:
    SNC User Guide:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/snc user guide.pdf
    Configure Secure Network Communication SNC:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/configure secure network communication snc.pdf
    Regards
    Gregor

  • How to make a connection between two wireless sensor networks of different groups through gateway?did any external device or coding is needed?

    my objective is to make a connection between two wireless sensor networks....i am using two nodes and one gateway for each wireless sensor network.....what is the procedure for connecting these two wireless sensor networks of different groups

    my objective is to make a connection between two wireless sensor networks....i am using two nodes and one gateway for each wireless sensor network.....what is the procedure for connecting these two wireless sensor networks of different groups

  • "Sharing" a stateful session bean between two servlets, beans

    Hello!
    I just started to learn some java ee programming and was wondering how i would share one stateful session bean between two servlets.
    I created the bean with @Stateful.
    I tried to inject the stateful bean in both servlets by @EJB and i can manipulate the object, but each servlet seems to have its own object.
    The bean has a remote interface that it implements.
    What i also tried was to add the mappedName to the @Stateful expression. Something like: @Stateful(mappedName="name") and to use the bean by @EJB(mappedName="name") but it had no effect.
    Im using glassfish 2.1 with netbeans 6.7.1 as my environment (standard settings)
    dummy question, but i googled like hours and couldnt find anything : \
    hope someone can help and sorry for my bad english
    greets and thanks

    Hi there!
    I think you are searching for something like an application wide singleton. There is the possibility to define such one in the Glassfish admin console.
    Hope this helps!

  • How to check the Network Connectivity between two systems.

    Hello Everyone,
    Please let me know different ways to check the network connectivity between two systems other than ping/traceroute commands.
    Thank You.
    Edited by: 835435 on Jan 20, 2012 11:43 AM
    Edited by: 835435 on Jan 20, 2012 11:44 AM

    Use snoop.
    snoop -d <nic> - will give requests and replies coming/going in/out of the specified NIC.
    snoop -d <nic> <MAC address of the target host> - will give requests coming from the required host.

  • RFC connection between two SAP systems (with SAP router)

    Hi!
    I would like to set up a RFC-connection from SAP Solution Manager to other SAP system.
    The network connection between the servers is VPN.
    How can I set up this RFC-connection, if my connection between two SAP systems looks as follows,
    (I use the following SAP routers)?
    my server  --> customer
    my server --> internal SAP Router server xy (10.101....) --> SAP Router customer 2 (10.1....) --> SAP System customer (134....)
    Back-way
    SAP Systeme customer --> SAP Router customer (134.1....) --> internal SAP router (212.6....) --> my server
    How can I set up this RFC-connection, if my connection between two SAP systems looks as follows,
    (I use the following SAP routers)?
    something like:
    /H/10.101..../S/sapdp99/H/10.1.4..../S/sapdp99/H/134...
    Thank you very much!
    regards
    Thom

    Same answer as in the other forum where you cross posted....

  • The connection between two Tuxedo machines

    We want to locate our servers(services) onto different machines, we want to know
    :whether the connection,between two machines, is built up at the first time the
    servers booted and kept persistently connectted, or just build up the connection
    when there comes a request.

    Remote machines connect to one another lazily. If you have machines A
    (master), B and C, then B and C do not connect until a request is made
    between B and C. All machines connect to the master at boot time.
    roopesh wrote:
    >
    The connection is persistent and is not request based.
    The machines communicate using BRIDGE.The DBBL which runs
    on the primary master machines keep doing sanity checks
    and health of BBL at all the machines connected and if
    any BBL does not respond for the specified time(set by
    DBBLWAIT) in RESOURCES section.then that machine gets partitioned by DBBL.
    for more info you can read tuxedo documentation.
    Thanks
    Roopesh
    "YANG YI" <[email protected]> wrote:
    We want to locate our servers(services) onto different machines, we want
    to know
    :whether the connection,between two machines, is built up at the first
    time the
    servers booted and kept persistently connectted, or just build up the
    connection
    when there comes a request.

  • Gprs connection between two mobile phones

    Hi
    is it possible to make a gprs connection between two mobile phones without a server(pc...)? when the answer "yes" please give me an exapmle...

    I'm not sure, I'm just connecting some facts. I'm talking about Siemens S55. It has implemented sockets (both client sockets and server sockets). The phone, when connected via GPRS has IP address (Siemens' netmonitor reports it..). But i've never tried to use server-socket on my mobile.
    So it seems that it is in fact possible on some handsets. (AFAIK nokia 6610 and similar does not support sockets...)

  • Connection between two views

    Hi Experts,
    Please give me some inputs related to connection between two views ???

    Hi
    http://help.sap.com/saphelp_46c/helpdata/de/39/7dfeaaac6011d189c60000e829fbbd/frameset.htm
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2cceb190-0201-0010-be88-acdbeb2ad65f
    How to acces context of view B from view A without using the controller?
    http://help.sap.com/saphelp_nw04s/helpdata/en/7b/67eaa71bdf2645be6e811eee980a04/frameset.htm

  • Connection between two clients

    Hi,
    I want to get some guidance on connection between two clients. Suppose I need to connect client 500 with client 900 in the same system without changing the logical names.
    Thanks & Regards
    Nabarun

    Nabarun -
    It almost sounds as if you just want an RFC to go from one client to the other.  RFCs (SM59) are not client dependant so you can create one in any client.  You can create one with the system name and point it to the client number using a specific user and password.  I would recommend for security it be a communications user and not a dialog user depending on what you will be sending between the clients.  However, the user will need the correct permissions and again, depending on what you are trying to accomplish, it may have to be a DIAG user although I would be wary.  Then create a 2nd RFC pointing back to the other client.  For example...
    RFC 1
    System Name = <System>
    Client = 500
    User = <userid in clnt 500>
    RFC 2
    System Name = <System>
    Client = 900
    User = <userid in clnt 900>
    Then when you are in client 500, there is a path/connection to client 900 via that clients ID and password and vice versa using the appropriate RFC.  Again, with out more info on what you are attempting, this may be your solution.  Hope this helps.  Good luck
    Regards,
    Zecher

  • How to configure connectivity between two vm linux hosts

    Hello All,
    i have installed vm workstation with two RHEL4 linux installation.
    Node 1:RHEL4
    Node 2:RHEL4
    i have configured 2 ethernet cards am able to ping in a host but not each other.
    i have tried to ping from Node 1 to Node 2 am getting icmp_seq=0 Destination Host Unreachable .....
    kindly suggest how to configure connectivity between two host permanently.please explain with example if possible. or suggest any link.
    thanks,
    Mike.

    1003614 wrote:
    thanks for quick reply ....Oracle vm workstation 4.2 am using.
    ... then your post is now moved to the appropriate forum space for your question (Oracle VM for x86).

  • How to add connection between two Web Part Data Views in sharepoint designer 2013

    Hi I have problems with connect two data view
    I have a SQL server database named Mini
    In Mini database I have two tables:  dbo.Table_A and dbo.Table_B
    Table_A design and Table_B design
    In the internet browser it look like this after I add the connections, the problem is there is no connection when I click at the Blue link id 2 and 3 ??? John's and Jes's Lastname did not show up, the links is dead. that's my problem
    The must strange is that, if I do the same below, in sharepoint 2010 designer it do well ?? so what in the .....
    Here is my code
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <%@ Page Language="C#" inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register tagprefix="SharePoint" namespace="Microsoft.SharePoint.WebControls" assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register tagprefix="WebPartPages" namespace="Microsoft.SharePoint.WebPartPages" assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
    <meta name="ProgId" content="SharePoint.WebPartPage.Document" />
    <meta name="WebPartPageExpansion" content="full" />
    <meta http-equiv="X-UA-Compatible" content="IE=10" />
    <SharePoint:CssRegistration Name="default" runat="server"/>
    </head>
    <body>
    <form id="form1" runat="server">
    <table width="10%"><tr><td>
    <WebPartPages:SPWebPartManager runat="server" id="SPWebPartManager">
    <SPWebPartConnections>
    <WebPartPages:spwebpartconnection ID="g_1660BB6ADC7243088A1BB7F5C196203A" ConsumerConnectionPointID="DFWP Filter Consumer ID" ConsumerID="g_2abfc8f5_0eb3_4711_a5b0_7e7518f56881" ProviderConnectionPointID="DFWP Row Provider ID" ProviderID="g_b70a05bb_a849_423d_8e53_c7ad9ccc18ad">
    <WebPartPages:sprowtoparameterstransformer ProviderFieldNames="@ID" ConsumerFieldNames="@ID" />
    </WebPartPages:spwebpartconnection>
    </SPWebPartConnections>
    </WebPartPages:SPWebPartManager>
    <asp:ScriptManager runat="server" id="ScriptManager"></asp:ScriptManager>
    <WebPartPages:DataFormWebPart runat="server" IsIncluded="True" AsyncRefresh="True" FrameType="None" NoDefaultStyle="TRUE" ViewFlag="8" Title="Table_A on Mini" PageType="PAGE_NORMALVIEW" __markuptype="vsattributemarkup" __WebPartId="{B70A05BB-A849-423D-8E53-C7AD9CCC18AD}" id="g_b70a05bb_a849_423d_8e53_c7ad9ccc18ad" pagesize="10">
    <DataSources>
    <asp:SqlDataSource id="Table_A_x0020_on_x0020_Mini2" runat="server" __designer:commandsync="true" ProviderName="System.Data.SqlClient" ConnectionString="Data Source=TestMSSQL;User ID=SQLADMIN;Password=079130;Initial Catalog=Mini;" SelectCommand="SELECT * FROM [Table_A] ORDER BY [ID] ASC "/>
    </DataSources>
    <ParameterBindings>
    <ParameterBinding Name="dvt_apos" Location="Postback;Connection"/>
    <ParameterBinding Name="ManualRefresh" Location="WPProperty[ManualRefresh]"/>
    <ParameterBinding Name="UserID" Location="CAMLVariable" DefaultValue="CurrentUserName"/>
    <ParameterBinding Name="Today" Location="CAMLVariable" DefaultValue="CurrentDate"/>
    <ParameterBinding Name="dvt_firstrow" Location="Postback;Connection"/>
    <ParameterBinding Name="dvt_nextpagedata" Location="Postback;Connection"/>
    <ParameterBinding Name="dvt_curselkey" Location="Postback;Connection" DefaultValue="##init##"/>
    </ParameterBindings>
    <datafields>@ID,ID;@ForeName,ForeName;</datafields>
    <XSL>
    <xsl:stylesheet xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal">
    <xsl:output method="html" indent="no"/>
    <xsl:decimal-format NaN=""/>
    <xsl:param name="dvt_curselkey">##init##</xsl:param>
    <xsl:param name="dvt_apos">'</xsl:param>
    <xsl:param name="ManualRefresh"></xsl:param>
    <xsl:param name="dvt_firstrow">1</xsl:param>
    <xsl:param name="dvt_nextpagedata" />
    <xsl:variable name="dvt_1_automode">0</xsl:variable>
    <xsl:template match="/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:SharePoint="Microsoft.SharePoint.WebControls">
    <xsl:choose>
    <xsl:when test="($ManualRefresh = 'True')">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td valign="top">
    <xsl:call-template name="dvt_1"/>
    </td>
    <td width="1%" class="ms-vb" valign="top">
    <img src="/_layouts/15/images/staticrefresh.gif" id="ManualRefresh" border="0" onclick="javascript: {ddwrt:GenFireServerEvent('__cancel')}" alt="Click here to refresh the dataview."/>
    </td>
    </tr>
    </table>
    </xsl:when>
    <xsl:otherwise>
    <xsl:call-template name="dvt_1"/>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    <xsl:template name="dvt_1">
    <xsl:variable name="dvt_StyleName">Table</xsl:variable>
    <xsl:variable name="Rows" select="/dsQueryResponse/NewDataSet/Row"/>
    <xsl:variable name="dvt_RowCount" select="count($Rows)"/>
    <xsl:variable name="RowLimit" select="10" />
    <xsl:variable name="FirstRow" select="$dvt_firstrow" />
    <xsl:variable name="LastRow">
    <xsl:choose>
    <xsl:when test="($FirstRow + $RowLimit - 1) &gt; $dvt_RowCount"><xsl:value-of select="$dvt_RowCount" /></xsl:when>
    <xsl:otherwise><xsl:value-of select="$FirstRow + $RowLimit - 1" /></xsl:otherwise>
    </xsl:choose>
    </xsl:variable>
    <xsl:variable name="IsEmpty" select="$dvt_RowCount = 0" />
    <xsl:variable name="dvt_IsEmpty" select="$dvt_RowCount = 0"/>
    <xsl:choose>
    <xsl:when test="$dvt_IsEmpty">
    <xsl:call-template name="dvt_1.empty"/>
    </xsl:when>
    <xsl:otherwise>
    <table border="0" width="100%" cellpadding="2" cellspacing="0">
    <tr valign="top">
    <xsl:if test="$dvt_1_automode = '1'" ddwrt:cf_ignore="1">
    <th class="ms-vh" width="1%" nowrap="nowrap"></th>
    </xsl:if>
    <th class="ms-vh" nowrap="nowrap">ID</th><th class="ms-vh" nowrap="nowrap">ForeName</th></tr>
    <xsl:call-template name="dvt_1.body">
    <xsl:with-param name="Rows" select="$Rows[position() &gt;= $FirstRow and position() &lt;= $LastRow]"/>
    <xsl:with-param name="FirstRow" select="1" />
    <xsl:with-param name="LastRow" select="$dvt_RowCount" />
    </xsl:call-template>
    </table>
    </xsl:otherwise>
    </xsl:choose>
    <xsl:call-template name="dvt_1.commandfooter">
    <xsl:with-param name="FirstRow" select="$FirstRow" />
    <xsl:with-param name="LastRow" select="$LastRow" />
    <xsl:with-param name="RowLimit" select="$RowLimit" />
    <xsl:with-param name="dvt_RowCount" select="$dvt_RowCount" />
    <xsl:with-param name="RealLastRow" select="number(ddwrt:NameChanged('',-100))" />
    </xsl:call-template>
    </xsl:template>
    <xsl:template name="dvt_1.body">
    <xsl:param name="Rows"/>
    <xsl:param name="FirstRow" />
    <xsl:param name="LastRow" />
    <xsl:for-each select="$Rows">
    <xsl:variable name="CurrentRowKey">
    <xsl:call-template name="dvt.gencurselkey">
    <xsl:with-param name="RowPath" select="." />
    </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="dvt_KeepItemsTogether" select="false()" />
    <xsl:variable name="dvt_HideGroupDetail" select="false()" />
    <xsl:if test="(position() &gt;= $FirstRow and position() &lt;= $LastRow) or $dvt_KeepItemsTogether">
    <xsl:if test="not($dvt_HideGroupDetail)" ddwrt:cf_ignore="1">
    <xsl:call-template name="dvt_1.rowview" >
    <xsl:with-param name="CurrentRowKey" select="$CurrentRowKey" />
    </xsl:call-template>
    </xsl:if>
    </xsl:if>
    </xsl:for-each>
    </xsl:template>
    <xsl:template name="dvt_1.rowview">
    <xsl:param name="CurrentRowKey" />
    <tr>
    <xsl:if test="position() mod 2 = 1">
    <xsl:attribute name="class">ms-alternating</xsl:attribute>
    </xsl:if>
    <xsl:if test="$dvt_1_automode = '1'" ddwrt:cf_ignore="1">
    <td class="ms-vb" width="1%" nowrap="nowrap">
    <span ddwrt:amkeyfield="" ddwrt:amkeyvalue="ddwrt:EscapeDelims(string(''))" ddwrt:ammode="view"></span>
    </td>
    </xsl:if>
    <td class="ms-vb">
    <a target="_self">
    <xsl:attribute xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="href">
    <xsl:variable name="cursel">dvt_curselkey={
    <xsl:call-template name="dvt.gencurselkey">
    <xsl:with-param name="RowPath" select="." />
    </xsl:call-template>
    }</xsl:variable>
    <xsl:variable xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="fields">@ID=<xsl:value-of select="ddwrt:ConnEncode(string(@ID))" /></xsl:variable>
    <xsl:text>javascript:</xsl:text>
    <xsl:value-of select="ddwrt:GenFireConnection(concat('g_2abfc8f5_0eb3_4711_a5b0_7e7518f56881*',$fields),string($cursel))"></xsl:value-of>
    </xsl:attribute>
    <xsl:attribute name="style">
    <xsl:if test="$CurrentRowKey = $dvt_curselkey">font-weight: bold;</xsl:if>
    </xsl:attribute>
    <xsl:value-of select="format-number(@ID, '#,##0.#;-#,##0.#')" />
    </a></td><td class="ms-vb">
    <xsl:value-of select="@ForeName" /></td></tr>
    </xsl:template>
    <xsl:template name="dvt_1.empty">
    <xsl:variable name="dvt_ViewEmptyText">There are no items to show in this view.</xsl:variable>
    <table border="0" width="100%">
    <tr>
    <td class="ms-vb">
    <xsl:value-of select="$dvt_ViewEmptyText"/>
    </td>
    </tr>
    </table>
    </xsl:template>
    <xsl:template name="dvt_1.commandfooter">
    <xsl:param name="FirstRow" />
    <xsl:param name="LastRow" />
    <xsl:param name="RowLimit" />
    <xsl:param name="dvt_RowCount" />
    <xsl:param name="RealLastRow" />
    <table cellspacing="0" cellpadding="4" border="0" width="100%">
    <tr>
    <xsl:if test="$FirstRow &gt; 1 or $LastRow &lt; $dvt_RowCount">
    <xsl:call-template name="dvt_1.navigation">
    <xsl:with-param name="FirstRow" select="$FirstRow" />
    <xsl:with-param name="LastRow" select="$LastRow" />
    <xsl:with-param name="RowLimit" select="$RowLimit" />
    <xsl:with-param name="dvt_RowCount" select="$dvt_RowCount" />
    <xsl:with-param name="RealLastRow" select="$RealLastRow" />
    </xsl:call-template>
    </xsl:if>
    </tr>
    </table>
    </xsl:template>
    <xsl:template name="dvt_1.navigation">
    <xsl:param name="FirstRow" />
    <xsl:param name="LastRow" />
    <xsl:param name="RowLimit" />
    <xsl:param name="dvt_RowCount" />
    <xsl:param name="RealLastRow" />
    <xsl:variable name="PrevRow">
    <xsl:choose>
    <xsl:when test="$FirstRow - $RowLimit &lt; 1">1</xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="$FirstRow - $RowLimit" />
    </xsl:otherwise>
    </xsl:choose>
    </xsl:variable>
    <xsl:variable name="LastRowValue">
    <xsl:choose>
    <xsl:when test="$LastRow &gt; $RealLastRow">
    <xsl:value-of select="$LastRow"></xsl:value-of>
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="$RealLastRow"></xsl:value-of>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:variable>
    <xsl:variable name="NextRow">
    <xsl:value-of select="$LastRowValue + 1"></xsl:value-of>
    </xsl:variable>
    <td nowrap="nowrap" class="ms-paging" align="right">
    <xsl:if test="$dvt_firstrow &gt; 1" ddwrt:cf_ignore="1">
    <a>
    <xsl:attribute name="href">javascript: <xsl:value-of select="ddwrt:GenFireServerEvent('dvt_firstrow={1}')" />;</xsl:attribute>
    Start</a>
    <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text>
    <a>
    <xsl:attribute name="href">javascript: <xsl:value-of select="ddwrt:GenFireServerEvent(concat('dvt_firstrow={',$PrevRow,'}'))" />;</xsl:attribute>
    <img src="/_layouts/15/images/prev.gif" border="0" alt="Previous" />
    </a>
    <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text>
    </xsl:if>
    <xsl:value-of select="$FirstRow" />
    - <xsl:value-of select="$LastRowValue" />
    <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text>
    <xsl:if test="$LastRowValue &lt; $dvt_RowCount or string-length($dvt_nextpagedata)!=0" ddwrt:cf_ignore="1">
    <a>
    <xsl:attribute name="href">javascript: <xsl:value-of select="ddwrt:GenFireServerEvent(concat('dvt_firstrow={',$NextRow,'}'))" />;</xsl:attribute>
    <img src="/_layouts/15/images/next.gif" border="0" alt="Next" />
    </a>
    </xsl:if>
    </td>
    </xsl:template>
    <xsl:template name="dvt.gencurselkey">
    <xsl:param name="RowPath" />
    <xsl:choose>
    <xsl:when test="$dvt_curselkey = '##init##' and position() = $dvt_firstrow">##init##</xsl:when>
    <xsl:otherwise><xsl:value-of select="ddwrt:ConnEncode(string($RowPath/@ID))" /></xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    </xsl:stylesheet> </XSL>
    </WebPartPages:DataFormWebPart>
    </td></tr><tr><td>
    <WebPartPages:DataFormWebPart runat="server" IsIncluded="True" AsyncRefresh="True" FrameType="None" NoDefaultStyle="TRUE" ViewFlag="8" Title="Table_B on Mini" PageType="PAGE_NORMALVIEW" __markuptype="vsattributemarkup" __WebPartId="{2ABFC8F5-0EB3-4711-A5B0-7E7518F56881}" id="g_2abfc8f5_0eb3_4711_a5b0_7e7518f56881" pagesize="10">
    <DataSources>
    <asp:SqlDataSource id="Table_B_x0020_on_x0020_Mini1" runat="server" __designer:commandsync="true" ProviderName="System.Data.SqlClient" ConnectionString="Data Source=TestMSSQL;User ID=SQLADMIN;Password=079130;Initial Catalog=Mini;" SelectCommand="SELECT * FROM [Table_B] ORDER BY [ID] ASC "/>
    </DataSources>
    <ParameterBindings>
    <ParameterBinding Name="dvt_apos" Location="Postback;Connection"/>
    <ParameterBinding Name="ManualRefresh" Location="WPProperty[ManualRefresh]"/>
    <ParameterBinding Name="UserID" Location="CAMLVariable" DefaultValue="CurrentUserName"/>
    <ParameterBinding Name="Today" Location="CAMLVariable" DefaultValue="CurrentDate"/>
    <ParameterBinding Name="dvt_firstrow" Location="Postback;Connection"/>
    <ParameterBinding Name="dvt_nextpagedata" Location="Postback;Connection"/>
    </ParameterBindings>
    <datafields>@ID,ID;@LastName,LastName;</datafields>
    <XSL>
    <xsl:stylesheet xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal">
    <xsl:output method="html" indent="no"/>
    <xsl:decimal-format NaN=""/>
    <xsl:param name="dvt_apos">'</xsl:param>
    <xsl:param name="ManualRefresh"></xsl:param>
    <xsl:param name="dvt_firstrow">1</xsl:param>
    <xsl:param name="dvt_nextpagedata" />
    <xsl:variable name="dvt_1_automode">0</xsl:variable>
    <xsl:template match="/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:SharePoint="Microsoft.SharePoint.WebControls">
    <xsl:choose>
    <xsl:when test="($ManualRefresh = 'True')">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td valign="top">
    <xsl:call-template name="dvt_1"/>
    </td>
    <td width="1%" class="ms-vb" valign="top">
    <img src="/_layouts/15/images/staticrefresh.gif" id="ManualRefresh" border="0" onclick="javascript: {ddwrt:GenFireServerEvent('__cancel')}" alt="Click here to refresh the dataview."/>
    </td>
    </tr>
    </table>
    </xsl:when>
    <xsl:otherwise>
    <xsl:call-template name="dvt_1"/>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    <xsl:template name="dvt_1">
    <xsl:variable name="dvt_StyleName">Table</xsl:variable>
    <xsl:variable name="Rows" select="/dsQueryResponse/NewDataSet/Row"/>
    <xsl:variable name="dvt_RowCount" select="count($Rows)"/>
    <xsl:variable name="RowLimit" select="10" />
    <xsl:variable name="FirstRow" select="$dvt_firstrow" />
    <xsl:variable name="LastRow">
    <xsl:choose>
    <xsl:when test="($FirstRow + $RowLimit - 1) &gt; $dvt_RowCount"><xsl:value-of select="$dvt_RowCount" /></xsl:when>
    <xsl:otherwise><xsl:value-of select="$FirstRow + $RowLimit - 1" /></xsl:otherwise>
    </xsl:choose>
    </xsl:variable>
    <xsl:variable name="IsEmpty" select="$dvt_RowCount = 0" />
    <xsl:variable name="dvt_IsEmpty" select="$dvt_RowCount = 0"/>
    <xsl:choose>
    <xsl:when test="$dvt_IsEmpty">
    <xsl:call-template name="dvt_1.empty"/>
    </xsl:when>
    <xsl:otherwise>
    <table border="0" width="100%" cellpadding="2" cellspacing="0">
    <tr valign="top">
    <xsl:if test="$dvt_1_automode = '1'" ddwrt:cf_ignore="1">
    <th class="ms-vh" width="1%" nowrap="nowrap"></th>
    </xsl:if>
    <th class="ms-vh" nowrap="nowrap">ID</th><th class="ms-vh" nowrap="nowrap">LastName</th></tr>
    <xsl:call-template name="dvt_1.body">
    <xsl:with-param name="Rows" select="$Rows[position() &gt;= $FirstRow and position() &lt;= $LastRow]"/>
    <xsl:with-param name="FirstRow" select="1" />
    <xsl:with-param name="LastRow" select="$dvt_RowCount" />
    </xsl:call-template>
    </table>
    </xsl:otherwise>
    </xsl:choose>
    <xsl:call-template name="dvt_1.commandfooter">
    <xsl:with-param name="FirstRow" select="$FirstRow" />
    <xsl:with-param name="LastRow" select="$LastRow" />
    <xsl:with-param name="RowLimit" select="$RowLimit" />
    <xsl:with-param name="dvt_RowCount" select="$dvt_RowCount" />
    <xsl:with-param name="RealLastRow" select="number(ddwrt:NameChanged('',-100))" />
    </xsl:call-template>
    </xsl:template>
    <xsl:template name="dvt_1.body">
    <xsl:param name="Rows"/>
    <xsl:param name="FirstRow" />
    <xsl:param name="LastRow" />
    <xsl:for-each select="$Rows">
    <xsl:variable name="dvt_KeepItemsTogether" select="false()" />
    <xsl:variable name="dvt_HideGroupDetail" select="false()" />
    <xsl:if test="(position() &gt;= $FirstRow and position() &lt;= $LastRow) or $dvt_KeepItemsTogether">
    <xsl:if test="not($dvt_HideGroupDetail)" ddwrt:cf_ignore="1">
    <xsl:call-template name="dvt_1.rowview" />
    </xsl:if>
    </xsl:if>
    </xsl:for-each>
    </xsl:template>
    <xsl:template name="dvt_1.rowview">
    <tr>
    <xsl:if test="position() mod 2 = 1">
    <xsl:attribute name="class">ms-alternating</xsl:attribute>
    </xsl:if>
    <xsl:if test="$dvt_1_automode = '1'" ddwrt:cf_ignore="1">
    <td class="ms-vb" width="1%" nowrap="nowrap">
    <span ddwrt:amkeyfield="" ddwrt:amkeyvalue="ddwrt:EscapeDelims(string(''))" ddwrt:ammode="view"></span>
    </td>
    </xsl:if>
    <td class="ms-vb">
    <xsl:value-of select="format-number(@ID, '#,##0.#;-#,##0.#')"/>
    </td><td class="ms-vb">
    <xsl:value-of select="@LastName" /></td></tr>
    </xsl:template>
    <xsl:template name="dvt_1.empty">
    <xsl:variable name="dvt_ViewEmptyText">There are no items to show in this view.</xsl:variable>
    <table border="0" width="100%">
    <tr>
    <td class="ms-vb">
    <xsl:value-of select="$dvt_ViewEmptyText"/>
    </td>
    </tr>
    </table>
    </xsl:template>
    <xsl:template name="dvt_1.commandfooter">
    <xsl:param name="FirstRow" />
    <xsl:param name="LastRow" />
    <xsl:param name="RowLimit" />
    <xsl:param name="dvt_RowCount" />
    <xsl:param name="RealLastRow" />
    <table cellspacing="0" cellpadding="4" border="0" width="100%">
    <tr>
    <xsl:if test="$FirstRow &gt; 1 or $LastRow &lt; $dvt_RowCount">
    <xsl:call-template name="dvt_1.navigation">
    <xsl:with-param name="FirstRow" select="$FirstRow" />
    <xsl:with-param name="LastRow" select="$LastRow" />
    <xsl:with-param name="RowLimit" select="$RowLimit" />
    <xsl:with-param name="dvt_RowCount" select="$dvt_RowCount" />
    <xsl:with-param name="RealLastRow" select="$RealLastRow" />
    </xsl:call-template>
    </xsl:if>
    </tr>
    </table>
    </xsl:template>
    <xsl:template name="dvt_1.navigation">
    <xsl:param name="FirstRow" />
    <xsl:param name="LastRow" />
    <xsl:param name="RowLimit" />
    <xsl:param name="dvt_RowCount" />
    <xsl:param name="RealLastRow" />
    <xsl:variable name="PrevRow">
    <xsl:choose>
    <xsl:when test="$FirstRow - $RowLimit &lt; 1">1</xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="$FirstRow - $RowLimit" />
    </xsl:otherwise>
    </xsl:choose>
    </xsl:variable>
    <xsl:variable name="LastRowValue">
    <xsl:choose>
    <xsl:when test="$LastRow &gt; $RealLastRow">
    <xsl:value-of select="$LastRow"></xsl:value-of>
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="$RealLastRow"></xsl:value-of>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:variable>
    <xsl:variable name="NextRow">
    <xsl:value-of select="$LastRowValue + 1"></xsl:value-of>
    </xsl:variable>
    <td nowrap="nowrap" class="ms-paging" align="right">
    <xsl:if test="$dvt_firstrow &gt; 1" ddwrt:cf_ignore="1">
    <a>
    <xsl:attribute name="href">javascript: <xsl:value-of select="ddwrt:GenFireServerEvent('dvt_firstrow={1}')" />;</xsl:attribute>
    Start</a>
    <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text>
    <a>
    <xsl:attribute name="href">javascript: <xsl:value-of select="ddwrt:GenFireServerEvent(concat('dvt_firstrow={',$PrevRow,'}'))" />;</xsl:attribute>
    <img src="/_layouts/15/images/prev.gif" border="0" alt="Previous" />
    </a>
    <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text>
    </xsl:if>
    <xsl:value-of select="$FirstRow" />
    - <xsl:value-of select="$LastRowValue" />
    <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text>
    <xsl:if test="$LastRowValue &lt; $dvt_RowCount or string-length($dvt_nextpagedata)!=0" ddwrt:cf_ignore="1">
    <a>
    <xsl:attribute name="href">javascript: <xsl:value-of select="ddwrt:GenFireServerEvent(concat('dvt_firstrow={',$NextRow,'}'))" />;</xsl:attribute>
    <img src="/_layouts/15/images/next.gif" border="0" alt="Next" />
    </a>
    </xsl:if>
    </td>
    </xsl:template>
    </xsl:stylesheet> </XSL>
    </WebPartPages:DataFormWebPart>
    </td></tr></table>
    </form>
    </body>
    </html>

    Hey Bale
    Yes I use sharepoint designer 2013, when I do the same in sharepoint designer 2010, it do well
    No to your question 2, 3 and 4
    See again my picture below her, when I open the internet browser
    in the database you have a table with forename and another table with last name,
    the link between this two table is the id, when I open it is ok, Bens lastname is
    James, Ben James.
    So when I try to click on the blue id number 2 beside John, Johns Last name
    should show up, but it did not, the link is dead. that's my problem the funny about this when I
    do the same procedure see above in sharepoint designer 2010, it do well ?
    Here is my first steps, when you have uploaded the first datasource, you need to save, place your courser
    behind the <asp:ScriptManager runat="server" id="ScriptManager"></asp:ScriptManager> x   PLACE COURSER HER
    THEN you can upload the next datasource, the sharepoint designer automatic generate the code for the grid.
    When you have the two grids inside the aspx file, place your courser behind the first
    <WebPartPages:DataFormWebPart X <---
    then the tab "option" show up and inside here you can add the connections between the two grids.

  • Connection Between Two Databases

    Hi,
    I have two databases called DBS1 and DBS2. Both are in one system. I need link between these two databases. I want a query as follows.
    select * from cust@DBS2; # from DBS1
    select * from temp_cust@DBS1; # from DBS2
    Is possible link between DBS1 and DBS2.
    Can any one tell me how to link these two databases each other.
    Best Regards,
    Nilopher.
    null

    Nilopher,
    You can connect to two different Oracle databases by creating a database link. When you say that both databases are in one system I assume you mean two databases on the same server. To create a database link you can do the following:
    While logged onto DBS1:
    create database link dbs2
    connect to username identified by password
    using 'dbs2.world'
    Username and password are the user and password you want to connect as in dbs2.
    If you want everyone to be able to access the database link you can say create public database link... otherwise only the user that created the database link can use it.
    This should work assuming the database server tnsnames.ora file looks like this:
    dbs2.world =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL= TCP)(Host= hostname)(Port= 1521))
    (CONNECT_DATA = (SERVICE_NAME = dbs2))
    If your databases are on two different servers you'd have to look at each one's tnsnames.ora file and make sure each one had an entry for the other's database.
    I believe the database link name must be the same as the SERVICE_NAME if the parameter GLOBAL_NAMES=TRUE, if it's FALSE you can name it something else. By default this parameter is set to TRUE so I called the database link in the example dbs2.
    You can then access data from dbs2 while logged into dbs1 exactly how you said:
    select * from cust@DBS2;
    You can then repeat the process to do the same thing on dbs2 to connect to dbs1.
    Hope this helps.

  • Connection between two Macs fails

    My home-network consists of a MacPro (1,1 - 2006), a MacBook Pro (Early 2008) an a MacMini (late 2009), all running OS X 10.6.3, no software-firewall is running. My router is a LinkSys WRT 610 N which I use with ethernet (Mac Pro) and wireless (Book an Mini). Wireless is both, 2,4- and 5,0 Ghz (802.11n).
    When I try to connect from the MacPro to the MacBook Pro via wireless, sometimes it works, sometimes it doesn't. The reverse connection works (Book to Pro). Sharing is enabled on every Mac, also screen sharing. If I connect the MacBook Pro via ethernetcable, it works. What could this be? Also I often cannot connect via the symbol in the sidebar of the finder, I have to use the "go to" - menu. If I want to make screen sharing I have to use "go to > vnc ...". Does anybody know these issues and can give me a hint? By the way, the connection between the two "younger" Macs (mini and book) works fine ...
    Message was edited by: Stefan Gregor

    Stefan Gregor wrote:
    What could this be?
    _*wireless interference*_ ?
    download iStumbler (free) and note the channels other networks in your vicinity are broadcasting on. change the channel(s) of your network as far away as possible from those.
    any improvement ?
    JGG

  • Wireless connection between two macs.

    I have a Intel iMac downstairs and a G4 power pc iMac upstairs. The downstairs iMac has an internet connection, upstairs does not. What do i need to have a wireless connection between the two and how do i go about connecting the two computers?

    Hi widge-
    What you need will depend on which Macs are already wireless and which you will have to add.
    There is a lot more information available here: AirPort + Time Capsule
    Luck-
    -DP

Maybe you are looking for

  • Purchase Order item wise should not be DELEATED once GRN/IR is done

    HI All, HERE is ISSUE, Purchase order is Created which consist of two line items 10 and 20 . now aganist the PO  item 10 GRN/IR is done their by purchase history gets generated. In std SAP these type of item can be deleated but  the user wants that t

  • Configuring the SOAP Adapter

    Hi Folks, I have a sceanrio where an AXIS client needs to talk to the XI SOAP Adapter. How do I configure the SOAP adapter? I tried to access the help docs for configuring the SOAP adapter. I understand that the adapter depends upon the plain J2SE Ad

  • Extend the network for airport extreme

    Problem overview. I have a timeWarner cable modem that has both wired and wireless output supporting four external ethernet ports. I want to extend my network (bridge) to use the extreme in another room and connect other hardware that has only ethern

  • New Magic Mouse - how to turn off horiz scroll ?

    love this new Magic Mouse esp with FCP where horiz scroll from edit to edit is ultra cool. However, most of the time I will want to turn horizontal scrolling off. This is easy to do with other Apple mice and even other manuf brands. So - how to do th

  • Authentication in Client/Server form Application

    Hi My client/server application is not using oracle authentiacation, I have maintained user table from that user is authenticated, but any user logins in a application it uses same oracle username/PWD which I currently hardcoded in a forms 6i (C/S ty