Retrieval from TextArea

I have made 2 pages, first page to fill in data in some textarea box and second page to retrieve the input
1st page
<textarea width=20 col=5 wrap="OFF" name="contact"></textarea>
...2nd page
String temp="" ;
if(request.getParameter("contact")!=null)
     temp = request.getParameter("contact") ;It can obtain the input but it ignores all link break
e.g.
input:
Tel: 123456789
email: [email protected]
after retrieval:
Tel: 123456789 email: [email protected]
the input i obtain will be combined into 1 line. I already use the WRAP property in <textarea>.
Anyone have idea about this?? Thank you!!

Just to make this clear.
You have a textarea on the screen.
You save the value in it (including linebreaks) into the database.
You then retrieve the value from the database to display on the page.
Do you display it directly onto the HTML page, rather than into another textarea?
In that case HTML happily ignores all your spaces/line breaks in your code.
To stop it doing this
1 - use <pre> </pre> tags around the text you don't want HTML to format.
ie
<pre>
<%= textToPrint %>
</pre>
2 - To replace all line breaks with strings try
This requires java 1.4
String lineSep = System.getProperty("line.separator");
String textToPrint = textToPrint.replaceAll(lineSep, "<br>");Cheers,
evnafets

Similar Messages

  • Error while creating money market transaction - payment details not retrieving from BP master data.

    Hello friends
                      I have error while creating financial transaction. Payment details are not retrieving from BP master data to creating financial transaction screen.
    No payment details entered for transaction
    Message no. FTR0030
    Please advise to set off this.
    Thanks & Regards
    Swami

    Dear Swami,
    Please select one payment details in Business partner and use assigned tab from top selection parameter from standing instruction to assigned bank details to product type.
    It will open other window like above example for each product of treasury, then assign bank details to product. Once assigned and save.
    System will pick payment details in deal automatically based on business partner.
    Hope this solve your issue.
    Regards,
    Jain
    Message was edited by: Jain Varghese

  • Number for every record that is retrieved from (query)

    Hello
    I wish to put a number for every record that is retrieved
    from the record that is output by this query
    For example
    For the first recored/row
    Generated number, ksnumber, date
    1, gg111 11/05/05
    2, oo235 12/06/05
    the query returned 2 records 1 and 2 are the number that is
    generated with this code.
    In addition if there is a built in function, where in the
    code do I put it???
    <cfquery name="gelov datasource="kl90">
    SELECT
    FROM
    WHERE
    ORDER BY
    <cfswitch expression="#Form.orderBy#">
    <cfks value="KSNUMBER">
    KS.KS_NBR
    </cfks>
    <cfks value="CREATIONDATE">
    KS.KREATDAT
    </cfks>
    </cfswitch>
    </cfquery>
    <!---html report--->
    <cfswitch expression="#Form.outputFormat#">
    <cfks value="HTML">
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>Ctwye Kss Report</title>
    </head>
    <style type="text/css">
    table{
    font-family:Arial, Helvetica, sans-serif;
    font-size:10px;
    td{
    font-family:Arial, Helvetica, sans-serif;
    font-size:10px;
    th{
    font-family:Arial, Helvetica, sans-serif;
    font-size:10px;
    h2{
    font-family:Arial, Helvetica, sans-serif;
    font-size:12px;
    h3{
    font-family:Arial, Helvetica, sans-serif;
    font-size:13px;
    </style>
    <body>
    <cfoutput>
    <table border="0" cellpadding="3" cellspacing="0">
    <tr>
    <td align="center">
    <h3>Ctwye Kss
    Report</h3><br><br></td>
    </tr>
    <tr>
    <td align="center">
    </h2>report returned #getCtwyeKss.RecordCount#
    records</h2></td>
    </tr>
    <tr>
    <td>
    <table border="1" cellpadding="2" cellspacing="0">
    <tr>
    <td width="160">Ks Number</td>
    <td>Creation Date</td>
    <!--- <td class="dataField">Address</td>
    <td class="dataField">Type</td>
    <td class="dataField">Description</td>--->
    </tr>
    <cfloop query="getCtwyeKss">
    <tr bgcolor="<cfif currentrow mod
    2>GHOSTWHITE<cfelse>WHITE</cfif>">
    <td>#KS_NBR#</td>
    <td>#dateformat(KREATDAT,"mm/dd/yyyy")#</td>
    </tr>
    </cfloop>
    </table>
    </td>
    </tr>
    </table>
    </BODY>
    </HTML>
    </cfoutput>
    </cfks>
    <cfks value="CSV">
    <CFHEADER NAME="Content-Disposition" VALUE="attachment;
    filename=ctwye.csv">
    <cfcontent type="application/msexcel">"Ks
    Number","Creation Date"
    <cfoutput
    query="getCtwyeKss">#ltrim(KS_NBR)#,"#dateformat(KREATDAT,"mm/dd/yyyy")#"
    <tr #IIF(getCtwyeKss.CurrentRow MOD
    2,DE(''),DE('backgroundColor="##999"'))#>
    <!---<tr bgcolor="<cfif currentrow mod
    2>##808080<cfelse>##ffffff</cfif>"> --->
    </cfoutput>
    </cfks>
    </cfswitch>

    <cfks> is not a Coldfusion tag. Use <cfcase>
    instead.
    The following code will print the row numbers
    <cfquery name="gelov" datasource="kl90">
    select ksnumber, date
    from yourTable
    </cfquery>
    <cfoutput query="gelov">
    #currentrow#, #ksnumber#, #date#<br>
    </cfoutput>

  • Error while extracting values from SOAP Body using XPath (Retrieve from Message filter)

    Hi,
    I am using 'Retrieve from Message' filter to extract element value from the following SOAP response envelope:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:math="http://example.com/math.xsd">
    <soapenv:Header/>
    <soapenv:Body>
    <math:DivideResponse>
    <iResult>10</iResult>
    </math:DivideResponse>
    </soapenv:Body>
    </soapenv:Envelope>
    I am using the XPath expression - /soapenv:Envelope/soapenv:Body/math:AddResponse/iResult
    soapenv = http://example.com/math.xsd
    math = http://schemas.xmlsoap.org/soap/envelope/
    ERROR
    4/19/15, 19:29:03.016
    Empty attribute retrieved from message via XPath
    ERROR
    4/19/15, 19:29:03.016
    The message [Id-59643455b76a00000000000045edd6a6] logged Failure at 04.19.2015 19:29:03,015 with log description: Failed to extract attributes via XPath
    ERROR
    4/19/15, 19:29:03.017
    Retrieve math result from SOAP response
    Could you please help me resolve it?
    Thanks,
    Aneesh.

    Hi Aneesh,
    XPath Expression: /soapenv:Envelope/soapenv:Body/math:DivideResponse/iResult
    You are using AddResponse in your XPath there is no element named like that.
    Cheers,
    Stefan

  • DirectAccess Server 2012 Configuration cannot be retrieved from domain controller

    Hi everyone,
    We are using DirectAccess over Server 2012. There is just one server, no load balancing.
    Everything works fine, all clients can connect successfully and operations status page shows all in green. Nevertheless on the dashboard page in the configuration status section it say “Configuration for server [servername] cannot be retrieved
    from the domain controller.”
    I found a few hints what could cause this problem:
    In my case, the RAConfigTask, a scheduled task, was not enabled on the affected WS2012 server (DA entry point in a multisite deployment). After just enabling it, the errors has gone."
    http://blog.gocloud-security.ch/2013/01/11/ws2012-directaccess-and-the-configuration-for-server-server-name-retrieved-from-the-domain-controller-cannot-be-applied-error/
    Group Policy was filtering out my DA server from the GPO object for some reason. To fix, I opened up Group Policy Management on the domain controller and made sure that my DA server was a part of the group."http://www.joedissmeyer.com/2012/12/more-issues-and-solutions-for.html
    Server has no connectivity to the domain in order to update the policies. Run “gpupdate /force” on the server to force policy update. GPO replication might be required in order to retrieve the updated configuration.
     This could be because there is no writable domain controller in the Active Directory site of the Remote Access server. http://social.technet.microsoft.com/Forums/en-US/winserverNIS/thread/56fedb17-1274-4e1a-b2d0-fea809f0bc45
    I checked everything. Task is enabled and completed successfully, GPO is not filtered out, run gpupdate without any errors, could connect to domain controller, no errors on domain controller, domain controller is writable.
    So, I have no idea what could cause this error. Any ideas or hints?
    Thanks
    Regards
    Sebastian

    i have the exact same problem i figured out that there was a problem with the logon as a service
    secpol.msc --> Local Policies --> User Rights Assignement, Logon as a service i have NT Service\All Services
    i can acces the group policy via the cpnsole just fine i have not connectivity issues what so ever.
    i decided to open a call with microsoft, their suggestion .... we dont know reinstall so i did and here we are same problem and no solution. it is getting frustrating...

  • Error: The report source could not be retrieved from the state object.

    I have been trying to create a report in a JSF page. The relevant parts are below:
    Inside the JSP page, this is the code:
                  <jsp:useBean id="MyBean" class="com.nm.facade.rto.POJOViewerBean" scope="session" />
                    <jsp:setProperty name="MyBean" property="reportLocation" value="Report1.rpt" />
                   <v:reportPageViewer reportSource="#{MyBean.reportSource}"
                                           displayToolbarPrintButton="true"
                                           printMode="ActiveX"
                                           zoomPercentage="100"
                                           displayToolbarExportButton="true"
                                           displayToolbarRefreshButton="true"
                                           viewerName="My Viewer"
                   ></v:reportPageViewer>
    In the backing bean, this is the relevant code:
        public Object getReportSource() throws ReportSDKException
            if (propertiesChanged || reportSource == null)
                propertiesChanged = false;
                if (reportLocation == null)
                    throw new RuntimeException("The reportLocation property must be set before a report source is retrieved");
                ReportClientDocument rcd = new ReportClientDocument();
                rcd.setReportAppServer(ReportClientDocument.inprocConnectionString);
                rcd.open(reportLocation, 0);
                DatabaseController dbc = rcd.getDatabaseController();
                //Create the POJO collection and populate it with data
                ReportData[] data =
                  new ReportData("B.B.", "King", 6, new Date(25, 9, 16)),
                    new ReportData("Muddy", "Waters", 7, new Date(15, 4, 4)),
                    new ReportData("John Lee", "Hooker", 8, new Date(16, 8, 16)),
                    new ReportData("Otis", "Rush", 9, new Date(34, 4, 29)),
                    new ReportData("Buddy", "Guy", 10, new Date(36, 7, 30))
                //Create the result set from the collection of POJOs
                POJOResultSetFactory factory = new POJOResultSetFactory(ReportData.class);
                factory.setVerbose(true);
                POJOResultSet results = factory.createResultSet(data);
                ResultSetMetaData metaData = results.getMetaData();
                //Set the resultset as the report datasource
                      //Get the table name from the 'Set Datasource Location' dialog in the Crystal Reports designer
                String reportTable = "getReportDataDataSource";
                dbc.setDataSource(results, reportTable, reportTable);       
                IReportSource reportSource = rcd.getReportSource();
                if (reportSource == null)
                    throw new RuntimeException("Unable to get a report source.");
            return reportSource;
    In the CRConfig.xml, this is what is there:
    <?xml version="1.0" encoding="utf-8"?>
    <CrystalReportEngine-configuration>
        <reportlocation>../reports</reportlocation>
        <timeout>0</timeout>
        <ExternalFunctionLibraryClassNames>
             <classname></classname>
        </ExternalFunctionLibraryClassNames>
    </CrystalReportEngine-configuration>
    The report template 'Report1.rpt' is packaged under WEB-INF/reports in the war file.
    When I try to generate the report by accessing the JSF page, I am getting an error: "The report source could not be retrieved from the state object. "
    I am not sure what is wrong. Can someone help me in resolving this issue?
    Edited by: renshai on Jul 9, 2009 3:21 AM

    My formatting gets lost and the message looks unintelligible. After some experimentation, I found that if the message exceeds some length, the formatting is removed. Since I couldn't find any way to delete this post, I made another post with the same subject. Please ignore this post and help me to find a solution for the problem posted in the other thread with the same subject. Thanks in advance.

  • Connect to R/3 failed. USERID and/or PASSWD could not be retrieved from SSFS

    Dear All,
    Solman installation 7.1 fails with Error in the Start instance phase.
    Database : Oracle
    OS: AIX 6100-07-02-1150
    Oracle version: 11.2.0.3
    Kernel version: 720 patch number is 114
    I have checked the SAP Note #1639578 - SSFS as password storage for primary database connect .
    The below values has alreadt been set in default profile and in environment variables also
    RSEC_SSFS_DATAPATH=/usr/sap/SMI/SYS/global/security/rsecssfs/data
    RSEC_SSFS_KEYPATH=/usr/sap/SMI/SYS/global/security/rsecssfs/key
    rsdb_ssfs_connect=1
    2. The Permission of the Global directory
    solmantrg:smiadm 13> ls -all
    total 0
    drwxr-xr-x    5 smiadm   sapsys          256 Apr 18 17:37 .
    drwxr-xr-x    5 smiadm   sapsys          256 Apr 19 21:51 ..
    drwxr-xr-x    3 smiadm   sapsys          256 Apr 18 17:37 exe
    drwxr-xr-x    3 smiadm   sapsys          256 Apr 18 17:37 gen
    lrwxrwxrwx    1 smiadm   sapsys           18 Apr 18 17:37 global -> /sapmnt/SMI/global
    Permission Of security Folder:
    solmantrg:smiadm 17> ls -all
    total 8
    drwx------    5 smiadm   sapsys          256 Apr 22 13:25 .
    drwxr-xr-x    5 smiadm   sapsys          256 Apr 18 17:37 ..
    -rw-r--r--    1 smiadm   sapsys            0 Apr 22 13:25 ABAPPROT
    drwxr-xr-x    8 smiadm   sapsys          256 Apr 18 17:39 SDT
    -rw-r--r--    1 smiadm   sapsys          272 Apr 18 17:37 ms_acl_info
    drwxr-xr-x    2 smiadm   sapsys          256 Apr 22 13:26 sapcontrol
    drwx------    5 smiadm   sapsys          256 Apr 18 17:37 security
    Permission Of rsecssfs:
    solmantrg:smiadm 20> ls -all
    total 0
    drwx------    5 smiadm   sapsys          256 Apr 18 17:37 .
    drwx------    5 smiadm   sapsys          256 Apr 22 13:25 ..
    drwx------    2 smiadm   sapsys          256 Apr 19 21:01 data
    drwx------    3 smiadm   sapsys          256 Apr 18 17:37 lib
    drwx------    4 smiadm   sapsys          256 Apr 18 17:37 rsecssfs
    permission Of data & Key
    solmantrg:smiadm 22> ls -all
    total 0
    drwx------    4 smiadm   sapsys          256 Apr 18 17:37 .
    drwx------    5 smiadm   sapsys          256 Apr 18 17:37 ..
    drwx------    2 smiadm   sapsys          256 Apr 22 12:42 data
    drwx------    2 smiadm   sapsys          256 Apr 18 17:37 key
    permission Of SSFS_SMI.DAT
    solmantrg:smiadm 24> pwd
    /sapmnt/SMI/global/security/rsecssfs/data
    solmantrg:smiadm 25> ls -all
    total 8
    drwx------    2 smiadm   sapsys          256 Apr 22 12:42 .
    drwx------    4 smiadm   sapsys          256 Apr 18 17:37 ..
    -rw-------    1 smiadm   sapsys          972 Apr 22 12:42 SSFS_SMI.DAT
    No key for File ( SSFS_SMI.KEY ) IN PATH ( /sapmnt/SMI/global/security/rsecssfs/key)  Exists
    solmantrg:smiadm 28> cd key
    solmantrg:smiadm 29> ls -altr
    total 0
    drwx------    4 smiadm   sapsys          256 Apr 18 17:37 ..
    drwx------    2 smiadm   sapsys          256 Apr 18 17:37 .
    3. From smiadm, R3trans -x shows 0000.  BUT from ora>sid>, R3trans -x shows 0012
    solmantrg:orasmi 2> R3trans -x
    This is R3trans version 6.22 (release 720 - 26.10.11 - 13:00:00).
    unicode enabled version
    2EETW169 no connect possible: "DBMS = ORACLE                           --- dbs_ora_tnsname = 'SMI'"
    R3trans finished (0012).
    4. Output Of Trans.log from Ora<SID> User
    solmantrg:orasmi 3> more trans.log
    4 ETW000 R3trans version 6.22 (release 720 - 26.10.11 - 13:00:00).
    4 ETW000 unicode enabled version
    4 ETW000 ===============================================
    4 ETW000
    4 ETW000 date&time   : 22.04.2014 - 14:41:32
    4 ETW000 control file: <no ctrlfile>
    4 ETW000 R3trans was called as follows: R3trans -x
    4 ETW000  trace at level 2 opened for a given file pointer
    4 ETW000  [     dev trc,00000]  Tue Apr 22 14:41:32 2014                                                 145  0.000145
    4 ETW000  [     dev trc,00000]  db_con_init called                                                        41  0.000186
    4 ETW000  [     dev trc,00000]  set_use_ext_con_info(): ssfs will be used to get connect information
    4 ETW000                                                                                                  91  0.000277
    4 ETW000  [     dev trc,00000]  determine_block_commit: no con_hdl found as blocked for con_name = R/3
    4 ETW000                                                                                                  84  0.000361
    4 ETW000  [     dev trc,00000]  create_con (con_name=R/3)                                                 40  0.000401
    4 ETW000  [     dev trc,00000]  Loading DB library '/usr/sap/SMI/SYS/exe/run/dboraslib.o' ...             74  0.000475
    4 ETW000  [     dev trc,00000]  DlLoadLib() success: dlopen("/usr/sap/SMI/SYS/exe/run/dboraslib.o"), hdl 0
    4 ETW000                                                                                               31906  0.032381
    4 ETW000  [     dev trc,00000]  Library '/usr/sap/SMI/SYS/exe/run/dboraslib.o' loaded                     49  0.032430
    4 ETW000  [     dev trc,00000]  function DbSlExpFuns loaded from library /usr/sap/SMI/SYS/exe/run/dboraslib.o
    4 ETW000                                                                                                  61  0.032491
    4 ETW000  [     dev trc,00000]  Version of '/usr/sap/SMI/SYS/exe/run/dboraslib.o' is "720.00", patchlevel (0.114)
    4 ETW000                                                                                                 493  0.032984
    4 ETW000  [     dev trc,00000]  function dsql_db_init loaded from library /usr/sap/SMI/SYS/exe/run/dboraslib.o
    4 ETW000                                                                                                  55  0.033039
    4 ETW000  [     dev trc,00000]  function dbdd_exp_funs loaded from library /usr/sap/SMI/SYS/exe/run/dboraslib.o
    4 ETW000                                                                                                 108  0.033147
    4 ETW000  [     dev trc,00000]  New connection 0 created                                                 264  0.033411
    4 ETW000  [     dev trc,00000]  0: name = R/3, con_id = -000000001, state = DISCONNECTED, tx = NO , bc = NO , hc = NO , perm = YES, reco = NO , frco = NO , timeout = 00
    0, con_max = 255, con_opt = 255, occ = NO , prog =
    4 ETW000                                                                                                  79  0.033490
    4 ETW000  [     dev trc,00000]  db_con_connect (con_name=R/3)                                             79  0.033569
    4 ETW000  [     dev trc,00000]  determine_block_commit: no con_hdl found as blocked for con_name = R/3
    4 ETW000                                                                                                  53  0.033622
    4 ETW000  [     dev trc,00000]  find_con_by_name found the following connection:                          35  0.033657
    4 ETW000  [     dev trc,00000]  0: name = R/3, con_id = 000000000, state = DISCONNECTED, tx = NO , bc = NO , hc = NO , perm = YES, reco = NO , frco = NO , timeout = 000
    , con_max = 255, con_opt = 255, occ = NO , prog =
    4 ETW000                                                                                                  74  0.033731
    4 ETW000  [     dev trc,00000]  read_con_info_ssfs(): reading connect info for connection R/3             36  0.033767
    4 ETW000  [     dev trc,00000]  read_con_info_ssfs(): DBSL supports extended connect protocol             49  0.033816
    4 ETW000                          ==> connect info for default DB will be read from ssfs
    4 ETW000  [     dev trc,00000]  read_con_info_ssfs(): register callback ssfs_dbi_trace and max level 2
    4 ETW000                                                                                                  88  0.033904
    4 ETW000  [     dev trc,00000]  function DbSlExpFuns loaded from library /usr/sap/SMI/SYS/exe/run/dboraslib.o
    4 ETW000                                                                                                  61  0.032491
    4 ETW000  [     dev trc,00000]  Version of '/usr/sap/SMI/SYS/exe/run/dboraslib.o' is "720.00", patchlevel (0.114)
    4 ETW000                                                                                                 493  0.032984
    4 ETW000  [     dev trc,00000]  function dsql_db_init loaded from library /usr/sap/SMI/SYS/exe/run/dboraslib.o
    4 ETW000                                                                                                  55  0.033039
    4 ETW000  [     dev trc,00000]  function dbdd_exp_funs loaded from library /usr/sap/SMI/SYS/exe/run/dboraslib.o
    4 ETW000                                                                                                 108  0.033147
    4 ETW000  [     dev trc,00000]  New connection 0 created                                                 264  0.033411
    4 ETW000  [     dev trc,00000]  0: name = R/3, con_id = -000000001, state = DISCONNECTED, tx = NO , bc = NO , hc = NO , perm = YES, reco = NO , frco = NO , timeout = 00
    0, con_max = 255, con_opt = 255, occ = NO , prog =
    4 ETW000                                                                                                  79  0.033490
    4 ETW000  [     dev trc,00000]  db_con_connect (con_name=R/3)                                             79  0.033569
    4 ETW000  [     dev trc,00000]  determine_block_commit: no con_hdl found as blocked for con_name = R/3
    4 ETW000                                                                                                  53  0.033622
    4 ETW000  [     dev trc,00000]  find_con_by_name found the following connection:                          35  0.033657
    4 ETW000  [     dev trc,00000]  0: name = R/3, con_id = 000000000, state = DISCONNECTED, tx = NO , bc = NO , hc = NO , perm = YES, reco = NO , frco = NO , timeout = 000
    , con_max = 255, con_opt = 255, occ = NO , prog =
    4 ETW000                                                                                                  74  0.033731
    4 ETW000  [     dev trc,00000]  read_con_info_ssfs(): reading connect info for connection R/3             36  0.033767
    4 ETW000  [     dev trc,00000]  read_con_info_ssfs(): DBSL supports extended connect protocol             49  0.033816
    4 ETW000                          ==> connect info for default DB will be read from ssfs
    4 ETW000  [     dev trc,00000]  read_con_info_ssfs(): register callback ssfs_dbi_trace and max level 2
    4 ETW000                                                                                                  88  0.033904
    4 ETW000  [     dev trc,00000]  RSecSSFs: Entering function "RSecSSFsGetRecord" [rsecssfs.c 836]          84  0.033988
    4 ETW000  [     dev trc,00000]  RSecSSFs: Configuration data read from environment parameters [rsecssfs.c 3664]
    4 ETW000                                                                                               11463  0.045451
    4 ETW000  [     dev trc,00000]  RSecSSFs: Data file "/usr/sap/SMI/SYS/global/security/rsecssfs/data/SSFS_SMI.DAT" cannot be opened for read [rsecssfs.c 2198]
    4 ETW000                                                                                                 174  0.045625
    4 ETW000  [     dev trc,00000]  RSecSSFs: Exiting function "RSecSSFsGetRecord" with return code 1 (message: Data file "/usr/sap/SMI/SYS/global/security/rsecssfs/data/SS
    FS_SMI.DAT" cannot be opened for read) [rsecssfs.c 897]
    4 ETW000                                                                                                  91  0.045716
    4 ETW000  [    dbcon.c ,00000]  *** ERROR => read_ssfs_record(): RSecSSFsGetRecord(DB_CONNECT/DEFAULT_DB_USER)=1 : Data file "/usr/sap/SMI/SYS/global/security/rsecssfs/
    data/SSFS_SMI.DAT" cannot be opened for read
    4 ETW000                                                                                                  82  0.045798
    4 ETW000  [     dev trc,00000]  read_con_info_ssfs(): deregister callback ssfs_dbi_trace                  37  0.045835
    4 ETW000  [    dbcon.c ,00000]  *** ERROR => Connect to R/3 failed. USERID and/or PASSWD could not be retrieved from SSFS
    4 ETW000                                                                                                  68  0.045903
    2EETW169 no connect possible: "DBMS = ORACLE                           --- dbs_ora_tnsname = 'SMI'"
    trans.log: END
    Kindly help us to fix the error ""ERROR => read_ssfs_record(): RSecSSFsGetRecord(DB_CONNECT/DEFAULT_DB_USER)=1 : Data file "/usr/sap/SMI/SYS/global/security/rsecssfs/
    data/SSFS_SMI.DAT" cannot be opened for read"
    Thanks and Regards,
    Gayathri.K

    Hi Deepak,
    Now my installation failed with "Start Java engine "phase as in the attached screenshot.
    scs00 instance is failing and i am unable to start it.
    ERROR      2014-04-22 18:28:50.499 [sixxcstepexecute.cpp:899]
    FCO-00011  The step startSCS with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|onehost|0|NW_CI_Instance|ind|ind|ind|ind|ci|0|NW_CI_Instance_Configure_Java|ind|ind|ind|ind|javaconfig|0|startSCS was executed with status ERROR ( Last error reported by the step: Instance 'SCS00/solmantrg' of SAP system SMI is in an inconsistent state: the processes do not seem to have been started within the instance.).
    when i checked in getprocess list
    solmantrg:smiadm 56> sapcontrol -prot NI_HTTP -nr 00 -function GetProcessList
    22.04.2014 18:29:43
    GetProcessList
    OK
    name, description, dispstatus, textstatus, starttime, elapsedtime, pid
    msg_server, MessageServer, GRAY, Stopped, , , 13631618
    enserver, EnqueueServer, GRAY, Stopped, , , 11468864
    have attached the screenshot and sapinst.dev.log
    Please assist
    regards,
    gayathri.K

  • Playing a video file retrieved from database using JMF

    Hello!
    I am developing a multimedia application that has to store videos, music, pictures in a database. I did a little searching and found that JMF is a very good solution in playing video/music using Java. I found some examples to play the video/music stored on the hard drive (as separate files), but i have to be able to take the video/music from the database, and feed it to the JMF player. Has anyone some suggestions about how this could be done?
    Thanks in advance!
    Edited by: radu.miron on May 8, 2008 9:03 AM

    Well, i think i didn't make myself clear enough :). i know how to retreive the data from the database. The thing is this: let's suppose i have a 700 MB movie stored in the database. One option to play that movie would be to retrieve it from the DB, create a file somewhere on the disk, and put the data retrieved from the database in that file. But this involves that the disk will be overflooded when let's say 100 people watch 100 different movies. Another option (as i see it) would be to gradually take parts of the movie from the database (first 50 MB, then another 50 MB, then another and so on), and feed it to the JMF player. The user will watch the movie, but will not have the whole movie available, just a part of it. As he watches it, the application takes the next chunck of movie data and feeds it to the JMF player. That was the question i intended to ask, if anyone has any idea regarding the second option, and not the part with retrieving from the database, but the part with giving the JMF player video data to play.
    The example i found on the web with JMF player is the following:
    import javax.swing.*;*
    *import javax.media.*;
    import java.awt.*;*
    *import java.awt.event.*;
    import java.net.*;*
    *import java.io.*;
    public class PlayVideo extends JFrame {
         Player player;
         Component center;
         Component south;
         public PlayVideo() {
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              JButton button = new JButton("Select File");
              ActionListener listener =
                   new ActionListener() {
                   public void actionPerformed(
                             ActionEvent event) {
                        JFileChooser chooser =
                             new JFileChooser(".");
                        int status =
                             chooser.showOpenDialog(PlayVideo.this);
                        if (status ==
                             JFileChooser.APPROVE_OPTION) {
                             File file = chooser.getSelectedFile();
                             try {
                                  load(file);
                             } catch (Exception e) {
                                  System.err.println("Try again: " + e);
              button.addActionListener(listener);
              getContentPane().add(button,
                        BorderLayout.NORTH);
              pack();
              show();
         public void load(final File file)
         throws Exception {
              URL url = file.toURL();
              final Container contentPane =
                   getContentPane();
              if (player != null) {
                   player.stop();
              player = Manager.createPlayer(url);
              ControllerListener listener =
                   new ControllerAdapter() {
                   public void realizeComplete(
                             RealizeCompleteEvent event) {
                        Component vc =
                             player.getVisualComponent();
                        if (vc != null) {
                             contentPane.add(vc,
                                       BorderLayout.CENTER);
                             center = vc;
                        } else {
                             if (center != null) {
                                  contentPane.remove(center);
                                  contentPane.validate();
                        Component cpc =
                             player.getControlPanelComponent();
                        if (cpc != null) {
                             contentPane.add(cpc,
                                       BorderLayout.SOUTH);
                             south = cpc;
                        } else {
                             if (south != null) {
                                  contentPane.remove(south);
                                  contentPane.validate();
                        pack();
                        setTitle(file.getName());
              player.addControllerListener(listener);
              player.start();
         public static void main(String args[]) {
              PlayVideo pv = new PlayVideo();
    }but this example plays a video stored on the disk ( player = Manager.createPlayer(url); ), rather than a chunck of data (the whole movie or parts of it) retrieved from the database.
    Sorry for the misunderstanding!
    Cheers!

  • TEXT to be retrieved from a DOMAIN and to be displayed in an ALV report.

    Hi,
    I am required to develop a report where, the retrieved data needs to be displayed in an ALV. In the Report Specification, the requirement is that a text needs to be retrieved from a DOMAIN.
    e.g. Text to be retrieved from Domain EICST where Fix Val = PA0210-EICST (where subtype = FED).
    Regards,
    Ameet

    HI ,
    There are lot of FM to retrive the domian text from the fixed value.
    For ex. C_DIC_DOMAIN_VALUE_TEXT_READ
    You can find some more using the F4 help.
    Thanks,
    Poonam.

  • Inserting data from Textarea into database

    I am collecting data from a html form which has textarea and processing it through servlet.
    If I enter text in textarea without breaks(without pressing enter tab) it is being collected and correctly put into database.
    If I enter text with breaks (with pressing enter tabs for entering in separate lines) it is being collected correctly but only one line goes into database.
    How to insert entire text from textarea into database.
    bye
    Kaushik

    problem is not yet solved.
    i am able to print in the sql query and is displayomg all the chars. but missing while executing the statement.
    mysql - 3.23, driver is org.mm..mysql driver
    Can u please look at this another problem:
    I have a keyword and need to search against a table containing 100 fileds.
    select * from table where keyword like '%"+keyword+"%'
    searches only in one field. If I want the search to be performed against all the fields in the table, Is there any solution.
    What I am doing at present is putting all the fields data in a new field and performing like operation on that field.
    but this is very slow.
    thanks and regards
    Kaushik

  • Upgraded to larger HD cannot retrieve from earlier backups on Time Capsule... help!

    Hi I Took out my small, original HD and upgraded to larger HD. Cloned my computer and reistalled it onto the new HD. Now, I cannot retrieve from earlier backups from older HD. I can see the data in pink on right, but it refuses to go past  the day of new HD installation. How can I get there from here? Thanks...

    If you cloned the disk you should have all the existing files on the original disk.
    The new disk is seen as a different computer..
    See stuff in pondini about accessing time machine from another Mac.. as that is effectively what you are doing.
    http://pondini.org/TM/FAQ.html
    Look at Q17.. but all the questions, 14-18 are relevant.

  • Count rows in a table being retrieved from dba_segments

    Hello guys,
    I was wondering how can I count the rows in a table that is being retrieved from dba_segments.
    -- I am getting the table name from dba_segment
    -- Is it possible to count the number of rows in that table at the same time?
    -- If not, is there an alternative step without analyzing the table or schema, then getting the result from num_rows in all_tables?
    I want the count code to add to the select statement..
    SELECT owner, segment_name , segment_type, partition_name, bytes
    FROM   dba_segments
    WHERE  owner = UPPER( v_schema )
    ORDER BY segment_name;I try to add this to the select statement. count(segment_name), but that did not work.
    Any direction(s)?

    SYS@DEMO102> show user
    USER is "SYS"
    SYS@DEMO102> l
      1  declare
      2  counter number;
      3  begin
      4  for x in (select segment_name, owner
      5            from dba_segments
      6            where segment_type='TABLE'
      7            and owner='SCOTT') loop
      8  execute immediate 'select count(*) from '||x.owner||'.'||x.segment_name into counter;
      9  dbms_output.put_line(rpad(x.owner,30,' ')
    10                       ||'.'
    11                       ||rpad(x.segment_name,30,' ')
    12                       ||' : '
    13                       || counter
    14                       ||' row(s)');
    15  end loop;
    16* end;
    SYS@DEMO102> /
    SCOTT                         .MYTABLE14                      : 0 row(s)
    SCOTT                         .TAB3                           : 1 row(s)
    SCOTT                         .TAB4                           : 4 row(s)
    SCOTT                         .THE_TABLE                      : 5 row(s)
    SCOTT                         .C                              : 0 row(s)Nicolas.

  • Can I use stored procedures to improve data retrieval from the database?

    I have been requested to get multiple pieces of data from multiple tables and return the output in an array for use in a Java program.
    Eliminating multiple calls to the database. Currently, the data is retrieved from the database in multiple steps but to eliminate
    possible bottlenecks in the future, I created several complex sql statements.
    For instance,
    In the first table there are 20 columns of data. has a column named type which can have the one of these values: line, inn, or bsc
    In the second table there are 6 columns of data. has the additional data for type line
    In the third table there are 7 columns of data. has the additional data for type inn
    In the fourth table there are 2 columns of data. has data regardless of type
    etc...
    Depending on a specific column value retrieved (inn) from the first table:
    I need to collect all 20 columns in the first table and get all the columns in third table and the columns in the fourth table, etc.
    Question: How can I remove the duplicate primary key columns without specifying for each table the column names to be returned?
    I used the wildcard SELECT * because I didn't want to have to update the retrieval methods if additional columns are added to these
    secondary tables.
    example of my sql for type inn data:
    select * from first_table f, third_table s, fourth_table t
    where (f.column1='xxxx' and f.column2='xxxx') (the 'xxxx' are passed into the sql statement)
    and
    ((s.column1=f.column1 and s.column2=f.column2)
    and
    (f.column3=t.column1));
    Currently, I've duplicated the separate sqls for each valid type found in the first table (at least a dozen types). The only difference is
    the table name. Instead of the third table I use the second table, etc.
    The MAIN Question: How can I set this up to have one sql to handle each type? I want to eliminate having over a dozen duplicated sqls. Can I
    incorporate this into a stored procedure or something? If so, how? Can anyone provide sample coding?
    Your help is very much appreciated. Thank you.
    GD

    Hi, Salah.
    Use "Exec" in your query to run procedures.
    SAPbobsCOM.Recordset     oRS;
    oRS = (SAPbobsCOM.Recordset)pCmp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
    oRS.DoQuery ("EXEC YourStoredProcName");
    Triggers are not supported in SDK.
    Regards,
    Aleksey

  • Vendor batch is retrieved from LIPS-LICHN only if LIPS-LICHN is not blank,

    (Current design)
    Batch is retrieved from LIPS-CHARG
    Vendor batch is retrieved from LIPS-LICHN
    (If there is no record in LIPS, blank will be printed out for both fields)
    REQUIREMENT:
    Batch is retrieved from LIPS-CHARG
    Vendor batch is retrieved from LIPS-LICHN only if LIPS-LICHN is not blank.
    If LIPS-LICHN is blank, vendor batch is retrieved from LIPS-CHARG.
    (If there is no record in LIPS, blank will be printed out for both fields. If both LIPS-CHARG and LIPS-LICHN are blank, blank will be printed out for both fields)
    t-lips is the internal table :
    DATA: BEGIN OF t_lips OCCURS 0,
             vbeln LIKE lips-vbeln, "Delivery document no
             posnr LIKE lips-posnr, "Item number for Delivery document
             charg LIKE lips-charg, "Batch number
             lichn LIKE lips-lichn, "Vendor Batch number
          END OF t_lips.
    Following is the piece of code:
    *&      Form  f_collect_final
          Routine to collect all the display data into the final internal
          table t_display.
    FORM f_collect_final.
      DATA: l_std_pac_no LIKE eket-menge,
            l_std_pac_no_out(13) TYPE p,
            l_tot_std_pt(13) TYPE c,
            l_rmdr(13) TYPE n,
            l_qtnt(13) TYPE n,
            l_tabix TYPE i.
      LOOP AT t_eket.
        t_display-ebeln = t_eket-ebeln.
        t_display-ebelp = t_eket-ebelp.
        t_display-etens = t_eket-etens.
        t_display-eindt = t_eket-eindt.
        t_display-menge = t_eket-menge.
        t_display-meins = t_eket-meins.
        t_display-matnr = t_eket-matnr.
    mod begin CR1591
       t_display-maktx = t_eket-maktx.
        READ TABLE t_makt WITH KEY matnr = t_eket-matnr
                          BINARY SEARCH.
        IF sy-subrc = 0.
          t_display-maktx = t_makt-maktx.
        ENDIF.
    mod end CR1591
        t_display-vpnam = t_eket-vpnam.
        t_display-lifnr = t_eket-lifnr.
        t_display-charg = t_eket-charg.
        READ TABLE t_mlgn WITH KEY matnr = t_eket-matnr
                                          BINARY SEARCH.
        IF sy-subrc = 0.
          t_display-lhmg1 = t_mlgn-lhmg1.
          t_display-lhme1 = t_mlgn-lhme1.
          t_display-lety1 = t_mlgn-lety1.
          t_display-ltkze = t_mlgn-ltkze.
        ENDIF.
        READ TABLE t_marm WITH KEY matnr = t_eket-matnr
                                               BINARY SEARCH.
        IF sy-subrc = 0.
          t_display-umrez = t_marm-umrez.
          t_display-meinh = t_eket-meins.
        ENDIF.
        READ TABLE t_marc WITH KEY matnr = t_eket-matnr
                                             BINARY SEARCH.
        IF sy-subrc = 0.
          t_display-zzjp_nyu_sop = t_marc-zzjp_nyu_sop.
          t_display-zzjp_dos_frm = t_marc-zzjp_dos_frm.
          t_display-zzjp_aprn    = t_marc-zzjp_aprn.
          t_display-zzjp_re1     = t_marc-zzjp_re1.
        ENDIF.
        READ TABLE t_lfa1 WITH KEY lifnr = t_eket-lifnr
                                          BINARY SEARCH.
        IF sy-subrc = 0.
          t_display-name1 = t_lfa1-name1.
        ENDIF.
        READ TABLE t_lips WITH KEY vbeln = t_eket-vbeln
                                   posnr = t_eket-vbelp
                                   BINARY SEARCH.
        l_tabix = sy-tabix.
        IF sy-subrc = 0.
          t_display-charg = t_lips-charg.(I think this is the place to change).
         t_display-lichn = t_lips-charg.
        ENDIF.
    I have tried with the following code, but it is not working.
    IF sy-subrc = 0.
          t_display-charg = t_lips-charg.
    IF not t_lips-lichn is initial.
         t_display-lichn = t_lips-lichn.
        ELSE.
       t_display-lichn = t_lips-charg.
        ENDIF.
    ENDIF.

    Hi,
    Find the modification below, consider the bold text and remove the old one:
    READ TABLE t_lips WITH KEY vbeln = t_eket-vbeln
    posnr = t_eket-vbelp
    BINARY SEARCH.
    l_tabix = sy-tabix.
    IF sy-subrc = 0.
    <b>if t_lips-lichn EQ space AND
    t_lips-charg NE space.
    t_display-charg = t_lips-charg.
    t_display-lichn = t_lips-charg.
    endif.</b>
    <i>t_display-charg = t_lips-charg.(I think this is the place to change).
    t_display-lichn = t_lips-charg.</i>ENDIF.

  • Tell me how to format a date retrieved from a MS SQL Server 2000 database?

    Tell me how to format a date retrieved from an MS SQL Server 2000 database for various uses in my JSP page?

    Or if you want to use JSTL instead of a scriptlet see:
    http://forum.java.sun.com/thread.jspa?threadID=676754&tstart=0

Maybe you are looking for

  • Need Integration Process to the scenario

    Hi All,                 I am doing one scenario Webservice to JDBC (Sync to Sync). Here i have one doubt, there any Integration Process required for this scenario. Completely I configured scenario without using BPM right now. I haven't tested the sce

  • Plot absolute time

    Hi, I am reading data that contains date and time when the event occured and I need to plot that on xy chart in absolute time scale. This is my example text line... 1/10/2007 3:51:53 PM Event Happened..... 1/10/2007 3:52:45 PM Event 2 happened....etc

  • Using pdf-security with FormProcessor blanks out entire PDF

    When I try to set the pdf-security property and its associated properties with the FormProcessor.setConfig API method, the resulting PDF document is completely blank. And no, it's not an issue of my security. When I view the security properties withi

  • Can't open doc and rtf files on my nokia e61i

    hi!I am new here,i have a problem with my e61i,I can not open doc and rtf files,if someone has a clue to tell me how can i fix the problem i'll be gratefull

  • Adding a PR to an existing PO and item number

    Hi, is it possible to add/convert a PR onto an existing PO, without adding it as a new line, or manually adjusting the figures? For example I have a PO which is for 100 units x £50. I have another PR for 50 units x £50. Normally we add this as item 2