How to retrieve the server IP address

Hi Experts,
In my scenario, if some problem occur, then the XSLT mapping sends a mail to some one,subject is 'PRD', if we execute this from production or quality or development server.
But now i want to know this mail from which server, so i want to change the subject line as 'PRD' if it is only from production system otherwise 'OTH', how to achieve this ? No hard code allow at any where.
I have one thought, if we find the server ip address then we can recognize, but how to get the server IP address ? Is it possible ?
Thanks
Ramesh

Hi,
My source is some WSDL file, this is more than 15000 characters so i am unable to send the full file.
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
     <wsdl:types>
          <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
               <xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd" />
               <xsd:element name="Pip3A4PurchaseOrderRequest" type="Pip3A4PurchaseOrderRequest" />
               <xsd:complexType name="Pip3A4PurchaseOrderRequest">
                    <xsd:sequence>
                         <xsd:element name="fromRole" type="fromRole" />
                         <xsd:element name="GlobalDocumentFunctionCode" type="xsd:string" />
                         <xsd:element name="PurchaseOrder" type="PurchaseOrder" />
                         <xsd:element name="thisDocumentGenerationDateTime" type="thisDocumentGenerationDateTime" />
                         <xsd:element name="thisDocumentIdentifier" type="thisDocumentIdentifier" />
                         <xsd:element name="toRole" type="toRole" />
                    </xsd:sequence>
               </xsd:complexType>
               <xsd:complexType name="fromRole">
                    <xsd:sequence>
                         <xsd:element name="PartnerRoleDescription" type="PartnerRoleDescription" />
                    </xsd:sequence>
               </xsd:complexType>
               <xsd:complexType name="PartnerRoleDescription">
                    <xsd:sequence>
                         <xsd:element name="ContactInformation" type="ContactInformation" minOccurs="0" />
                         <xsd:element name="GlobalPartnerRoleClassificationCode" type="xsd:string" />
                         <xsd:element name="PartnerDescription" type="PartnerDescription" />
                    </xsd:sequence>
               </xsd:complexType>
               <xsd:complexType name="ContactInformation">
                    <xsd:sequence>
                         <xsd:element name="contactName" type="contactName" minOccurs="0" />
                         <xsd:element name="EmailAddress" type="xsd:string" minOccurs="0" />
                         <xsd:element name="facsimileNumber" type="facsimileNumber" minOccurs="0" />
                         <xsd:element name="telephoneNumber" type="telephoneNumber" minOccurs="0" />
                         <xsd:element name="PhysicalAddress" type="PhysicalAddress" minOccurs="0" />
                    </xsd:sequence>
               </xsd:complexType>
               <xsd:complexType name="contactName">
                    <xsd:sequence>
                         <xsd:element name="FreeFormText" type="FreeFormText" />
                    </xsd:sequence>
               </xsd:complexType>
               <xsd:complexType name="FreeFormText">
                    <xsd:simpleContent>
                         <xsd:extension base="xsd:string">
                              <xsd:attribute ref="xml:lang" />
                         </xsd:extension>
                    </xsd:simpleContent>
               </xsd:complexType>
               <xsd:complexType name="facsimileNumber">
                    <xsd:sequence>
                         <xsd:element name="CommunicationsNumber" type="xsd:string" />
                    </xsd:sequence>
               </xsd:complexType>
               <xsd:complexType name="telephoneNumber">
                    <xsd:sequence>
                         <xsd:element name="CommunicationsNumber" type="xsd:string" />
                    </xsd:sequence>
               </xsd:complexType>
               <xsd:complexType name="PartnerDescription">
                    <xsd:sequence>
                         <xsd:element name="BusinessDescription" type="BusinessDescription" />
                         <xsd:element name="GlobalPartnerClassificationCode" type="xsd:string" minOccurs="0" />
                         <xsd:element name="PhysicalAddress" type="PhysicalAddress" minOccurs="0" />
                         <xsd:element name="ContactInformation" type="ContactInformation" minOccurs="0" />
                    </xsd:sequence>
               </xsd:complexType>
               <xsd:complexType name="BusinessDescription">
                    <xsd:sequence>
                         <xsd:element name="GlobalBusinessIdentifier" type="xsd:string" minOccurs="0" />
                         <xsd:element name="GlobalSupplyChainCode" type="xsd:string" minOccurs="0" />
                         <xsd:element name="businessName" type="businessName" minOccurs="0" />
                         <xsd:element name="NationalBusinessTaxIdentifier" type="NationalBusinessTaxIdentifier" minOccurs="0" />
                    </xsd:sequence>
               </xsd:complexType>
               <xsd:complexType name="PurchaseOrder">
                    <xsd:sequence>
                         <xsd:element name="AccountDescription" type="AccountDescription" minOccurs="0" />
                         <xsd:element name="comments" type="comments" minOccurs="0" />
                         <xsd:element name="ContractInformation" type="ContractInformation" minOccurs="0" maxOccurs="unbounded" />
                         <xsd:element name="DocumentReference" type="DocumentReference" minOccurs="0" maxOccurs="unbounded" />
                         <xsd:element name="FinancingTerms" type="FinancingTerms" minOccurs="0" maxOccurs="unbounded" />
                         <xsd:element name="generalServicesAdministrationNumber" type="generalServicesAdministrationNumber" minOccurs="0" />
                         <xsd:element name="GlobalGovernmentPriorityRatingCode" type="xsd:string" minOccurs="0" />
                         <xsd:element name="GlobalPurchaseOrderFillPriorityCode" type="xsd:string" minOccurs="0" />
                         <xsd:element name="GlobalPurchaseOrderTypeCode" type="xsd:string" maxOccurs="unbounded" />
                         <xsd:element name="governmentContractIdentifier" type="governmentContractIdentifier" minOccurs="0" />
                         <xsd:element name="installAt" type="installAt" minOccurs="0" />
                         <xsd:element name="isDropShip" type="isDropShip" />
                         <xsd:element name="OrderShippingInformation" type="OrderShippingInformation" minOccurs="0" />
                         <xsd:element name="ProductLineItem" type="ProductLineItem" maxOccurs="unbounded" />
                         <xsd:element name="proprietaryInformation" type="proprietaryInformation" minOccurs="0" />
                         <xsd:element name="requestedEvent" type="requestedEvent" minOccurs="0" />
                         <xsd:element name="requestedShipFrom" type="requestedShipFrom" minOccurs="0" maxOccurs="unbounded" />
                         <xsd:element name="SecondaryBuyer" type="SecondaryBuyer" minOccurs="0" />
                         <xsd:element name="shipTo" type="shipTo" minOccurs="0" />
                         <xsd:element name="TaxExemptStatus" type="TaxExemptStatus" minOccurs="0" />
                         <xsd:element name="totalAmount" type="totalAmount" minOccurs="0" />
                    </xsd:sequence>
               </xsd:complexType>
               <xsd:complexType name="AccountDescription">
                    <xsd:sequence>
                         <xsd:element name="accountName" type="accountName" />
                         <xsd:element name="AccountNumber" type="xsd:string" minOccurs="0" />
                         <xsd:element name="billTo" type="billTo" minOccurs="0" />
                         <xsd:element name="CreditCard" type="CreditCard" minOccurs="0" />
                         <xsd:element name="financedBy" type="financedBy" minOccurs="0" />
                         <xsd:element name="GlobalAccountClassificationCode" type="xsd:string" minOccurs="0" />
                         <xsd:element name="prePaymentCheckNumber" type="prePaymentCheckNumber" minOccurs="0" />
                         <xsd:element name="WireTransferIdentifier" type="xsd:string" minOccurs="0" />
                    </xsd:sequence>
               </xsd:complexType>
               <xsd:complexType name="accountName">
                    <xsd:sequence>
                         <xsd:element name="FreeFormText" type="FreeFormText" />
                    </xsd:sequence>
               </xsd:complexType>
               <xsd:complexType name="billTo">
                    <xsd:sequence>
                         <xsd:element name="PartnerRoleDescription" type="PartnerRoleDescription" />
                    </xsd:sequence>
               </xsd:complexType>
               <xsd:complexType name="PhysicalAddress">
                    <xsd:sequence>
                         <xsd:element name="addressLine1" type="addressLine1" minOccurs="0" />
                         <xsd:element name="addressLine2" type="addressLine2" minOccurs="0" />
                         <xsd:element name="addressLine3" type="addressLine3" minOccurs="0" />
                         <xsd:element name="cityName" type="cityName" minOccurs="0" />
                         <xsd:element name="GlobalCountryCode" type="xsd:string" minOccurs="0" />
                         <xsd:element name="GlobalLocationIdentifier" type="xsd:string" minOccurs="0" />
                         <xsd:element name="NationalPostalCode" type="xsd:string" minOccurs="0" />
                         <xsd:element name="postOfficeBoxIdentifier" type="postOfficeBoxIdentifier" minOccurs="0" />
                         <xsd:element name="regionName" type="regionName" minOccurs="0" />
                    </xsd:sequence>
               </xsd:complexType>
               <xsd:complexType name="addressLine1">
                    <xsd:sequence>
                         <xsd:element name="FreeFormText" type="FreeFormText" />
                    </xsd:sequence>
               </xsd:complexType>
               <xsd:complexType name="addressLine2">
                    <xsd:sequence>
                         <xsd:element name="FreeFormText" type="FreeFormText" />
                    </xsd:sequence>
               </xsd:complexType>
               <xsd:complexType name="addressLine3">
                    <xsd:sequence>
                         <xsd:element name="FreeFormText" type="FreeFormText" />
                    </xsd:sequence>
               </xsd:complexType>
               <xsd:complexType name="cityName">
                    <xsd:sequence>
                         <xsd:element name="FreeFormText" type="FreeFormText" />
                    </xsd:sequence>
               </xsd:complexType>
               <xsd:complexType name="postOfficeBoxIdentifier">
                    <xsd:sequence>
                         <xsd:element name="FreeFormText" type="FreeFormText" />
                    </xsd:sequence>
               </xsd:complexType>
               <xsd:complexType name="regionName">
                    <xsd:sequence>
                         <xsd:element name="FreeFormText" type="FreeFormText" />
                    </xsd:sequence>
               </xsd:complexType>
               <xsd:complexType name="businessName">
                    <xsd:sequence>
                         <xsd:element name="FreeFormText" type="FreeFormText" />
                    </xsd:sequence>
               </xsd:complexType>
               <xsd:complexType name="CreditCard">
                    <xsd:sequence>
                         <xsd:element name="cardHolderName" type="cardHolderName" />
                         <xsd:element name="creditCardIdentifier" type="creditCardIdentifier" />
                         <xsd:element name="expiryDate" type="expiryDate" />
                         <xsd:element name="GlobalCreditCardClassificationCode" type="xsd:string">

