Problem in accessing HTML data

Hi Frens,
I m getting some html data from my servlet. But From Server
it is sending the data in html format. There, It is sending the
data in CDATA format. Here I get some problem in displaying the
data in Flex. I have following questions:
1. How can I parse that XML data into HTML data, Since that
data comes from many mail servers, I don't have idea, whether they
are properly formatted or not. I am getting this data in xml
format. How can i convert it back to HTML format?
2. The 2nd Problem is that it may contain some images also,
So will component is suitable for me to display the data? Example
is a mail, If it has some html data, along with images. Which
component is suitable for this?
Please help to get out this problem.
Thks

If I knew a data service was returning HTML to me, I would
use resultFormat="text" and just accept the data as-is. Then you
can assign it to the htmlText property of a TextArea.
The Flash Player has limited HTML capabilities. It can
display images using the <img> HTML tag.
Depending on your needs you might want to look at Apollo
which has an HTML UI component which can display real, complete
HTML.

Similar Messages

  • Problem when cleaning HTML data in coldfusion

    Hi,
    I have below piece of CF code to clean&convert HTML data into a well formatted one.
    <cffunction name="cleanHTML" returntype="string">
         <cfargument name="sHTML" type="string" required="yes">
           <cfset sHTML = reReplace(sHTML, "\r\n(\S?)<br>\s*(<(u|o)l>)", "\1", "all")>
           <cfset sHTML = reReplace(sHTML, "</?(p)>(\s+| +)*(<br>(\s+| +)*)+$", "", "all")>
         <cfreturn sHTML>
    </cffunction>
    <cfquery name="getDetailsOfReport" datasource="datasource_name" >
    select details from reports where report_id = 1326065
    </cfquery>
    <cfoutput>#cleanHTML(getReport.details)#</cfoutput>
    Above code is working fine when getDetailsOfReport query is returning small amount of data, however fails when query returns large data.
    Note:
    Details column of REPORTS table is a clob field which contains html data.
    Can anybody assist me solving this issue?
    (OR)
    Please let me know the right procedure to clean HTML if I am on the wrong way.
    Thanks in advance,
    Best Regards,
    Manoz.

    Clean & Convert means,
    1) Remove new lines from html
    2) Remove breaks before lists eg <br><ol>
    3) Get rid of paragraph tags
    4) Get rid of trailing line breaks (including white space and forces spaces  
    The expected input is some HTML content
    eg:
    <ul>
        <li><span style="font-size: 7.5pt; font-family: Verdana; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA; mso-bidi-font-family: 'Times New Roman'">Tool measurement assessment in lab achieved.</span></li>
        <li><span style="font-size: 7.5pt; font-family: Verdana; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA; mso-bidi-font-family: 'Times New Roman'"><span style="font-size: 7.5pt; font-family: Verdana; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA; mso-bidi-font-family: 'Times New Roman'">1<sup>st</sup> coil tubing job.</span></span></li>
    </ul>
    And the expected output is also HTML content (But after applied above 4 operations to the given input).

  • Help! Problem with text/html data flavor

    I am having trouble copying text/html mime data to the clipboard. I can copy fine but there seems to be a bug in the JDK that puts extra information onto the clipboard along with the HTML. I am getting the following data copied to the clipboard:
    Version:0.9 StartHTML:-1 EndHTML:-1 StartFragment:0000000111 EndFragment:0000000126
    ...and then the expected HTML.
    I cannot see anyway around this. There seems to be no mention of anyone getting this problem ever before (searched google and the java forums).
    Anyone ever witnessed this behaviour? If so, do you know a workaround?
    Thanks,
    Andy

    Hi,
    thats the way how the data is placed in the clipboard. Actually you usually export data in your clipboard in different multiple DataFlavors, for exemple plain text or even html. If you want to paste your data in an other aplpication, this one looks at the dataflavor and selects his prefered one. So if you want to paste something into an simple editor, you might only get the plain text. Using word, he will prefer HTML FLavor. So it is really only a matter of fact, who you export your data.
    Hope I could help you.

  • Problem in accessing huge data resultset

    HI,
    Am generating a weekly report in my code. My sql queries(query1 =18495 and query2=532000) results in 5.5 lacs of records. Given below is my code. Am using Jboss-4.2.x running on solaris 10. Oracle 9i is my backend DB . Using the driver version of Oracle JDBC Driver version - 9.0.2.0.0 with connection pool.
    Below code was running successfully for long time but all of sudden it stopped working without any exception or error. The query 1 is getting executed successfully but while accessing the resultset its getting hanged without any exception even for 3 - 4 days. In my log am getting this message ""========SQL query1 execution completed ======" after that no exception or error. Query1 always constantly result in 18495 records only, here there is no dynamic data to the query. But in the query2 the date will be changed to the current date of the report day. The problem is the processing of resultset for query1 itself is got hanged.
    Any one knows any other way to access this huge resultset in more effective way without failure.
    Thanks in advance
    Karthi

    ArrayList reportList = new ArrayList();
         buffer.append("SELECT SR.DEVICE_CONTACT , TO_CHAR(SR.PROVISION_DATE,'mm/dd/yyyy HH24:mi:ss') , ")
              .append("(SELECT CD.CODE FROM CODE CD WHERE CD.CODE_ID = SR.SUBSCRIBER_STATUS) , TO_CHAR(UP.STATUS_EFFECTIVE_DATE,'mm/dd/yyyy HH24:mi:ss') , ")
              .append("SR.DEVICE_TYPE, DECODE(SR.MAKE_MODEL_UPDATE,1,'Y','N') , (SELECT UDI.OS_VERSION FROM USER_DEVICE_INFORMATION UDI WHERE SR.SUBSCRIBER_ID = UDI.USER_ID) ,")
              .append("(SELECT TO_CHAR(max(MD.LAST_MODIFIED_DATE),'mm/dd/yyyy HH24:mi:ss') FROM MENU_DOWNLOAD MD WHERE SR.DEVICE_CONTACT=MD.DEVICE_CONTACT) ")
              .append("FROM SUBSCRIBER_REGISTRATION SR, USER_PROFILE UP WHERE SR.SUBSCRIBER_ID = UP.EXTERNAL_USER_ID AND (SR.PROVISION_DATE <= TO_DATE('10/26/2007 23:00:00','MM/dd/yyyy HH24:mi:ss'))");
    preparedStatement = connection.prepareStatement(buffer.toString(),ResultSet.TYPE_FORWARD_ONLY,ResultSet.CONCUR_READ_ONLY );
         //preparedStatement.setFetchSize(1000);
         rs = preparedStatement.executeQuery();
         Logger.log(ServerLogger.SEVERITY_DEBUG,THIS_CLASS,THIS_METHOD,
    "========SQL query1 execution completed ======"+System.currentTimeMillis());
    //rs.setFetchSize(100);
    rs.setFetchSize(500);
         while (rs.next())
         ReportBean reportBean = new ReportBean();
         reportBean .setMdn(rs.getString(1));
         reportBean .setActivationDate(rs.getString(2));
         reportBean .setSubscriberStatus(rs.getString(3));
         reportBean .setLastUpdatedDateofStatus(rs.getString(4));
         reportBean .setDeviceType(rs.getString(5));
         reportBean .setPhoneChangeFlag(rs.getString(6));
         reportBean .setDeviceOS(rs.getString(7));
         reportBean .setLastActivityDate(rs.getString(8));
         reportList.add(reportBean);
         rs.close();
         closeStatement(preparedStatement);
         //query 2 block execution started
         buffer= new StringBuffer();
         buffer.append("SELECT SR.DEVICE_CONTACT , ")
    .append("TO_CHAR(SR.PROVISION_DATE,'mm/dd/yyyy HH24:mi:ss') , ")
    .append("(SELECT CD.CODE FROM CODE CD WHERE CD.CODE_ID = SR.SUBSCRIBER_STATUS) , ")
    .append("TO_CHAR(UP.STATUS_EFFECTIVE_DATE,'mm/dd/yyyy HH24:mi:ss') , ")
    .append("SR.DEVICE_TYPE, DECODE(SR.MAKE_MODEL_UPDATE,1,'Y','N') , ")
    .append("(SELECT UDI.OS_VERSION FROM USER_DEVICE_INFORMATION UDI WHERE UP.USER_ID = UDI.USER_ID) ,")
    .append("(SELECT TO_CHAR(MD.LAST_MODIFIED_DATE,'mm/dd/yyyy HH24:mi:ss') FROM MENU_DOWNLOAD MD ")
    .append("WHERE UP.USER_ID=MD.USER_ID) FROM SUBSCRIBER_REGISTRATION SR,USER_PROFILE UP ")
    .append("WHERE SR.SUBSCRIBER_ID = UP.EXTERNAL_USER_ID AND SR.PROVISION_DATE >TO_DATE('10/26/2007 23:00:00','MM/dd/yyyy HH24:mi:ss')")
    .append("AND (SR.REQUEST_TIME <= TO_DATE('03/22/2009 00:01:00','MM/dd/yyyy HH24:mi:ss'))");
         preparedStatement = connection.prepareStatement(buffer.toString(),ResultSet.TYPE_FORWARD_ONLY,ResultSet.CONCUR_READ_ONLY );
         rs = preparedStatement.executeQuery();
         revoLogger.log(ServerLogger.SEVERITY_DEBUG,THIS_CLASS,THIS_METHOD,
    "========SQL query2 execution completed ======"+System.currentTimeMillis());
    //rs.setFetchSize(100);
         rs.setFetchSize(500);
         while (rs.next())
         ReportBean reportBean = new ReportBean();
    reportBean .setMdn(rs.getString(1));
    reportBean .setActivationDate(rs.getString(2));
    reportBean .setSubscriberStatus(rs.getString(3));
    reportBean .setLastUpdatedDateofStatus(rs.getString(4));
    reportBean .setDeviceType(rs.getString(5));
    reportBean .setPhoneChangeFlag(rs.getString(6));
    reportBean .setDeviceOS(rs.getString(7));
    reportBean .setLastActivityDate(rs.getString(8));
    reportList.add(reportBean );
         rs.close();

  • Problem with accessing apex_collection data

    Hello,
    I got a problem with a apex_collection. I'm trying to fill this collection within a loop threw a database-cursor. It's part of a process (on load - before header). It looks like following:
    loop
        FETCH curs_1 INTO l_key;
        EXIT WHEN curs_1%NOTFOUND;
        select v.name, p.price
        into l_name, l_price
        from table_1 v, table_2 p
        where v.key = l_key
        and p.fkey = v.key;
        APEX_COLLECTION.ADD_MEMBER(p_collection_name => 'temp_collection',
                                       p_c001            => to_char(l_key),
                                       p_c002            => l_name,
                                       p_c003            => to_char(l_price));
       l_temp := l_temp||l_name||chr(10);
    end loop;As you can see I'm filling a temporary variable (l_temp). When I display this variable within an element it shows the correct values. But when i make a select on the collection there is no data found in the report. The report is at the same page as the process. Query for the report is:
    SELECT c001, c002
       FROM APEX_collections
    WHERE collection_name = 'temp_collection'I hope somebody can help.
    Thank you in advance
    Sebastian

    All collection names are allways UPPERCASE. If you use lowercase, it will not find it and no error message will be issued.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    ------------------------------------------------------------------------------

  • Problem while accessing a complex data type

    hi,
    I am getting a problem while accessing a complex data type
    I have a wsdl as:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <definitions name="OutlookReminderService" targetNamespace="http://ws.aftek.com/outlook-reminder" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:ns2="http://ws.aftek.com/outlook-reminder/schemas" xmlns:ns3="http://java.sun.com/jax-rpc-ri/internal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://ws.aftek.com/outlook-reminder" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    - <types>
    - <schema targetNamespace="http://ws.aftek.com/outlook-reminder/schemas" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://ws.aftek.com/outlook-reminder/schemas" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
    <import namespace="http://java.sun.com/jax-rpc-ri/internal" />
    - <complexType name="TaskVO">
    - <sequence>
    <element name="dueDate" type="long" />
    <element name="percentageComplete" type="int" />
    <element name="priorty" type="int" />
    <element name="reminderDate" type="long" />
    <element name="reminderSet" type="boolean" />
    <element name="startDate" type="long" />
    <element name="status" type="int" />
    <element name="subject" type="string" />
    <element name="taskId" type="string" />
    </sequence>
    </complexType>
    - <complexType name="NoSuchUserException">
    - <sequence>
    <element name="message" type="string" />
    </sequence>
    </complexType>
    - <complexType name="ArrayOfContactVO">
    - <complexContent>
    - <restriction base="soap11-enc:Array">
    <attribute ref="soap11-enc:arrayType" wsdl:arrayType="tns:ContactVO[]" />
    </restriction>
    </complexContent>
    </complexType>
    - <complexType name="ContactVO">
    - <sequence>
    <element name="birthDate" type="long" />
    <element name="companyAddress" type="string" />
    <element name="companyName" type="string" />
    <element name="emailID1" type="string" />
    <element name="emailID2" type="string" />
    <element name="emailID3" type="string" />
    <element name="faxNumber" type="string" />
    <element name="firstName" type="string" />
    <element name="homeAddress" type="string" />
    <element name="lastName" type="string" />
    <element name="middleName" type="string" />
    <element name="mobileNumber" type="string" />
    <element name="phoneNumber" type="string" />
    <element name="workContactNumber" type="string" />
    </sequence>
    </complexType>
    </schema>
    - <schema targetNamespace="http://java.sun.com/jax-rpc-ri/internal" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://java.sun.com/jax-rpc-ri/internal" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
    <import namespace="http://ws.aftek.com/outlook-reminder/schemas" />
    - <complexType name="arrayList">
    - <complexContent>
    - <extension base="tns:list">
    <sequence />
    </extension>
    </complexContent>
    </complexType>
    - <complexType name="list">
    - <complexContent>
    - <extension base="tns:collection">
    <sequence />
    </extension>
    </complexContent>
    </complexType>
    - <complexType name="collection">
    - <complexContent>
    - <restriction base="soap11-enc:Array">
    <attribute ref="soap11-enc:arrayType" wsdl:arrayType="anyType[]" />
    </restriction>
    </complexContent>
    </complexType>
    </schema>
    </types>
    <message name="OutlookServer_addTaskResponse" />
    - <message name="OutlookServer_getListResponse">
    <part name="result" type="ns3:arrayList" />
    </message>
    - <message name="OutlookServer_getContactListResponse">
    <part name="result" type="ns2:ArrayOfContactVO" />
    </message>
    - <message name="NoSuchUserException">
    <part name="NoSuchUserException" type="ns2:NoSuchUserException" />
    </message>
    - <message name="OutlookServer_getContactList">
    <part name="String_1" type="xsd:string" />
    </message>
    - <message name="OutlookServer_getList">
    <part name="String_1" type="xsd:string" />
    </message>
    - <message name="OutlookServer_addTask">
    <part name="String_1" type="xsd:string" />
    <part name="TaskVO_2" type="ns2:TaskVO" />
    </message>
    - <message name="OutlookServer_reminderOccurredResponse">
    <part name="result" type="xsd:boolean" />
    </message>
    - <message name="OutlookServer_reminderOccurred">
    <part name="String_1" type="xsd:string" />
    <part name="TaskVO_2" type="ns2:TaskVO" />
    </message>
    - <portType name="OutlookServer">
    - <operation name="addTask" parameterOrder="String_1 TaskVO_2">
    <input message="tns:OutlookServer_addTask" />
    <output message="tns:OutlookServer_addTaskResponse" />
    <fault message="tns:NoSuchUserException" name="NoSuchUserException" />
    </operation>
    - <operation name="getContactList" parameterOrder="String_1">
    <input message="tns:OutlookServer_getContactList" />
    <output message="tns:OutlookServer_getContactListResponse" />
    <fault message="tns:NoSuchUserException" name="NoSuchUserException" />
    </operation>
    - <operation name="getList" parameterOrder="String_1">
    <input message="tns:OutlookServer_getList" />
    <output message="tns:OutlookServer_getListResponse" />
    <fault message="tns:NoSuchUserException" name="NoSuchUserException" />
    </operation>
    - <operation name="reminderOccurred" parameterOrder="String_1 TaskVO_2">
    <input message="tns:OutlookServer_reminderOccurred" />
    <output message="tns:OutlookServer_reminderOccurredResponse" />
    <fault message="tns:NoSuchUserException" name="NoSuchUserException" />
    </operation>
    </portType>
    - <binding name="OutlookServerBinding" type="tns:OutlookServer">
    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
    - <operation name="addTask">
    <soap:operation soapAction="" />
    - <input>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://ws.aftek.com/outlook-reminder" use="encoded" />
    </input>
    - <output>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://ws.aftek.com/outlook-reminder" use="encoded" />
    </output>
    - <fault name="NoSuchUserException">
    <soap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="NoSuchUserException" namespace="http://ws.aftek.com/outlook-reminder" use="encoded" />
    </fault>
    </operation>
    - <operation name="getContactList">
    <soap:operation soapAction="" />
    - <input>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://ws.aftek.com/outlook-reminder" use="encoded" />
    </input>
    - <output>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://ws.aftek.com/outlook-reminder" use="encoded" />
    </output>
    - <fault name="NoSuchUserException">
    <soap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="NoSuchUserException" namespace="http://ws.aftek.com/outlook-reminder" use="encoded" />
    </fault>
    </operation>
    - <operation name="getList">
    <soap:operation soapAction="" />
    - <input>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://ws.aftek.com/outlook-reminder" use="encoded" />
    </input>
    - <output>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://ws.aftek.com/outlook-reminder" use="encoded" />
    </output>
    - <fault name="NoSuchUserException">
    <soap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="NoSuchUserException" namespace="http://ws.aftek.com/outlook-reminder" use="encoded" />
    </fault>
    </operation>
    - <operation name="reminderOccurred">
    <soap:operation soapAction="" />
    - <input>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://ws.aftek.com/outlook-reminder" use="encoded" />
    </input>
    - <output>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://ws.aftek.com/outlook-reminder" use="encoded" />
    </output>
    - <fault name="NoSuchUserException">
    <soap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="NoSuchUserException" namespace="http://ws.aftek.com/outlook-reminder" use="encoded" />
    </fault>
    </operation>
    </binding>
    - <service name="OutlookReminderService">
    - <port binding="tns:OutlookServerBinding" name="OutlookServerPort">
    <soap:address location="http://truptid:8080/outlook-reminder-service/outlook" />
    </port>
    </service>
    </definitions>
    My client is :
    private static String     BODY_NAMESPACE_VALUE     = "http://ws.abc.com/outlook-reminder";
         private static String     ENCODING_STYLE_PROPERTY     = "javax.xml.rpc.encodingstyle.namespace.uri";
         private static String     NS_XSD                         = "http://www.w3.org/2001/XMLSchema";
         private static String     URI_ENCODING               = "http://schemas.xmlsoap.org/soap/encoding/";     
    try{
    ServiceFactory factory = ServiceFactory.newInstance();
                        Service service = factory.createService(new QName("OutlookReminderService"));
                        QName port =new QName("OutlookReminderService","OutlookServerPort");
                        Call call =service.createCall(port);
                        call.setTargetEndpointAddress("http://localhost:8080/outlook-reminder-service/outlook?wsdl");
                        call.setProperty(Call.SOAPACTION_USE_PROPERTY, new Boolean(true));
                        call.setProperty(Call.SOAPACTION_URI_PROPERTY, "");
                        call.setProperty(ENCODING_STYLE_PROPERTY, URI_ENCODING);
                        call.getReturnType();
                        call.setOperationName(new QName(BODY_NAMESPACE_VALUE, "getList"));
                        QName QNAME_TYPE_STRING = new QName(NS_XSD, "string");
                        call.addParameter("String_1", QNAME_TYPE_STRING, ParameterMode.IN);
                        //http://ws.aftek.com/outlook-reminder/schemas
                        QName QNAME_TYPE_VO = new QName("http://schemas.xmlsoap.org/soap/encoding/", "Array");
                        System.out.println("Before Add Parameter");
                   //     call.addParameter("result", QNAME_TYPE_VO, ParameterMode.OUT);
                        call.setReturnType(QNAME_TYPE_VO,ArrayList.class);
                        System.out.println("After Add Parameter");
                        Object[] params ={oUserVO.getUserName()};
                        oArrayList =(ArrayList)call.invoke(params);
                        System.out.println("After Invoked");
                        //System.out.println("invoked"+ arrayList);          
                   catch(SOAPFaultException faultException)
                        moLogger.debug("SOAPFaultException : ", faultException);
                   catch(RemoteException oremoteException)
                        moLogger.debug("RemoteException", oremoteException);
              catch(ServiceException oServiceException)
                        moLogger.debug("ServiceException", oServiceException);          }          
    Error got is :
    trailing block elements must have an id attribute
         at com.sun.xml.rpc.encoding.SOAPDeserializationContext.deserializeMultiRefObjects(SOAPDeserializationContext.java:81)
         at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:239)
         at com.sun.xml.rpc.client.dii.CallInvokerImpl.doInvoke(CallInvokerImpl.java:103)
         at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:492)
         at com.ail.dhg.poc.business.dao.ContactDAO.getList(ContactDAO.java:255)
         at com.ail.dhg.poc.business.facade.ContactFacade.getList(ContactFacade.java:189)
         at com.ail.dhg.poc.business.AcceptInput.main(AcceptInput.java:72)
    java.lang.NullPointerException
         at com.ail.dhg.poc.business.dao.ContactDAO.getList(ContactDAO.java:277)
         at com.ail.dhg.poc.business.facade.ContactFacade.getList(ContactFacade.java:189)
         at com.ail.dhg.poc.business.AcceptInput.main(AcceptInput.java:72)
    Message was edited by:
    trupti_d

    Use lower case letters for your variable names (name, pwd). The code works then.
    package com.bluenile.bean;
    import java.io.*;
    public class Bean1 implements Serializable
    private String name="Uname";
    private String pwd="Pword";
    public String getName()
    return name;
    public String getPwd()
    return pwd;
    void setName(String name)
    this.name = name;
    void setPwd(String pwd)
    this.pwd = pwd;
    <HTML>
    <BODY BGCOLOR="#FFFFFF">
    <%@ page language="java" contentType="text/html" %>
    <jsp:useBean id="b1" class="com.bluenile.bean.Bean1" />
    <ul>
    <li>Name : <jsp:getProperty name="b1" property="name" />
    <li>Pwd : <jsp:getProperty name="b1" property="pwd" />
    </ul>
    </BODY>
    </HTML>

  • My iPhone is split from front panel on top, and back cover of my is swollen too. I am not able to use my phone and I cannot access my data in the phone. Please suggest what could be the cause of this problem?

    My iPhone is split from front panel on top, and back cover of my is swollen too. I am not able to use my phone and I cannot access my data in the phone. Please suggest what could be the cause of this problem?

    It sounds like the battery might have gone bad, and is swelling and causing the symptoms you describe.  Do not attempt to use the phone, but take it to Apple for evaluation.

  • Problem in transforming xml data to HTML

    Hai all,
    I am new to J developer, I have generated XML data to transform to HTML.
    Below is my xsql file with the name 'simpleqry.xsql'
    <?xml version='1.0' ?>
    <page xmlns:xsql="urn:oracle-xsql" connection="java:comp/env/jdbc/testDS">
    <xsql:query max-rows="-1" tag-case="lower" null-indicator="no">SELECT EMPNO,ENAME,SAL FROM EMP WHERE SAL &gt;= 5000</xsql:query>
    </page>
    it is producing the XML datas
    Further I need to convert it into HTML
    so I generated xsl stylesheet in under META-INF with the name 'EmpDetails.xsl'
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output encoding="ISO-8859-1" method="text/html" />
    <xsl:template match="/page">
    <html>
    <head>
    <title>Employee Results</title>
    </head>
    <body>
    <H2> EMPLOYEE QUERY RESULTS</H2>
    <h5><em> Following demonstrates XSQL query</em></h5>
    <table border="1" cellspacing="1" align="center">
    <tr bgcolor=" #F9F0C1">
    <th>EMP ID</th>
    <th>EMPLOYEE NAME</th>
    <th>SALARY</th>
    </tr>
    <xsl:for-each select="ROWSET/ROW">
    <tr>
    <td><xsl:value-of select="EMPNO"/></td>
    <td><xsl:value-of select="ENAME"/></td>
    <td><xsl:value-of select="SAL"/></td>
    </tr>
    </xsl:for-each>
    </table>
    </body>
    </html>
    </xsl:template>
    </xsl:stylesheet>
    next I have added the following to simpleqry.xsql
    <?xml-stylesheet type="text/xsl" href="EmpResults.xsl" ?>
    so my simpleqry.xsql file look like this
    <?xml version='1.0' ?>
    <?xml-stylesheet type="text/xsl" href="C:\JDeveloper\mywork\Application1\querysql\public_html\WEB-INF\EmpDetails.xsl" ?>
    <page xmlns:xsql="urn:oracle-xsql" connection="java:comp/env/jdbc/testDS">
    <xsql:query max-rows="-1" tag-case="lower" null-indicator="no">SELECT EMPNO,ENAME,SAL FROM EMP WHERE SAL &gt;= 5000</xsql:query>
    </page>
    when I rerun my simpleqry.xsql file it not generating the output .
    My J developer version is 'Oracle IDE 11.1.2.0.38.60.17'
    I know I made it lengthy. I made it clear so that you can understand my problem clearly. Please explain me how to solve the above mentioned problem(To generate HTML from XML data)
    Thanks in advance.
    Regards,
    Uraja

    next I have added the following to simpleqry.xsql
    +<?xml-stylesheet type="text/xsl" href="EmpResults.xsl" ?>+
    so my simpleqry.xsql file look like this
    +<?xml version='1.0' ?>+
    +<?xml-stylesheet type="text/xsl" href="C:\JDeveloper\mywork\Application1\querysql\public_html\WEB-INF\EmpDetails.xsl" ?>+
    What is added is different from what is listed in the XSQL, the xsl is different, the path to xsl is different.
    Specify relative path for xsl.

  • Verizon Chat advises pdf attachment non-download from AOL email is a software problem and directs me to Apple Support. I see "can't access cellular data network" in an instant before the file's icon turns into the file's name.

    Verizon Chat advises pdf attachment non-download from AOL email is a software problem and directs me to Apple Support. I see "can't access cellular data network" in an instant before the file's icon is replaced by the file's name. In Inbox three emails in a row show there is an attachment. My iPad 3rd gen. runs 7.1.

    You have Acrobat Pro on your system. It will try to open PDFs, and of course it will fail. You must uninstall it. Then, you will need a PDF reader. So install Adobe Reader. That seems quite simple, but perhaps something is wrong. If anything goes wrong with these two steps (1) uninstall Acrobat Pro (2) install Adobe Reader, then please let us know the details.

  • Problem of security using ADO from Labview to connect to Access 2000 Data Base

    I have a problem using ADO from Labview to connect to Access 2000 Data Base.
    First I open a ADO_DB_Engine and create a Workspace as an ODBCDirect. After I execute the open_data_base using the workspace. Here you can specify the parameter connect with /type of connection / user / password.
    The problem is the following:
    Although you configure a password for the Administrator user in Access, you can read/writte to data base from Labview using ADO without any security and without putting the user and password in the parameter connect. I need to access with security to data base using users and permissions but it seems that the parameter connect does not operate.
    I attach
    you a example of the vis and database. Remember create a ODBC connect with BD3.mdb
    Thanks a lot
    Peter Mst
    Attachments:
    SECURITY.zip ‏70 KB
    BD3.mdb ‏112 KB

    Hi Kahn,
    If you use ADODB_connection -> Connection.Open and set in connection string :
    "Provider=Microsoft.Jet.OLEDB.4.0; Jet OLEDBystem Database=c:\.....\Protegida5.mdw; Password=pepe;user ID=jose; Data Source:c:\......\BD5.mdb";
    and after connection.execute ->
    INSERT INTO tabla1 VALUES (5,'XXX'
    you will be able to access to the database with security using the provider=Microsoft.Jet.OLEDB.4.0. With this provider you have to use the path and the name of the database file c:\.....\mdb file. From this way the problem is solved. (SEE SAMPLE_ADO_W2_JET.VI).
    BD5.mdb have the following administrator user: user:jose / passwordepe (Protegida5.mdw)
    The problem is when you want to
    use ODBC and DSN. The name of this ODBC Provider is MSDASQL;. If you use this type of connection you can not enter to the database I attach you.
    This database has a new administrator owner. I deleted the default administrator. If you support the default administrator you can connect to database by ODBC / DSN but the security disappear because you can always enter to database with any password, user o PC.
    FINALLY I HAVE 3 QUESTIONS FOR Application Engineers of National Instruments or someone who knows these subjects before deciding the best way to connect locally o remotely with security to Access from Labview:
    1.- Is it possible to enter to Database BD5.mdb from ODBC and DSN with this owner?
    2.- I want to connect remotely to Access database too. Is it possible to use Microsoft.Jet.OLEDB.4.0 using the path (.mdb file) without DSN?
    3. Which is the optimal Provider for Microsoft Access?
    I thank you beforehand for your technical support.
    Peter Mst.
    Attachments:
    BD5.mdb ‏116 KB
    Protegida5.mdw ‏112 KB
    sample_ADO_W2_JET.vi ‏45 KB

  • Problem accessing basic data types

    Hi,
    I am a newbie at using JNI so please don't mind if I am asking something trivial.
    I have a JNI wrapper for a native C code. The C code is a Gtk+ application using GLib library. This library has it's own basic data types. For example, "gchar" corresponding to "char". I have generated the JNI Wrappers using the tool named "Swig" which is an interface between the C and other programming languages such as Java. What Swig has come up with is since "gchar" is not understood by it as "char" so it has taken the "gchar" as come Reference Type and generated another class for it. And instead of accepting simple char it is expecting a long.
    Even if I pass a numerical value like 11111 after instantiating this newly generated gchar class while running the program the JVM is crashing complaining SIGSEGV recieved from the underlying libraries.
    I am confused first of all since the error is not understood and secondly how can I tell the JNI that gchar is similar to char.
    What approach should I follow to solve the problem that I am facing? Any feedback on this will be appreciated.
    Thanks & Regards

    At run time you can see all the data........ like what i have shown...
    but if you clearly see, DATE will be in the internal format..but if you print it, it will be in dd:mm:yyyy
    can you suggest me if i have a dynamic field symbol (table data) ,,,, How can i convert data types dynamically..
    if it is a static internal table i am achieving with WRITE TO statement.....but i have huge data in field symbols...
    Instead of all these , please specify the exact problem your are facing . What is it with date field ? . In SAP while printing the internal format will be converted to external. What is your requirement with this date field?
    My output looks some thing like this:
    04 36876 15.09.2011 39600 1999
    06 36960 15.09.2011 39600 2632
    07 36874 15.09.2011 39541 9232
    My expected output
    04 36.876 15.09.2011 39.600 1.999
    06 36.960 15.09.2011 39.600 2.632
    07 36.874 15.09.2011 39.541 9.232
    I dont see any problems mentioned in your date field. Both your actual and expected outputs reflects the same in date field.
    In SCN you will only get solutions if your question is precise.
    Kesav

  • Problem in accessing data to remote pc

    Hi,
    I have a problem on accessing file on the remote pc, im using
    coldfusion
    then im trying to get file from a remote pc but its not
    working im using
    cfdirecrtory can somebody help me in my problem please...
    Thanks in advance,,
    john

    check that the user CF is running under has proper
    permissions to access
    the remote location. CF runs as a local user, so would not
    normally
    have access rights to remote locations...
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com

  • I have an external hard drive from my time capsule that stopped working on me. I am attempting to access the data with a hard drive reader on my MAC. I am able to see the drive in disk utility and under system info USB. But I am unable to access the data.

    I have an external hard drive from my time capsule that stopped working on me. I am attempting to access the data with a hard drive reader on my MAC. I am able to see the drive in disk utility and under system info USB. But I am unable to access the data and it does not show on the desktop when connected.

    Ok if disk utility was able to verify the drive I doubt there is any problem.. are you trying to open a TM backup??
    You need to mount the sparsebundle then check the actual info inside the bundle.
    Don't use disk warrior.. if the disk has verified then unless you deliberately deleted files there is nothing that is going to do.
    Pondini has a lot of stuff about getting access to the sparsebundle.
    http://pondini.org/TM/17.html
    But if you have copied info to the TC that is now gone.. and the disk is ok.. I am not sure.. the TC will not have deleted the files itself.

  • Accessing External Data from SharePoint 2010

    I want to access external data from my SharePoint site.
    I'm told that I need to follow these two articles.
    http://msdn.microsoft.com/en-us/library/ff953161.aspx
    http://msdn.microsoft.com/en-us/library/ff625800.aspx
    I followed the first article but I get this error when I open the external list in my SharePoint site:
    "Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator."
    I don't know how to write a custom code
    BTW I have installed PowerPivot on my SharePoint server.
    Can someone please help me? I need to do this very quickly.

    Hi,
    Can you please elaborate whether the data you are getting is from excel file or from database.
    1. If you are populating it from excel , then you can use the Excel service, Power pivot etc mechanism.
    2. If you are getting it from SQL database then you can use BCS service application and use the OOTB external list and content type to display the same in your home page.
    Links of artcles are given below.
    http://www.concurrency.com/blog/accessing-external-data-using-business-connectivity-services-in-sharepoint-2010/
    http://msdn.microsoft.com/en-us/library/ff677562(v=office.14).aspx
    Hope this will help.
    Thanks and Regards, -- Santanu Kumar Choudhury ----- SharePoint 2007/10/13 Developer

  • Can't access personal data on OEM partition

    My laptop comes with a SSD and a normal HDD. One fine day I switch on my computer and it says 'Insert bootable device' I thought that my SSD had crashed and since it assumed it had the OS I wasn't able to boot into Windows. So I removed the normal HDD put it into an enclosure to retreive my personal data. The HDD (750 GB) has three partitions, one is a Lenovo partition (29.30 GB) with applications and drivers and there are two OEM partitions (14.75 GB and 655 GB). I presume all my data is in the 655 GB OEM partition and I can't seem to access it. How can I access the data on OEM partition and recover my personal files ? Any advice/suggestion would be welcome. 

    Hi
    I think that the os might be on the hdd(655gb) partition and as it has been marked as a oem partition, bios is not able to access the boot files on the c drive. Since data comes first, use ptedit32.exe to change the partition type of 655gb partition to 07 from 12 and then assign it c you might have to reboot and then you could copy the data from the hdd and keeping the partition unhidden, try to boot from it in laptop.
    Link for ptedit32.exe
    http://www.2shared.com/file/TbV75uyo/PTEDIT32.html
    Ishaan Ideapad Y560(i3 330m), Hp Elitebook 8460p!(i5-2520M) Hp Pavilion n208tx(i5-4200u)
    If you think a post helped you, then you can give Kudos to the post by pressing the Star on the left of the post. If you think a post solved your problem, then mark it as a solution so that others having the same problem can refer to it.

Maybe you are looking for

  • What can I do about error code  w_ADEPT_CODE_EXPIRED

    I cannot move library books to Digital Reader  Eror code  W_ADEPT_CODE_EXPIRED  comes up.  How do I fix this?

  • How to jump between slides which are already played?

    I have a html list of 100 links as below: link1 link2 link3...so on. And i have a captivate project with 100 slides.When i play captivate project and i have watched only 10 slides then all my 10links in html should be enabled the rest 90 links should

  • How to get SEO url in java

    Hi My requirement is to generate a product feed which has its product url as one of the fields. Now does anybody know how to get the SEO url of a product in a java file. I know form front end we generate it via ItemLinkDroplet. But is there a way i c

  • Photos are not sharp

    i have my new ipod repaired due to backlight issue, but the new one i got doesn't show sharp photos... and i tried getting into the settings to refine but it has no opption of refining! what should i do?

  • My zen sleek photo does not show any of my music I transfe

    my method transfer is going to removeable disk and set it to 6GB (i guess its max) and than transfer all my folders/songs here. But when the copy is done and i eject the removable disk and I check my zen sleek for any music nothing shows up. they are