Some substring doubts

Hi all!!
I am almost finishing my app, but i have a line like below:
[2003/12/09 16:43:48.165] [info] br.com.organox.web.aggregator.servlet.struts.action.AddContentAction: User 'INEXIST' with session 'ax1zjd8yEeHh' added content '769' with uri 'http://mail.yahoo.com/'.
where i need to get the User (INEXIST in this case), the session (ax1zjd8yEeHh) and the action (added content '769' with uri 'http://mail.yahoo.com/'. In this case)
how i must proceed? I�m getting some wrong results using substring
Thanks

You gotta love regex...
String test = "[2003/12/09 16:43:48.165] [info] br.com.organox.web.aggregator.servlet.struts.action.AddContentAction: User 'INEXIST' with session 'ax1zjd8yEeHh' added content '769' with uri 'http://mail.yahoo.com/'";
String pattern = "^.*User\\s'(\\w+?)'.*session\\s'(\\w+?)'\\s(.*)$";
Pattern p = Pattern.compile(pattern);
Matcher m = p.matcher(test);
if (m.find()) {
    String user = m.group(1);
    String session = m.group(2);
    String action = m.group(3);
    System.out.println("User:    " + user);
    System.out.println("Session: " + session);
    System.out.println("Action:  " + action);

Similar Messages

  • How can i call Web page  from my Forms 6 and Some other doubts.

    Dear friends,
    I am having the following questions and doubts ..If you can share some information with me it will be greatly useful to me..
    Q1. I am using Dev Forms 6i. Can we call a Web Page form from the Developer Form directly with the press of a button..(eg. When button Pressed trigger..? )If so, what the requirement to do so. My database is Oracle 8i
    Q2. How can we send email from a Form picking the address from our Oracle Database..? I have installed only Oracle 8i and Forms & Reports 6i. Anymore has to be installed for this work?
    Q3. Do you know any GIS package that can be integrated with Oracle so that we can know the Latitude and Longtude of a lcation if we give an address..? and what can be done for this purpose.
    please revert with the info...
    Sincerly
    Sajith
    12100 Beech Forest Road,
    Laurel, MD 20708, USA
    Phone : (301) 497-5816
    Cell : (301) 693-6767
    Email : [email protected]

    Here is code I used to send an email from Form 6.0 through Outlook 2000 on a PC. I don't know the answer to you rother questions.
    PROCEDURE maily (p_to_address VARCHAR2, p_cc_address VARCHAR2 DEFAULT NULL, p_subject VARCHAR2, p_message VARCHAR2) IS
         objOutlook OLE2.OBJ_TYPE;
         objMail OLE2.OBJ_TYPE;
         objArg OLE2.LIST_TYPE;
    BEGIN          
         objOutlook := OLE2.CREATE_OBJ('Outlook.Application');
         objarg := OLE2.CREATE_ARGLIST;
         OLE2.ADD_ARG(objarg,0);
         objMail := OLE2.INVOKE_OBJ(objOutlook,'CreateItem',objarg);
         OLE2.DESTROY_ARGLIST(objarg);
         OLE2.SET_PROPERTY(objmail,'To',p_to_address);
         OLE2.SET_PROPERTY(objmail,'Cc',p_cc_address);
         OLE2.SET_PROPERTY(objmail,'Subject',p_subject);
         OLE2.SET_PROPERTY(objmail,'Body',p_message);
         OLE2.INVOKE(objmail,'Send');//Use display to display the email instead of sending it, or save to save in the outbox
         OLE2.RELEASE_OBJ(objmail);
         OLE2.RELEASE_OBJ(objOutlook);
    END;

  • From AE to SWF : some general doubts

    Hello,
    I have made a little project with After Effects CS3 : some animated text who 'jazz' for about 4 seconds and then turns to its original position.
    In order to upload it to my site, I exported it into .swf format, and all worked OK, even if the size is quite big (which doesn't put many problems by now).
    I located the files in the correspondent folder, and paste the code AE provided me with into my html file.
    I have from there on several doubts:
    - the code have an "if" statement trying to assure the user will be owning a determinated script : AC_RunActiveContent.js. Why is it important ? In which case the user would be without it, or avoiding its download ?
    - I see, below that first part of the code, a second one : a "noscript" html tag, which seems to provide with an alternative, embedding the video as an 'object'. The video seems resized (argh). Are there more inconvenients beyond that one ?
    - Finally, a very basic question : as it seems to be this two posibilities (javascript vs. flash player + video), what if the user don't have a flashplayer (or an adequated version) ? Will he see the typical dialog asking for a download ?
    And that's all. Thanks very much if someone can clarify me out how to deal with this !

    You are worrying too much. Scripts are automatically downloaded, so the user does not need to worry. You need of course put them on the server along with your main content. The rest is pretty much standard procedure for "good conduct". The noscript and object tags merely serve as a fallback option, if e.g. ActiveX has been disabled or Java is being suppressed/ not correctly installed. And yes, of course they should at least trigger a warning to enable the functions or download the latest version of Adobe Flash Player...
    Mylenium

  • New Mac Pro 2013: some premature doubts...

    Hi all!
    The New Mac Pro seems really cool, but I have some doubts:
    1) will it have just One processor? In terms computation speed, present Mac Pro is not the best on the market: doubling it, will Of course ne interesting, but not "incredible";
    2) adopting just One proc will limit the number Of cores to the maximum amount Of a single E5 (8?): that's not that much;
    3) just 4 RAM slots? So the Max RAM would be 64 GB...
    If this is the hardware, it will not be suited for massively-parrallel computation...
    I think (and hope) Apple will provide a 2-core Mac Pro like nowadays!!!
    What do You think??
    Best
    H

    One cpu with up to 12 cores, not two.
    For now 64GB. Every time Apple rolls out a new Pro they under spec RAM (and don't change the support pages).
    OWC and others are working on testing but the format docs do say that 10.9 will now support a full 128GB ($$$ for 4x32GB DIMMs)
    E5's that support the higher clocked DIMMs may not be available except in labs and engineering.
    10.9 does support 4x16GB (the 5,1 do not / did not, only 3x16) and that seems to be a firmware thing right now - you need to change the cpu daughter card (not happening likely) or the DIMM's firmware (maybe) or patch in the kernel (very possible and why 10.8 support for 96GB came and went).
    So yes if you want 4-way / 24-48 core cpu and 256GB RAM you need to look elsewhere.
    But a single cpu w/ 12 cores is more effecient, less latency, no need QuickPath or peeking or snooping or predictive memory addresses, 24MB L3 cache, and shuffling from one bank to another, from cpu A to cpu B (about 30% hit or 2nd cpu was only in some cases adding 70% to the task at hand).
    Could dual AMD be using a CrossFire-X? that would make sense, yes?

  • Some BOne Doubts

    Hi All,
    We are planning to do some scenarios which are of the form
    SAP R/3 <-> SAP XI <-> SAP Business One
    The scenarios are,
    1. Whenever a PO is getting created it should post some data
       to R/3 via XI.
    2. Goods issue (R/3 to BOne)
    3. Invoice (R/3 to BOne)
    For these need some basic clarifications,
    1. How BOne can send or receive data from or to SAP XI/any other system without using B1Integrator ?
    2. Where we will updating the info ? Are we retreiving data directly
       from the database of BOne ?
    3. What structure BOne will use for PO,Invoice,Delivery,etc
       ie in R/3 we have IDOC structures. Similarly do we have any structures
       in BOne ?? From where we can get these structures ?
    Any help will be appreciated.
    Thanks & regards,
    Chemmanz

    This is a question regarding B1 Integration. Pls post
    it on this thread:
    SAP Business One Integration Technology

  • Some typical doubts

    Hi All,
    I have developed prototype . When I am implementing this one
    , getting lot of doubts.
    1. How to pass hidden variables using flex.(In jsp we pass it
    throuth hidden field, is there any mechanism similar to that one)
    2. How to handle exceptions in flex ofcourse we get excptions
    at server side, Suppose if I get any exception I want to
    disply/forward to new screen showing this exceptions / errors.
    3. How to do session handling in Flex.
    I am trying to implement prototype both based on FDS and
    HTTPService. I want to check performance, integration of flex with
    our own framework. After that we decide which I mean httpservice /
    FDS.
    So how can I do above things using FDS and without FDS.
    I am not excepting answers to all questions. Anybody suggest
    me to solve these issue / issues . Really I will be greatful to
    them.
    Thanks & Regards,
    Siva Kumar

    I think you are getting confused by comparing flex
    development with jsp serverside development, its completely
    different thing,
    1. How to pass hidden variables using flex.(In jsp we pass it
    throuth hidden field, is there any mechanism similar to that one)
    -- honestly, where do you really want to pass hidden field to
    ? (hidden fields is a hack implemented to overcome the way http
    protocol works , in flex you don't need that hack) .
    2) you can implement exception routine same way (even easier
    in flex) if error occures show this and this page(for example error
    canvas. with error mesage thats it,
    3) How to do session handling in Flex.
    -- question is too vague, do you ave concrete problem that
    you think of?

  • Some typical doubt from a beginner

    Hello Gurus,
    I am currently working as a support Engineer for Microsoft. But I am planning to move into SAP. I am very good in Windows Server and desktop technology and have started learning SAP too. But I am very much consused as to what to study and how to make a framework to acheive my goal. Which module to take up.
    One of my friend suggested me to go for Basis, but here in this forum I do not find anything related to BASIS. I stumled into this Netweaver administration so posting here.
    Please give me some basic idea bout proceeding towards my goal. Let me know about BAsis and Netweaver and WEb AS. I will be very grateful.
    Thanks
    Ajay M

    Hello Ajay. 
    I am in the process of moving from Microsoft development/support to SAP Administration.  I recently completed the SAP courses "SAPTEC" and "ADM100", and I'm now working as a Jr. Basis Admin.
    Basis is now a part of Web Application Server and Netweaver, but is still referred to as Basis in some contexts.  The Basis technology is not going away, it has just been expanded upon.
    "SAP Web AS is the logical result of further development of the SAP Application Server Technology (formerly also known as SAP Basis), with particular attention being paid to Web-based application."  -SAPTEC Course Materials
    "SAP NetWeaver is the technological infrastructure for all SAP solutions."  -SAPTEC Course Materials
    Also see:
    http://searchsap.techtarget.com/sDefinition/0,,sid21_gci765096,00.html
    http://wiki.ittoolbox.com/index.php/SAP_Basis
    See the official SAP classes for Administration at http://www.sap.com/usa/services/education/catalog/netweaver/administration.epx
    Also see this short thread: http://www.experts-exchange.com/Database/Software/ERP/SAP/Q_23026983.html
    Most SAP solutions run on Unix OS and use Oracle DB, so you may need to study those technologies also.
    Others can offer their insight and advice.

  • Some Interview doubts......

    Hi Gurus,
    Please clarify the below mentioned queries:-
    1) can we use line item dimension and aggregates on the same InfoObject.
    2) can we create direct and flexible update for one InfoObject.
    3) How to add text to existing masterdata.
    4)  For memory allocation error what we will do
    5) For creation of Generic extractor through function module what are the check points going to check in R/3 side.
    6) 10 conditions and one exception can we use together in a report. by this any performance  issues....
    7) How to create virtual K.F. and where to place and how values are populates to this...
    8) How to use Transtive attributes in query level --explain me step by step and how data populates to Transtive attributes...
    9) How to set delta for Lo extractors in LBWE IN R/3 SIDE---step by step after init runs in bw side
    10) If delta fails How to get the Historical data of the same for 5 days....How the delta pointer will secure,,,,,
    Thanks in advance for your help.
    compulsory I will assign the points.
    Thanks & Best Regards,
    Kumar.

    Hi,
    1.we can use line item dimesnion and aggregates on the same info object. But If you are dealing with a line item that has many characteristic values, the aggregate can become as large as the InfoCube. This means that there is probably no advantage in having an aggregate in this case.
    2. For characteristics, attributes or texts, a combination of flexible and direct updating is only possible for different source systems.
    3. Just goto the corresponding Info object screen and u need to enable the check box called With texts.
    4. U need to inform BASIS to increase the table space.
    5. U should make clear whether the Delta is based on Timestamp, Calendar day, or Numeric pointer and u have to make sure about the Safety interval limits.
    6. we can use, not sure about the performance issues..
    7. Virtual key figure is a run time dynamic.A special case in which the option Using Cache Despite Virtual Characteristics/Key Figures could be useful, for example, is the use of a variable for a virtual characteristic with which the end user in reporting can select constants as the basis for currency translation types. SAP enhancement is: RSR00002 .There is a good How to document in SDN..u can check that.
    8.Not sure...
    9. after the set up tables, next delta is going to populate based on V1 /V2/V3 update, V1 is synchronous update, V2 is Queued delta, V3 is Unserialised Delta.
    10.u can one option as repeat delta,

  • Some bw doubts

    Dear BW Gurus,
    1. The [Preview] button in the infopackage's external data tab is disabled for flatfile upload. Can you suggest the reason for this?
    2. I tried to edit the hierarchy node data via PSA maintenance. When I save the changes, bw says invalid parameters entered. Pls advice why this is so. Seems that PSA maintenance does not allow changing before further update to data target.
    regards,
    Adette
    This post has been marked as a question.

    1) Preview button is enabled when the file is from the app server. If that does not work try to specify a file name and also select the option of immediate load.
    2) Not sure - but I don't think that you can edit hierarchy node data.
    PSA data can edited only if the request is not uploaded in any data target. Once a request is updated, it cannot be updated - even if the record hsa a red mark against it.

  • Some simple doubts

    import java.util.*
    Here what is "java.util.*"?? Is it a package name?
    Also what is the exact meaning of "System.out" in System.out.print? Is System is adefault package or library?
    Forgive my ignorance...and Thanks in advance
    regards
    naveen

    DFA1 wrote:
    util is the package, * means that all the classes from the package util will be imported.
    System is a class, out is a PrintStream and is a static member of class System. print is the method of the PrintStream out.Correct, but...
    >
    Read Java API before you start programming.
    http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/System.html
    At least link to the Java 6 javadocs :/ I know google tends to return a link to 1.4.2 first, but you can easily remedy that by specifically adding java 6 to the search query.

  • Some basic doubts

    hi,
    is there any measurement for table redefinition like index rebuild.
    For index rebuid we are using indexstat.
    how to find whether the archived log is necessary or not.
    what is the difference between execution and fetch?
    what the relation between
    INITTRANS and MAXTRANS and freelist and freelist group and pctused and pctfree.
    we are having oracle apps11.5.10which has may schemas.
    we have the schema apps which has mostly views.we don't know the orgin of the schemas of the view.
    how to find the orgin of the schemas and how to refresh the schema. where to refresh the schema whether orgin of schema and apps schema.

    If you asked just one question at a time you would get more answers.
    "how to find whether the archived log is necessary or not."
    All archivelogs are needed for recovery. If they are backed up on tape, then you can delete from disk
    "INITTRANS and MAXTRANS and freelist and freelist group and pctused and pctfree."
    If you take the time to read the Oracle documentation, and use google, you should be able to find answers to most of your questions.
    "we are having oracle apps11.5.10which has may schemas.
    we have the schema apps which has mostly views.we don't know the orgin of the schemas of the view.
    how to find the orgin of the schemas and how to refresh the schema. where to refresh the schema whether orgin of schema and apps schema."
    What do you mean by "refresh the schema" ? In Oracle Apps you should refresh the whole database by cloning, not refresh individual schemas.

  • Some Doubts in Objects

    Hello SDN Community..!!
    I have some theoritical doubts in XI objects.
    <b>Question 1:</b>
    what i know about Integration Process is:
    Integration Processes are defined in integration Repository.
    Processes defined in Integration Repository are used as services at runtime to control messages and send messages.
    i want to know the role of <b>Integration Process?</b> and what is the difference between <b>Business Service</b> and <b>Integration Process Service</b>?
    <b>Question 2:</b>
    While definig Communication Channel.When we select <b>HTTP</b> or <b>IDO</b>C Adapter,the direction can only be <b>reciever</b>,Why so ?
    Any kind of help will be appriciated.
    Thanks in adavance.
    VIJAY RAHEJA.<b></b>

    Hi,
    >>>i want to know the role of Integration Process?
    inside this object you can model th whole
    integration scenario = with many send/receive/etc steps
    >>>>and what is the difference between Business Service
    and Integration Process Service?
    business service is just an directory object used as
    simple version of a business ssytem (it can be an ftp
    server for example)
    integration process service is an integration process
    so you can send data from a business system/business
    service to an integratin process (or from it)
    >>>>While definig Communication Channel.When we select
    HTTP or IDOC Adapter,the direction can only be
    reciever,Why so ?
    because these adapter use http posts directly to the
    integration server (ICF) and they don't use any java
    adapters to send data to XI
    that's why you don't need any sender agreements if you
    use http or idoc
    regards,
    michal

  • Doubts in XI basics..help me with some practical examples

    hi friends,
              I am new to SAP XI have some basic doubts. Answer my questions with some practical examples.
      1. what is meant by "Business System" and what is difference between client,customer,Business partner,3rd party
      2.If a small company already using some systems like Oracle or peopleSoft,if it wants to use SAP products then what steps it has to follow.
    3. SAP system means a SERVER?
    4.SAPWebAs means a server software?
    5.R/3 system comes under SAP system?
    6.XI is also one of the SAP  module..how it relates to other modules.
    7.In one organization which is using SAP modules,each module will be load in separate servers?
    8.PO(purchase order) means just looks like one HTML file..customer will fill the form and give it.like this,Combination of many files like this is one SAP module.Is it right assumption..?if so,then what is speciality SAP?
       I have an theoretical knowledge about IR and ID and SLD.what are general business transactions happens in any business ?(like who will send cotation,PO)  give some practical example for what actually happens in business?..who will do what?and what XI will do?

    Hi Murali,
    <u><b> 1.Business System</b></u>
      Business systems are logical systems that function as senders or receivers  within the SAP Exchange Infrastructure(XI).
    Before starting with any XI interface,the Business systems involved has to be configured in SLD(The SLD acts as the central information provider for all installed system components in your system landscape.)
    business system and technical system in XI
    <u><b>2.Third Party</b></u>
    http://help.sap.com/saphelp_nw04/helpdata/en/09/6beb170d324216aaf1fe2feb8ed374/frameset.htm
    eg.For the SAP system a  Bank would be a third-party which would be involved in interfaces involving exchange of data(Bill Payment by customer).
    <u><b>3.XI(Exchange Infrastructure)</b></u>
      It enables you to connect systems from different vendors (non-SAP and SAP) in different versions and implemented in different programming languages (Java, ABAP, and so on) to each other.
    Eg.If an interface involves Purchase Order sent from SAP system to the vendor(Non-SAP system)then,the vendor might expect a file.But the Data is in the IDOC(intermediate document) form with the SAP system.Here XI does the work of mapping the IDOC fields and the File fields and sends it to the vendor in the form of a file.
    In short,always the scene is Sender-XI-Receiver.
    The Sender and the Receiver depends upon the Business you are dealing with.
    <u><b>4.Business Partner</b></u>
    A person, organization, group of persons, or group of organizations in which a company has a business interest.
    This can also be a person, organization or group within this company.
    Examples:
    Mrs. Lisa Miller
    Maier Electricals Inc.
    Purchasing department of Maier Electricals Inc.
    <u><b>5.Client</b></u>
    http://help.sap.com/saphelp_nw04/helpdata/en/6c/a74a3735a37273e10000009b38f839/frameset.htm
    <u><b>6.SAP System</b></u>
    http://help.sap.com/saphelp_nw04/helpdata/en/33/1f4f40c3fc0272e10000000a155106/frameset.htm
    <u><b>7.SAP WebAS</b></u>
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=sapwebapplication+server&cat=sdn_all
    As you are a beginner, I understand you musn’t be aware of where to search what.
    For all details search out in http://help.sap.com
    And sdn(key in keyword in Search tab).
    You will get list of forums,blogs,documentation answering all your queries.

  • A series of questions on getting and doing some operations on VO attributes

    hi all,
    i am fresher working in OA framework...
    i have some basic doubt please clear them
    1.
    v get some parameters for the pages...what is that v get as a parameter.. in the navigated page we give this as URL...
    OA.jsp?page=oracle/apps/ak/employee/webui/EmpDetailsPG
    &employeeNumber={@EmployeeId}
    now what is this EmployeeId ..is this a VO attribute????or a page parameter..i guess it is VO attribute.. just clarify me this...
    2.
    how to assaign a VO attribute value to other VO attribute..
    i mean how to fetch the value of a VO attribute
    and assaign a value to VO attribute...
    can i use ..******VORowImpl class for this...can please tell me the syntax to fetch
    current vo attribute (say employee id).
    3.
    how to perform the arthemetic operations on VO attributes...
    like if i can calculate them by fetching there values and assigning them to local varaibles and storing the result to transient attribute...using set parameter???
    can i do this way??
    4.i have page table layout region and i have many rows in that ...i have a column say xyz now i want the sum of all xyz in all rows ...is that possible ..if it is how..????
    please help me out in this issues...so that i can proceed further with my work..im stuck otu here....if the solution r there in the devguide please tell me where it is ..i mean under which section...bcoz it 1400page document...

    Please refrain from posting the same questions in mutiple threads.
    Prior to posting the questions please try to search the devguide and the forum.
    Yes, the devguide is 1400 pages long, but most of the sections section titles are self-explanatory.

  • Doubts in System Landscape Directory

    Hello All,
    I got some basic doubts in SLD.
    Why do we need to store the information about the installed products and to be installed products in software catalog?
    And, what is this techncal system?
    After reading few help sites, what I understand is the following:
    For example SAP is a product and  CRM etc are the software components. We create the technical system for this product like for client 100 we create a technical system and for client 200 we create another technical system. And we give some logical names, called business sytems, to these technical systems.
    My second question is, why do we need to create all these information(the information in SLD)? Why cant we directly create messages types, message interfaces etc and configure them in Integration directory without using the information in SLD like business system?
    In Integration Directory, we say that the sender is one Business System and receiver is another business system. These business system are created based on some technical systems. These technical systems are based on some software components and product. This product and the software component might be a installed or non installed product. Then how do we can get the connection between the sender and the business system? Can you please explain me the idea behind considering the sender and reciever as business systems.
    Can anybody please clear the above doubts?
    Priya

    Hi Priya,
    <u><b>SLD:</b></u>
    The System Landscape Directory of SAP NetWeaver (SLD) serves as a central information repository for your system landscape. A system landscape consists of a number of hardware and software components that depend on each other with regard to installation, software updates, and demands on interfaces.
    - so talking about the working of an SLD, here if any information is required for the integration server regarding the systems(logical or physical) and the software (installed products) it refers to the SLD.
    - to tell you about the other features it has....it captures the dimensions of the system landscape like solution dimension, transport dimension and technical dimension.
    - putting it in short XI IS A CLIENT OF SLD
    Also go thru this link and understand more about SLD <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/31/f0ff69551e4f259fdad799a229363e/frameset.htm">System Landscape Directory</a>
    <u>
    <b>SOFTWARE CATALOG:</b></u>
    The SLD contains a Software Catalog of all installable SAP products and software components. The Software Catalog includes information about support packages and dependencies between the products and software components. This information is the basis for the description of the system landscape.
    Also go thru this link and understand more about Software Catalog <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/a2/2999ef97ea2b4790165f9ca5c05c41/content.htm">Software Catalog</a>
    <u><b>TECHNICAL SYSTEM, BUSINESS SYSTEMS, SOFTWARE PRODUCTS:</b></u>
    Technical system correlates the software to the physical host on which it is installed
    Or in other words Technical systems are application systems that are installed in your system landscape.
    - they are actually the basis for defining the business systems.
    - we assign a technical system to a business system to help the SLD make the appropriate association.
    - the software products used by the business system are got from the technical system definition.
    - to note 1 technical system can have more than one business system assigned to it....and as told the SLD make the appropriate association between them.
    Also go thru this link and understand more about each of it:
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/24/8fa93e08503614e10000000a114084/content.htm">Technical Systems</a>
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/42/c817d9d2296bb2e10000000a1553f6/content.htm">Business Systems</a>
    <a href="/people/sap.india5/blog/2005/11/03/xi-software-logistics-1-sld-preparation Preparation</a>
    Regards,
    Abhy

Maybe you are looking for