Similar Messages

  • How to retrieve the client IP address when Apache acts as a proxy for Tomca

    Hello,
    I am trying to retrieve the client IP address accessing the web
    services. Because Apache is our proxy for all requests, when I try to
    retrieve the client IP I always get the localhost IP: 127.0.0.1
    The following code returns the localhost IP:
    MessageContext msgContext = MessageContext.getCurrentContext();
    if(msgContext != null) {
    return msgContext.getProperty(Constants.MC_REMOTE_ADDR).toString();
    return "Unknown";
    From a servlet, obtaining the client IP address can be achieved using
    this code.
    String ipAddress = request.getHeader("x-forwarded-for");
    if (ipAddress == null) {
    ipAddress = request.getHeader("X_FORWARDED_FOR");
    if (ipAddress == null){
    ipAddress = request.getRemoteAddr();
    return IPaddress ;
    Any help is greatly appreciated.
    Thank you very much

    @ejp....
    thanks buddy....
    u made my world a better place to live.....

  • How to retrieve available (server)-IP addresses on a LAN

    Is there a method to get all/the available (server)-IP-address(es) on a LAN from the host program?
    As far as I understood the samples (e.g. in tcpex.llb) the host (or it's operator) has to know the IP-address of the server to start communication. However it would ease the usage of a host-program if all/the available server(s) could be selected e.g. from a list-box.
    I posted this question already yesterday with some additional explanations however couldn't find it in my "posted questions"-list. So I try again.

    You don't tell us enought about the type of "servers" you mean. Are these all LabVIEW programs? In this case it should be relatively easy for them to keep each other updated at regular interval, e.g. via UDP multicasts.
    Alternatively, your servers can announce themselves via a UDP packet to the subnet broadcast address and to a specific port.
    If these are servers with code not under your control, you need to probe them. This is not such a big deal on your private LAN and I don't think it will trigger IDS systems. Keep a short list of all possible server IPs, then try to connect at the specified port at regular intervals using a short timeout.
    Are you communicating with TCP or UDP?
    In the absence of firewall code, you can have 3 possible responses for TCP:
    (1) No response --> The server computer is down (or there is a stealth personal firewall running). You get a TCP timeout error.
    (2) Active rejections (TCP RST packet) --> The server computer is up, but the server program is not running. Nothing is listening on the target port. You'll get an error.
    (3) Accepted connection (SYN-ACK) packet. --> The server is up and listening for connections. The threeway handshake can be completed. No error.
    UDP is a bit trickier, because it is connectionless. Many UDP services are one-way. For example a syslog server just receives packets, it never acknowledges anything.
    It is easy to tell if the server computer is up, but the service is not listening. In this case you get an ICMP(3,3) response and an immediate error.
    If the service is listening, you either get nothing or a specific response, depending on the type of server. If you are waiting for return traffic, you'll get a timeout error in UDP read either way.
    (If you just want to check if the server computer is actually up, probe it on a unlikely high port that virtually guarantees an ICMP(3,3) response in the absence of a personal firewall program.)
    LabVIEW Champion . Do more with less code and in less time .

  • Unable to retrieve e-mail addresses that are in the server's address book

    Since I installed the new version of Firefox (4.0) I am unable to retrieve any of the e-mail addresses that are duly indicated in the server's address book.
    In summary, beforehand I could type the 1st letter of an e-mail address and Firefox would remember it and propose it upfront!
    What can I do to solve this issue please!?

    Hi gbman, sorry I missed your reply, I took someone out to a birthday dinner.
    A good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    1. Clear Firefox's Cache
    Firefox > Preferences > Advanced
    On the Network mini-tab > Offline Storage : "Clear Now"
    2. If needed, delete the site's cookies here
    While viewing a page on the site,
    Tools > Page Info > Security > "View Cookies"
    After clearing the cookies, reload the page and try logging in again. Does that help?

  • How to retrieve the Sapscript layout changes for a particular Transport request in development server after this Transport request so many requests created  ?

    Dear Abapers,
    I request the Abapers kindly reply for this blog
    I want to retrieve the sapscript layout changes for a particular transport request in development server after that many transport request created and moved to quality ? 
    I checked in SE03 transaction the transport request was there.  But I want to retrieve the existing transport request which is not moved to Quality?
    Is it possible to retrieve the existing transport request in development which is not moved to quality ?
    Like how we retrieving the programs using versions in development server,  In the same way I want to retrieve the sapscript layout in development server ?
    Thanks & Regards
    Muzeebur Rahiman.S

    Hi,
    There is no version management for SapScript or Smartforms .
    When you write "transport request in development which is not moved to quality" - was the transport ever released and exported from the development system? If yes, and if the "Transport files" are still available in "Transport directory" (or if the transport files were backed up and could be retrieved), the transport could be imported again. If the TR was not exported, you are out of luck, I believe...
    I would not recommend you do it on your own even if you happen to have enough authorizations (consult with Basis and/or Transport Admin, if you have one in your organization). I would not recommend that it's imported on a development system or QA system, even if the transport contains no other objects - only the SapScript form in question. Import it on a "sand-box" that gets overwritten by system copy from time to time... Once the transport is imported, you should have the old version of SapScript in that system and could analyse the changes and perform manual merge.
    cheers
    Jānis

  • I would like to ask how to retrieve Sever/Host IP address.

    Hello,
    I would like to ask how to retrieve Sever/Host IP address.
    sys_context('USERENV', 'IP_ADDRESS') returns client's IP address only, but what I want to acquire is Host/Server IP address
    Thank you

    This is why it is generally useful to mention the version of Oracle you are using, particularly if you are using a version 4 releases old...
    That said, you can probably still use the UTL_INADDR package
    SQL> select utl_inaddr.get_host_name( null ) from dual;
    UTL_INADDR.GET_HOST_NAME(NULL)
    DDBCJC01
    SQL> select utl_inaddr.get_host_address( null ) from dual;
    UTL_INADDR.GET_HOST_ADDRESS(NULL)
    192.168.1.107Justin
    Edited by: Justin Cave on Sep 29, 2008 10:54 PM

  • How to retrieve the vendor number during creation of Purchase Order?

    Dear SAP experts,
    For our Purchase Orders, during PO creation (t-code ME21 or ME21N) we want to achieve the following:-
    1) default the delivery address to our plant A address if the vendor is local and
    2) default the delivery address to our plant B address if the vendor is foreign.
    At the moment, we are trying to use the user exit enhancement "MMDA0001" to achieve the above.
    The problem is how to retrieve the vendor number from the screen so we could pass the vendor number to ZXM06U32 to check the ktokk field in LFA1 table in the whether the vendor is foreign or local.
    Thank you in advance.
    Regards,
    Alex

    u can do one thing, create 2 partner function, like 1 for local, and second for import vendor.
    or make 2 batch  n activate vendor batch and make mandatory field from SPRO. 
    then goto SHD0, and do one by one step. first time take 1st requirement and second time take second . like that make two variant .
    i dont know how much it will be helpful. bt i want to suggest smth like that only.
    or, go for ABAPER help
    thanks
    nisha

  • How to retrieve the java object in a proxy service in osb -- Plz help

    Hi all,
    I have a singleton java class which runs whenever the weblogic server gets started and store the output in its object. I need to access this java object from a proxy service in osb.
    We tried using java call out and retrieved that object but we couldn't know how to parse that object into XML.
    We are not sure of using the java call out in osb to solve this purpose because whenever we use a java callout, that particular java code will run which is not the case of singleton class.
    So kindly help us how to retrieve the java object which holds the output without running the java code every time because its already run and holding the output in its object.
    Regards
    Prabhu

    here the doc http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/userguide/context.html#wp1106656
    but I guess you are already at the stage of getting a POJO in a first Java Callout and passing the POJO to a second Java Callout, which should then return it to OSB as a XMLObject.
    My recommendation is to write a Java function which returns a XMLObject and uses a XMLCursor to populate it with the values of the POJO.
    An XMLObject returned to the OSB is automatically transformed in a "XML" variable (which in reality is represented as a XMLObject in the Pipeline context)
    Here some code sample:
    http://www.javamonamour.org/2010/09/how-to-create-xmlobject-using-xmlcursor.html

  • HELP! How te retrieve the last row in MYSQL database using Servlet!

    Hi ,
    I am new servlets. I am trying to retireve the last row id inserted using the servlet.
    Could someone show me a working sample code on how to retrieve the last record inserted?
    Thanks
    MY CODE
    import java.awt.*;
    import java.awt.event.*;
    import java.net.*;
    import java.io.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    public class demo_gr extends HttpServlet {
    //***** Servlet access to data base
    public void doPost (HttpServletRequest req, HttpServletResponse resp)
         throws ServletException, IOException
         String url = "jdbc:mysql://sql2.njit.edu/ki3_proj";
              String param1 = req.getParameter("param1");
              PrintWriter out = resp.getWriter();
              resp.setContentType("text/html");
              String semail, sfname, slname, rfname, rlname, remail, message;
              int cardType;
              sfname = req.getParameter("sfname");
              slname = req.getParameter("slname");
              rfname = req.getParameter("rfname");
              rlname = req.getParameter("rlname");
              semail = req.getParameter("semail");
              remail = req.getParameter("remail");
              message = req.getParameter("message");
              //cardType = req.getParameter("cardType");
              cardType = Integer.parseInt(req.getParameter("cardType"));
              out.println(" param1 " + param1 + "\n");
         String query = "SELECT * FROM greeting_db "
    + "WHERE id =" + param1 + "";
              String query2 ="INSERT INTO greeting_db (sfname, slname ,semail , rfname , rlname , remail , message , cardType ,sentdate ,vieweddate) values('";
              query2 = query2 + sfname +"','"+ slname + "','"+ semail + "','"+ rfname + "','"+ rlname + "','"+ remail + "','"+ message + "','"+ cardType + "',NOW(),NOW())";
              //out.println(" query2 " + query2 + "\n");
              if (semail.equals("") || sfname.equals("") ||
              slname.equals("") || rfname.equals("") ||
              rlname.equals("") || remail.equals("") ||
              message.equals(""))
                        out.println("<h3> Please Click the back button and fill in <b>all</b> fields</h3>");
                        out.close();
                        return;
              String title = "Your Card Has Been Sent";
              out.println("<BODY>\n" +
    "<H1 ALIGN=CENTER>" + title + "</H1>\n" );
                   out.println("\n" +
    "\n" +
    " From  " + sfname + ", " + slname + "\n <br> To  "
                                            + rfname + ", " + rlname + "\n <br>Receiver Email  " + remail + "\n<br> Your Message "
                                            + message + "\n<br> <br> :");
                   if (cardType ==1)
                        out.println("<IMG SRC=/WEB-INF/images/bentley.jpg>");
                   else if(cardType ==2) {
                        out.println("<IMG SRC=/WEB-INF/images/Bugatti.jpg>");
                   else if(cardType ==3) {
                        out.println(" <IMG SRC=/WEB-INF/images/castle.jpg>");
    else if(cardType ==4) {
                        out.println(" <IMG SRC=/WEB-INF/images/motocross.jpg>");
    else if(cardType ==5) {
                        out.println(" <IMG SRC=/WEB-INF/images/Mustang.jpg>");
    else if(cardType ==6) {
                        out.println("<IMG SRC=/WEB-INF/images/Mustang.jpg>");
    out.println("</BODY></HTML>");
         try {
              Class.forName ("com.mysql.jdbc.Driver");
              Connection con = DriverManager.getConnection
              ( url, "*****", "******" );
    Statement stmt = con.createStatement ();
                   stmt.execute (query2);
                   //String query3 = "SELECT LAST_INSERT_ID()";
                   //ResultSet rs = stmt.executeQuery (query3);
                   //int questionID = rs.getInt(1);
                   System.out.println("Total rows:"+questionID);
    stmt.close();
    con.close();
    } // end try
    catch (SQLException ex) {
              //PrintWriter out = resp.getWriter();
         resp.setContentType("text/html");
              while (ex != null) { 
         out.println ("SQL Exception: " + ex.getMessage ());
         ex = ex.getNextException ();
    } // end while
    } // end catch SQLException
    catch (java.lang.Exception ex) {
         //PrintWriter out = resp.getWriter();
              resp.setContentType("text/html");     
              out.println ("Exception: " + ex.getMessage ());
    } // end doGet
    private void printResultSet ( HttpServletResponse resp, ResultSet rs )
    throws SQLException {
    try {
              PrintWriter out = resp.getWriter();
         out.println("<html>");
         out.println("<head><title>jbs jdbc/mysql servlet</title></head>");
         out.println("<body>");
         out.println("<center><font color=AA0000>");
         out.println("<table border='1'>");
         int numCols = rs.getMetaData().getColumnCount ();
    while ( rs.next() ) {
              out.println("<tr>");
         for (int i=1; i<=numCols; i++) {
    out.print("<td>" + rs.getString(i) + "</td>" );
    } // end for
    out.println("</tr>");
    } // end while
         out.println("</table>");
         out.println("</font></center>");
         out.println("</body>");
         out.println("</html>");
         out.close();
         } // end try
    catch ( IOException except) {
    } // end catch
    } // end returnHTML
    } // end jbsJDBCServlet

    I dont know what table names and fields you have but
    say you have a table called XYZ which has a primary
    key field called keyID.
    So in order to get the last row inserted, you could
    do something like
    Select *
    from XYZ
    where keyID = (Select MAX(keyID) from XYZ);
    Good Luckwhat gubloo said is correct ...But this is all in MS SQL Server I don't know the syntax and key words in MYSQL
    This works fine if the emp_id is incremental and of type integer
    Query:
    select      *
    from      employee e,  (select max(emp_id) as emp_id from employee) z
    where      e.emp_id = z.emp_id
    or
    select top 1 * from employee order by emp_id descUday

  • How to retrieve the parameter names from a JSP page ? Urgent Please

    Hello,
    Can anybody tell me how to retrieve the parameter names from the JSP
    page. (without using getParameterNames() method.)
    The problem with the getParameterNames() method is I get the Jumbled output.
    I need it very badly
    With regards
    Ananth R
    email:[email protected]
    [email protected]

    Dear duffymo,
    My primary intention is to convert the JSP form information into a XML file.
    If I do not get the Parameter names in the correct order how can I maintain
    tag order in XML file.
    For ex: (JSP PAGE VIEW)
    Name--
    FirstName
    MiddleName
    LastName
    Address--
    Street1
    Street2
    City
    Country
    &so on
    (XML File to be generated)
    <Name>
    <FirstName>Value</FirstName>
    </Name>
    <Address>
    <street1>value</street1>
    </Address>
    & so on
    If I use getParameterNames() to get all the parameter names(Which form the tag names in the XML file ) the Enumeration object it returns will not be in the same order as the text fields in JSP.From this I can not construct a meaningful XML file.
    order means: Order of entry on the page, from top to bottom
    That's it
    Waiting for your responses

  • How to automatically detect server ip address

    does any one know how to automatically detect an ip address of a server from the client with a socket based connection ?
    instead of prompting the client to connect to the server ip address which is trouble some.

    You must start with some initial information and a known environment.
    There are several possibilities after that.
    - The server has a 'name'. This is not an ip address but a name like "yahoo.com". When you connect using that, even if the IP changes, the correct IP will be returned. (At least ignoring an annoying bug in some VMs)
    - A specific IP address
    - Use a methodoly to 'request' a server address. One version of this is to use a UDP broadcast another version uses a service manager (which itself must be found.)

  • How to retrieve the Authentication Policy Responses?

    In my OAM server(OAM 11.1.1.5), I configured a Response in authentication policy to retrieve the user information after user signed in, the response item named "UserID", value is "$user.userid", type is "Cookie".
    My question is:
    If I use the WebGate , I will got the response items after user signed in. But I need to develop an Access Gate use the ASDK to replace the WebGate, I don't know how to retrieve the Response items by the ASDK.
    Below is the access log captured by Fiddler, "http://auth.mydomain.com/login.aspx" is my customized login page.
    -----------------------------Web Gate 10g (IIS)----------------------------
    GET http://alan-hu.mydomain.com/oamtest/index.aspx HTTP/1.1
    Accept: application/x-ms-application, image/jpeg, application/xaml+xml, image/gif, image/pjpeg, application/x-ms-xbap, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
    Referer: http://auth.mydomain.com/login.aspx?authn_try_count=0&request_id=6476845472436935518&OAM_REQ=VERSION_4%7EFC5cvGlDZbKLQVbcnbvJSmtBw163LKRGyryAQ8b3CvEpVzVXpqqVE3Nbdcf3K7J957wIyP1d%252bEHNaC92smcnXnYxZr7xSfW8eNMU9NlFRnCUoNBTNXR6jZr8Ug8zqnSau5U%252bEnlInxHudS%252bTzD%252bUy5E9qUfX6lySlHfesJbBBH2yubEJ%252fJVrjbetqv5L295D1mhF%252f7VKyTED%252fAOv2LaVjT7Mi9PGkKDwGkZy9Th5vKVCvT58V%252fEYEgWqawE2LUv%252fb9nh7mdP5gRGBcoDpIeqXWo1F9G767%252feG9vPxM7jZRlGWcMKuYQYSn1oTg%252fL1KBE0KW2EJPvOiBpsplU7e0BvbqWgoSR8ctora%252fj2DHbHZh7m2k1GulUeBRiF3MKbY8XulBEtOYIuc02qVNhlQg2XAHOOk%252bqQ1Z6oua3DWH0aru6jnlFNpsTx6Rk2Q4WHAhXqKPzTwjtVHLgs%252b7Fb32D2Ncz%252fQqx%252b%252bfRtK9yS4YSNcoA3AmF15HoHgFd0lXQzUuQzxsDiho5S6GRc5QY2UvTz%252fsoC0Osismkd%252bUx0yZtxeFJrqA1%252f%252b9eeN%252fEFLMes2%252bxn7jxDP9ahl%252bDKaF9GdypVNZAKSdxSdUKcVCWHneHRRRtqdW8jcUEcTzohuCdCOvEgETz%252fksM7nsFHq01GHakc8174sXvcEE1l1jvsPy8f1CBf75DtguanLVIfenmUEp7kcRhe1vIgiBxmNefuhMKhLV%252fW%252fveJgnuMtWZ%252bgc2Yr%252bYFL5Qe9yz3Zz0Zn2d4PAzZWiS9teBrLqzAk6dU5dM9JTGdthstrhwjovP96J252mAGrRjo%252fFWTByyfrXYoQzETxV8QCDl8kDWaCsZl6V3Ahm94gDcTQrW8MYK8PJDlkUlnVtRtaDevrv4%252fQY%252bFvo78W1iKYM9v9O%252fu0EgPqyOJBg%252fYsBC5fI4VV7OvLZ1YoPb2v6IsepN9avD8nTB6B%252f5ZW0z1IxocptShWgjb5fMrDclA%252fEqgShz0QXzkoOa80cqLu%252bNEG7aUHQQXhZEG42zCN0NaJZbENpksK5ZyKo8U92KdjdSgHeUsFbWA0jZ%252b5nIIYHtesLFwoRZw%252f%252bbceyXAG8%252b6LMjJWYsRpl8bKKJejnOIvzM1dlY7PQ%252bf8eCtGxPkCaCa%252bkuJUkhHcK%252bsS5T2JMyocrBj0hIZsBXiWIrtmGr5h%252bbQIT8TdTfVCmUiv3zBRgDSvQqpJ3hAFc0NIk6zJS%252bPxSquhuYIH15G7zeN%252faW3sRecDpH8%252bFqa7HsT7xDukI2c6Ro3x7Bvp5MBEBSITibP41PJo7f5kPP6wFIk3rMpsC9r7zsSU0pzN3RvWn5M5gNyQ4EZVuwYMFCfgIAjRKRcNUWHebwSMxsOhwrsYESNfA9rFYxtOapzvIcx63B%252baR%252bsQXHI%252fQ4eoP2VBkkCOktummpQ41bDC6elI5LhFrAlSwCT5qv4ytCSBRan6OfMZ%252bLSA5J%252fkFtTvx2aNbV&locale=en_US
    Accept-Language: en-US
    User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
    Cookie: ObSSOCookie=NQqPNA%2BvLoyIujMLO%2F3VWalLMpFbnK6IW4uvEl1piC8hoQVQw%2FqGbDdkVg%2BDDcx1O7YeJhFVYinyJtKF8vI3VTQ%2BL3StaWFRZFLl7KqHnQEqdNVgkn4FCfx49t2KzXNQ%2FxLBkF0olHoNU1P01VTMOdQsq4hzdc6C0B7X6PM9hoaVGWvVmsbUKr5BmqWBG0aHbT1HXgNKlVsDimyz2Q9iy%2Briiu8%2B7x190rm8PTm3uXqEUqs4zuvOSdjZGs77uUFzeYnEzQb6T9gcZqyUvo8OtXqnmrUtPwdva8UrV9GlUkymsWDDtNk3iIqapLxQL1oXHO0iH2KXzXfUAcnQca%2BfNw%3D%3D
    Accept-Encoding: gzip, deflate
    Connection: Keep-Alive
    Pragma: no-cache
    Host: alan-hu.mydomain.com
    HTTP/1.1 200 OK
    Cache-Control: no-cache,private
    Pragma: no-cache
    Content-Length: 649
    Content-Type: text/html; charset=utf-8
    Set-Cookie: UserID=TEST; path=/
    Server: Microsoft-IIS/7.5
    X-AspNet-Version: 4.0.30319
    X-Powered-By: ASP.NET
    Date: Thu, 05 Jul 2012 08:14:13 GMT
    -----------------------------My Access Gate (IIS)----------------------------
    GET http://alan-hu.mydomain.com/oamtest/index.aspx HTTP/1.1
    Accept: application/x-ms-application, image/jpeg, application/xaml+xml, image/gif, image/pjpeg, application/x-ms-xbap, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
    Referer: http://auth.mydomain.com/login.aspx?authn_try_count=0&request_id=-8854367975480028914&OAM_REQ=VERSION_4%7EslyJg6j%252fLhjd%252b%252b%252fAFDpFiRr4cPvaT3dU90HILcJWiqxptP4dV%252fNkm4eAzVOznnJmtFh8SNMg4G5K2IuCABhCNxJuFau4XUgfRJtQl03anU6YgU1U%252fc3nRevxNFTZ8bIGALMXNiGbtnNO7c9WRUy%252bekw7T5YidA2qr103PNQD0g36jKosUb2aT2kOYJ0HoZizyW%252bCeI2ARhjuqB4Kc0Kfv%252fHuZCCwcUychXY5cGDlcD2UVl9YRwEGBdcYnweNbps18LqmQNm0%252fJYh2XwW80hNKqRBQBGPUCrYP8A0XIF2%252bUFvViDfqcuK05n0vv5NErxih%252bgtZKRObD6pHsnLOd2a19jUU%252fsFaFYQ0n5UdTN0JSx8yFtvEjdwXKya2PGqKqHa2JzEXhLBXTP5eC4EavAwAMbVRVtNTle%252fU29tDOuUtb1NLTBsqI63ipchzUvouQ6QREcybIXErAMX06X9gpwEtMBXYCppIiV%252b67XpETVzcmMuOl%252bSj9Aha6AKy3yPYlEOTA0o5HqOMe2NTu2sSvJxUJJW0ZYXvqkprkWsaw5SBACH473KY7WS0kqUIiV7UoN60cRdT9I3fAdyuLzWDS7dhGKKTstmpTxClQQNlw7XcDfdczqJJBRSwbZQyomnSPRcO%252f%252f5EY56wSXMJLv5WDkfb3RC4Va5rzXeQn1McihExvrymn6ztZ2A6zZso%252b0jDObEa%252bWioCBinvdK%252bF85qk8ai%252bLal30b27oNzFHKc1AELQ7eP%252bkoyXDYQpVeHfX9ujHGAcEdN4FTGyxBoIohbQb%252fEvl3uEga%252fsufBa%252fVcFVM8WTI59kUSOCKankogv9ABry7CxYByZURjjloQp1CZif%252fuN1ddg5yGMuqmvY7OFz8BIT8mm%252b0klysXJbcneztKbVm2njffvj29gardyyFZ1%252fXDPqMJM1OKVcughERRZW%252fHbBFZ5h%252fupGqhgXaNXZGoeg%252bm8iaAXqrxRIg7NHmK7VnEtIV2qo4iDYWl%252fmf09eJJHMrhhQNRLjV5drgiIwGuPZWVC4irUhXBOPixks8StHx0c0TV%252boIRPxiyupLJKzdlE0SBjplC1%252ffMjiVgQGqZ2zena7601QT89vmuU%252bkO1NoAnN8iwZNF1dT45RDbfg8TLcK1C0CGb29eN7dbwBtbgnAAOXX8F421RTSv9W6UAn%252bttP%252fr2teYO8eXOwFkGMrGkdxdt%252b7%252fj9oH1nJ92Mviv5fiuxhnx9ukvyjQdkdGl0gnGVehnDIQODIXEG0EmEo9%252fJtQkNjgwLlKvTK5bcqIg0Kez27GqEKYhNc4XRsuYsfPQ2byH%252bnnsSDz%252bOLo43ub8vZ7XNWjMtQrNUpfbOwmw5jhfPsU9E2xgYTHGvDdbKBrLXgxQrO%252fSflCzRPhpc5gE9zOOFkCskHxy%252b%252bI8zyJFT7lEaIhz6WgXa5nk3An%252b9yukw2YkoFe1WB%252bfZsgdr%252fq%252b%252blUqjfUf1G5lHDUjODh0qh&locale=en_US
    Accept-Language: en-US
    User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
    Cookie: ObSSOCookie=fhyRb/mqqsz1Tk7Ma3aAvuTmisrarOveqR1FWPkCOKcMG860oQ/V/trZzor0ZPZs4lOl3yHvf83Jj1ahsffCMIueaSlJqHoBZPFB+uLlof9KV6OzyztVzLaxUql/qddGnzajvRs0ti9vKx84AsnMEbZwTcYdf8CNesOh5aSSgz4r6U2D3/rWaT/s1h7vda9rUhD7McjybboHWThM1sKVUGmDFJBA3XdXpwCbG+L35yw5NdablTgB8KOCaAiYDSNsbRkDRluzAxrwD9r/glEq9xI7X3fQ+t40PEQ/sIVFAy+BH6fqXUUEN6D8sc3GKt5RxxTzNzaHLoczlLyakAainQ==
    Accept-Encoding: gzip, deflate
    Connection: Keep-Alive
    Pragma: no-cache
    Host: alan-hu.mydomain.com
    HTTP/1.1 200 OK
    Cache-Control: private
    Content-Type: text/html; charset=utf-8
    Server: Microsoft-IIS/7.5
    X-AspNet-Version: 4.0.30319
    X-Powered-By: ASP.NET
    Date: Thu, 05 Jul 2012 08:29:41 GMT
    Content-Length: 649

    Summary:
    1. The Responses of Authentication Policy will be retrieved after user just signed in:
    ObConfigMgd.initialize();
    ObResourceRequestMgd rrq = new ObResourceRequestMgd("http", "//alan-hu.achievo.com/oamtest/index.aspx", "GET");
    ObDictionary creds = new ObDictionary();
    creds.Add("userid", "test");
    creds.Add("password", "Tt1234");
    ObUserSessionMgd session = new ObUserSessionMgd(rrq, creds);
    ObDictionary actions = session.getActions("cookie");
    ObConfigMgd.shutdown();
    2. The Responses of Authorization Policy will be retrieved after execute the ObUserSession.IsAuthorized() method:
    ObConfigMgd.initialize();
    ObResourceRequestMgd rrq = new ObResourceRequestMgd("http", "//alan-hu.achievo.com/oamtest/index.aspx", "GET");
    HttpCookie ObSSOCookie = Request.Cookies["ObSSOCookie"];
    string sessionToken = ObSSOCookie.Value;
    ObUserSessionMgd session = new ObUserSessionMgd(sessionToken);
    if (session.Status.IsLoggedIn && session.IsAuthorized(resource))
    ObDictionary actions = session.getActions("cookie");
    ObConfigMgd.shutdown();
    -----

  • TS1307 My email won't send as when it was set up an extra letter was accidentally inserted in the address. I need to know how to remove the entire email address and start a fresh.

    My email won't send as when it was set up an extra letter was accidentally inserted in the address. I need to know how to remove the entire email address and start a fresh.

    Launch Mail.app, select Mail > Preferences... > Accounts and select the account you need to edit in the left column.
    The receiving information will be displayed for the selected Account, with a pop-up selector for the Outgoing Mail Server (SMTP) toward the bottom.  That selector shows which mail server will be used with this account; to send mail. 
    Click and hold on that selector, and scroll down (holding the mouse or trackpad clicked) to Edit Mail Server List... and you'll get a sheet dropping down with the mail servers listed. 
    Select the problematic mail server, and edit it using the Account Information and Advanced items on that sheet.

  • How to retrieve the content of the indexed column

    In Oracle UltraSearch, how to retrieve the content of the file in the indexed column cache_file_path.
    we try the flowing sql
    SELECT cache_file_path FROM mytable
    WHERE contains (mytable.cache_file_path, 'viet', 1) > 0
    but we only have the cache_file_path column, not the content of the file were indexed.

    I think this is what you're looking for:
    DECLARE @table TABLE (amountPaid FLOAT, datePaid DATE, memberID INT)
    INSERT INTO @table (amountPaid, datePaid, memberID) VALUES
    (10.00, '2014-01-01',1),(10.00, '2014-02-01',2),(10.00, '2014-03-01',3),(10.00, '2014-04-01',4),(10.00, '2014-05-01',5),(10.00, '2014-06-01',6),(10.00, '2014-07-01',7),(10.00, '2014-08-01',8),(10.00, '2014-01-01',9),(10.00, '2014-10-01',10)
    SELECT *
    FROM (
    SELECT *, SUM(amountPaid) OVER (ORDER BY datePaid ROWS UNBOUNDED PRECEDING) AS runningTotal, ((SELECT SUM(amountPaid) FROM @table) / 100) * 50 AS percentileAmount
    FROM @table
    ) x
    WHERE percentileAmount >= runningTotal
    It depends upon SQL Server 2012's windowed functions. It would be possible to also do this with a rCTE in earlier versions.
    Giving your code an eyball, I think I see what it's doing. Unfortunately, I'm stuck using 2008 R2, so I don't have access to UNBOUNDED or PRECEDING. I'll have to research rCTE - I know what a CTE is, but not the 'r' prefix.

  • How to retrieve the admin console password

    hi,
    How to retrieve the password for the admin console. I have forgotten it. I am
    using 8.1
    Thanks
    Ashwani

    Hi,
    I don't know of a way to retrieve the administrators password. Are you sure there
    is one? I know how to change or reset it from the command line. Then you'll
    know what it is :)
    I did the following:
    %JAVA_HOME%\bin\java -cp %WL_HOME%\WLS\server\lib\weblogic.jar weblogic.Admin
    -adminurl localhost:8301 -username system -password patbumpus invoke -mbean Security:Name=myrealmDefaultAuthenticator
    -method changeUserPassword system patbumpus password
    You can also try -method resetUserPassword and you don't have to know the original
    password.
    There is a problem with changing the administrator's password. You need to update
    the boot.properties file in the domain directory as well which you can do in a
    sed script. If you don't, then the server won't boot. Also, there might be issues
    with changing the administrator's password and then being able to start managed
    servers. I had a problem, but didn't investigate enough to rule out user error.
    This is supposed to be all fixed in WLS 9.x.
    I know that I didn't answer your question, but maybe something was useful.
    pat
    "Ashwani Kalra" <[email protected]> wrote:
    >
    hi,
    How to retrieve the password for the admin console. I have forgotten
    it. I am
    using 8.1
    Thanks
    Ashwani

Maybe you are looking for

  • How to install Oracle 9i on WIndows XP 64-bit?

    I downloaded Oracle9i Database Release 2 Enterprise/Standard/Personal/Client Edition for Windows XP 2003/Windows Server 2003 (64-bit) from the web site. I run Windows XP Professional x64 version 2003 Service pack 1. When I am trying to run setup I am

  • Creative Cloud Desktop wont install on Windows 7

    Creative Cloud Desktop won't install on Windows 7 64 Bit. I have tried severall times now without success - this does not inspire confidence Adobe

  • How to make previous chat history visible in new window

    Hi people, Recent Windows convert here. I am a loyal user of Trillian, and one of the things I love about Trillian is that when a new chat window comes up, the log from the previous conversation is visible within it. So, to illustrate, it's a bit fru

  • How to display JPEG in JSP w/o IMG tag?

    I have a working application where a jpeg image is ecoded on the server via a JavaBean. The bean is then forwarded to a JSP, which gets the unique jpeg filename from the bean and displays it with an html <IMG> tag. All's fine and well, but I'd like t

  • Help with a contact form script

    I have this contact form but it doesn't send the email this is the page www.vonhaucke.mx and the script for contacto.php is: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>.:vonhaucke:.</tit