Convert from HTML Character Codes in Applescript

Hey everyone,
I have an applescript that retrieves some info from websites, but sometimes parts of the information are encoded into HTML Character codes for web compatibility. Could someone point me in the right direction to processing these into plain simple text? Has somebody already written a tool? Sorry, I'm very new to this, but willing to learn.
Thanks in advance.
Jason

This should to the job. Thx apple =)!
<pre style="margin: 0px; border: 1px solid #aaa; width: 800px; color:#000; background-color: #ccc; overflow: auto; font-family: Verdana, Monaco, monospace;"> set web_url to quoted form of "http://discussions.apple.com/thread.jspa?threadID=2244400&tstart=0"
*do shell script* "curl " & web_url & " | textutil -stdin -convert txt -format html -stdout"</pre>

Similar Messages

  • How to Convert From HTML to XLS?

    Trying to convert a file from a local county government that uses Microsoft to my desktop.  I was told I need to convert the HTML to a zip file and I might need additional software.  Help?

    You're going to have to explain a bit more about what it is you need to convert and what you need to convert it to. An HTML file is a web page, an XLS is an Excel spreadsheet file, and a Zip file is a compressed archive. So as described in your initial post it's not at all clear, at least to me, what it is you need to accomplish.
    Regards.

  • Header & Footer in pdf file converted from html

    I am using Acrobat Professional on WinXP and Firefox.
    This is the first time I tried to convert a saved html file to pdf and it works. However the converted file have the html pagename at the header and the filename, location, date created at the footer of every page. Is there a way to set the conversion settings to not display these information in the comverted pdf file?
    Thanks.

    File > Create PDF > From Web Page...
    Press the button Settings... and change the settings.

  • Converting from HTML to php

    Generally Dreamweaver provides good support for changes to
    templates, and
    automatically updates all the files using a particular
    template when you change
    that template. However this breaks down if you change a
    template, or a file, to
    .php. Dreamweaver regards this as creating a new file, and
    does not offer to
    update links.
    My master template was basicpage.dwt. I created a new dynamic
    page, copied the
    guts of basicpage.dwt into it, and then saved it as basic
    page.dwt.php.
    I didn't really expect Dreamweaver to recognise that this was
    replacing
    basicpage.dwt, but when I opened the template directory I was
    surprised to find
    that it did not show the extensions, just two files
    basicpage. So I renamed
    basicpage.dwt.php to basicphpage.dwt.php so I could tell them
    apart. Then I
    opened index.htm, attached it to basicphpage.dwt.php,
    inserted some php to
    verify that it worked and resaved it as index.php. I uploaded
    to my file server
    and verified that the php worked. I also found that my host
    system loaded
    index.php by default.
    Next I opened one of the existing subsidiary templates,
    attached it to
    basicphpage.dwt.php, and resaved it. Dreamweaver saved it
    with the correct
    extension, but again did not recognise that I had changed the
    template.
    Next I opened one of the dependent files, attached it to the
    new template, and
    resaved it. Again Dreamweaver regarded this as creating a new
    file, and did not
    offer to update links. So when I convert each template I will
    then have to open
    every existing page using it, manually attach the new version
    of the template to
    it, and manually update all the links in it, or referring to
    it. Drat!
    It looks as if I should only convert those pages which I want
    to be dynamic, and
    only do so when I am ready to add the new functionality.
    Clancy

    Yeah. Clancy only wants to hear his truth....
    No offense, Clancy, but my dogma beats your dogma.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "(_seb_)" <[email protected]> wrote in message
    news:[email protected]...
    > sorry for the dogma. I'll stop
    >
    > (_seb_) wrote:
    >> I sure do get your point. learning all that stuff is
    rather boring in
    >> itself. That's what I've told myself for years,
    until I dived into PHP
    >> (with a book at first, but now I just go to
    >>
    http://us3.php.net/manual/en/)
    whenever I need to learn something new.
    >>
    >> Once I did, and once I managed to setup a local
    testing server on my
    >> machine, I was surprised at how easy it was to learn
    the basic stuff that
    >> allows content architecture management. It took me
    about two weeks to
    >> learn the most useful techniques (how to generate
    html code with php, how
    >> to include remote files, how to use arrays, how to
    use conditionals).
    >>
    >> Now that I know that, I enjoy building websites much
    more, and I can do
    >> it much faster. For one thing, you say you have 'a
    total of 300 to 400
    >> pages'. That's a problem with static sites. Pages
    number has become an
    >> irrelevant concept since I use PHP. My sites rarely
    have more than 10
    >> 'pages', even if the visitor can navigate through
    vast ammounts of
    >> content. Because PHP templates allow me to generate
    pages on the fly,
    >> depending on what content needs to be displayed, so
    I can add content
    >> without having to build new pages... That's a lot of
    fun to build sites
    >> that way. I also can offer much more to my clients
    in terms of
    >> flexibility and content management, which allows me
    to charge them
    >> more... Website maintenance is a breeze. If I had
    known what
    >> possibilities it would open and how it would
    optimize my workflow, I
    >> wouldn't have waited so long to dive into it.
    >>
    >> But of course there is a time for everything. I just
    couldn't recommend
    >> anything more than learning a server-side language,
    to anybody who wants
    >> to make a living of webdesign (and have fun doing
    it).
    >>
    >> Clancy wrote:
    >>
    >>> "(_seb_)" <[email protected]> wrote:
    >>>
    >>>
    >>>> if you use PHP I don't see why you would use
    Dreamweaver templates.
    >>>> You can do with PHP more, better, and fatser
    in terms of content
    >>>> architecture (i.e. really functional
    templates) than what DM templates
    >>>> can do. AND, your dynamic PHP templates
    won't be dependent on
    >>>> Dreamweaver's UI.
    >>>
    >>>
    >>>
    >>> I have been working on my several web sites for
    about four years now,
    >>> and
    >>> probably have a total of 300 to 400 pages. These
    work, I think they
    >>> look
    >>> attractive, and user feedback has been
    favorable. If I had nothing
    >>> better to do, I could probably spend a year or
    so working out
    >>> how to do the same job without using templates.
    The resulting new
    >>> design MIGHT
    >>> be significantly easier to modify, and perhaps
    even to maintain, but the
    >>> new
    >>> pages would probably look much the same (I like
    the way they look now!),
    >>> and I
    >>> very much doubt if the visitor would notice the
    difference.
    >>> I can see that there are a number of minor
    improvements I will be able
    >>> to make
    >>> to my sites, once I have mastered php and mysql,
    but the one major
    >>> incentive I
    >>> have for learning them is that I have a number
    of photo albums, and it
    >>> will be
    >>> much easier to add new photos once I have set up
    a database. I have
    >>> already passed my biblical 'use by' date, and I
    don't feel that I have a
    >>> year to throw away just to make my web sites
    comply with someone else's
    >>> dogma.
    >>> I have a lot more material I would like to add
    to my various web sites,
    >>> and I
    >>> feel that this would be a much more profitable
    use of my remaining time,
    >>> to say
    >>> nothing of it being much more fun.
    >>>
    >>>
    >>> Clancy
    >>
    >>
    >>
    >
    >
    > --
    > seb ( [email protected])
    >
    http://webtrans1.com | high-end web
    design
    > Downloads: Slide Show, Directory Browser, Mailing List

  • IWeb routing back from html snippet code

    I have created my site in my local folder (sites/site). In the site I use a HTML snippet in which I pasted HTML code from JotForm in order to have a contact form. This worked fine. Then I published to web.me.com... and now every time I hit the submit button (HTML code) the routine runs perfect and an email is submitted to me but I don't come back to the site but get an error code: The requested URL /users/maartenlamers/sites/site/startpage.html was not found on this server. It seems that the routing pointer is set wrong... and I found no way of correcting this... Any suggestions are welcome...

    I believe that JotForm allows you to get your visitors to return to a page of your site do they not? If so, then to correct this you need to go back to JotForm and alter the settings there. You created the form there, so you need to make alterations there. It's not an iWeb issue - all you did was enter the code into an html snippet.
    Also, your url is not a correct url so of course it won't be found. Any url needs to start with http://web.me.com/users/maartenlamers/sites/site/startpage.html. If you leave out the web.me.com, then it won't find anything that is published because you have in fact missed out where the site is published, being web.me.com.
    Go back to JotForm and alter it there and then re-enter the code into an html snippet and you should find that it will work.

  • Converting from Html DB tables to PDF.

    We have an application running in Apex 2.2.1 against a 9i database. This application stores text, images and other table data in the database. We take this data and make a report to display in an HTML DB. Are there any Oracle tools to extract this same data and make a PDF or Word document?
    Thanks,
    Kirk

    Hi Kirk,
    I assume you want to push the contents of a db table out to a PDF document. I am not sure about the images in the db table, but apart from that, I can see two ways of doing this.
    1. Use APEX and Apache FOP see
    http://www.oracle.com/technology/pub/notes/technote_htmldb_fop.html
    This was written for version 1.6, but should hold true in 2.2.1 I believe.
    2. Take a look at www.utlpdf.com for generating PDF inside database
    You may also be interested that Product Management and Development are trying to get the same natively in APEX. See Client Statement of Direction (http://www.oracle.com/technology/products/database/application_express/2006_sod.html)
    Regards,
    Sunny.

  • Conversion failed when converting from a character string to uniqueidentifier

    how to convert the charter string to uniqueidentifier in  sql server 
    I tried for all the articals in the net can some one give me the better soluction for this.. i will use the cast and convert function but i didnt get the soluction over here.
    can you please give me the answer for this query........
    i have table called user1 contains column col1,
    col1
    d65cafc-1435-45d3-acce-dc464f02c4b1

    The first part is to short, it must be 8 signs, you have only 7; I added a zero and it works =>
    DECLARE @id varchar(60);
    SET @id = 'd65cafc0-1435-45d3-acce-dc464f02c4b1'
    SELECT CONVERT(uniqueidentifier, @id)
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • How to read and then extract HTMl source code using java program?

    Hi,
    Could someone tell me how to read and then extract the content of certain tag from html source code. For example, given url http://.... , I would like to know what the <Title> content <Title> in that page is.
    Any help is greatly appreciate.

    Use a URLConnection to make the connection to the page at the needed URL. From the URLConnection, you can get an InputStream that is the stream of data from that page. Just search through the stream and find the <title> tags (don't forget to check for case sensitivity).

  • How to convert from xml file to html using java code

    How to convert from xml file to html file using java code

    Get yourself Apache Xalan or Saxon or some XSLT processor
    String styleSheet = "/YourXSLTStylesheet.xsl";
    String dataSource = "/YourXMLDocument.xml";
    InputStream stylesheetSource = TransformMe.class.getResourceAsStream(styleSheet);
    InputStream dataSourceStream = TransformMe.class.getResourceAsStream(dataSource);
    OutputStream transformedOut = new FileOutputStream("filename.html");
    TransformerFactory tFactory = TransformerFactory.newInstance();
    Transformer transformer = tFactory.newTransformer(new StreamSource(stylesheetSource));
    transformer.transform(new StreamSource(dataSourceStream), new StreamResult(transformedOut));You'll also need to learn XSLT if you don't already know that. Here's a good place to start
    http://www.w3schools.com/xsl/

  • Unwanted character codes (&amp; etc) from XML displaying in Flash

    I have a static, UTF-8 encoded XML document that gets loaded
    by a custom movie clip class into an array and then items from the
    array are read and displayed in a dynamic text field that is
    attached to the movie clip, depending on which one is rolled over.
    Everything works perfectly except that an ampersand displays as
    &amp; apostrophes display as &apos; and quotes display as
    &quot;, even if I use the special character inside the XML.
    Higher level character codes actually display properly, so
    character codes for circle shaped bullets, registered trade mark
    symbol, Greek characters, etc, work! But a blessed ampersand does
    not.
    Setting the dynamic text field to either read as HTML or not
    read as HTML makes no difference.
    Using CDATA tags in the XML makes no difference. In fact,
    when I use CDATA tags and enclose text containing a special
    character code, Flash goes the extra step of converting the
    ampersand in the special character code to &amp;!! So
    &quot; becomes &amp;quot;.
    Using &#38; just gets converted to &amp;. So Flash's
    XML parser is parsing the &#38 to an ampersand, which Flash's
    text parser then converts to &amp;. WHY? And how do I stop it?
    I found the function below to clean out the unwanted
    characters, and it works, but it seems a ridulous length to go to.
    And I probably have to extend it to accomodate whatever other
    characters don't work in Flash, but I don't know what those might
    be until I encounter them.
    Also, the function works whether I use a special character in
    the XML or not. ie, if I put an actual "&" into the XML, this
    function will display "&" and if I put &amp; into the XML,
    it will still display as "&".
    Thanks for any help.

    Have a look at this:
    http://www.smithmediafusion.com/blog/?p=144
    Dan Mode
    --> Adobe Community Expert
    *Flash Helps*
    http://www.smithmediafusion.com/blog/?cat=11
    *THE online Radio*
    http://www.tornadostream.com
    *Must Read*
    http://www.smithmediafusion.com/blog
    "maija_g" <[email protected]> wrote in
    message
    news:[email protected]...
    >I have a static, UTF-8 encoded XML document that gets
    loaded by a custom
    >movie
    > clip class into an array and then items from the array
    are read and
    > displayed
    > in a dynamic text field that is attached to the movie
    clip, depending on
    > which
    > one is rolled over. Everything works perfectly except
    that an ampersand
    > displays as &amp; apostrophes display as &apos;
    and quotes display as ',
    > even
    > if I use the special character inside the XML. Higher
    level character
    > codes
    > actually display properly, so character codes for circle
    shaped bullets,
    > registered trade mark symbol, Greek characters, etc,
    work! But a blessed
    > ampersand does not.
    >
    > Setting the dynamic text field to either read as HTML or
    not read as HTML
    > makes no difference.
    >
    > Using CDATA tags in the XML makes no difference. In
    fact, when I use CDATA
    > tags and enclose text containing a special character
    code, Flash goes the
    > extra
    > step of converting the ampersand in the special
    character code to &amp;!!
    > So '
    > becomes &amp;quot;.
    >
    > Using &#38; just gets converted to &amp;. So
    Flash is parsing the &#38 to
    > an
    > ampersand, which it then converts to &amp;. WHY? And
    how do I stop it?
    >
    > I found the function below to clean out the unwanted
    characters, and it
    > works,
    > but it seems a ridulous length to go to. And I probably
    have to extend it
    > to
    > accomodate whatever other characters don't work in
    Flash, but I don't know
    > what
    > those might be until I encounter them. And the whole
    point to using the
    > XML was
    > so that someone without Flash could update the file.
    >
    > Thanks for any help.
    >
    > private function cleanTextFunc(txt):String {
    > txt = txt.toString();
    > txt = txt.split("&apos;").join("'");
    > txt = txt.split("&amp;").join("&");
    > txt = txt.split("&quot;").join("\"");
    > return txt;
    > }
    >

  • Applescript to convert from AW6 spreadsheets to Excel

    I have an iMac (iMac12,2) running OS 10.9.1 with applications of Pages’09 (4.3), Pages (5.0.1), Numbers’09 (2.3) and Numbers (3.0.1) available.
    One of my laptops is a MBA (MacBookAir1,1) that I have kept at 10.6.8 with applications Appleworks (6.2.2) and Appleworks (6.6.9) available.
    Recently, I converted many CWWP documents from AW6 into Pages.  This was done on the iMac with an Applescript that copied a file (AnyDocumentCWWP) to the desktop as a file named AWV6, opened AWV6 with Pages’09, saved the result as AWV6.Pages, applied the creation date and modify dates of the original to AWV6.Pages, moved the new AWV6.Pages to the original directory and moved the original file to the trash, renamed AWV6.Pages to the original filename (excluding extension).  The Pages version of the original document does not preserve the formatting of the CWWP, but the content was now discoverable with Spotlight.  Since I was primarily concerned with the content, I would consider the conversion effort successful enough.
    I performed the same sort of process on the iMac with CWSS documents converting from AW6 into Numbers.  Here the results were less successful.  I discovered that many of the converted spreadsheets had cells where the cell contained the last calculated value in substitute for the formula originally present -or- Numbers was unable to open the CWSS spreadsheet due to size limitations.  Neither problem occurs when the file is converted on the MBA by Appleworks into an Excel format.  For those CWSS files that did not properly convert to Numbers, I would like to perform a conversion to Excel.
    When a given spreadsheet is manually opened on the MBA with either version of Appleworks, one can “Save as” using several formats of Excel.  That operation will preserve the formula which cannot be recognized in Numbers’09. An example of this issue is when a spreadsheet has a cell that contains a formula with the function “ISNUMBER”.  When I manually open a CWSS in Appleworks (either 6.2 version), I can Save As Excel Win 97 … or Excel Mac 98 … creating an XLS file that preserves the formula.
    I have attempted two techniques with Applescript to be able to convert my CWSS documents into XLS format.  Neither seem to work.
    The first technique is very similar to a few lines extracted from a canned script found on http://macscripter.net/viewtopic.php?id=8296 the relevant code is:
    set theSprTranslator to "Excel Win 97, 2000, XP 2002 spr"
    tell application "System Events" to set mfpath to get path of disk item ("~/desktop/" as string)
    set newfile to (mfpath & "AWV6" as string)
    set NewFilename to AWV6XLS
    tell application "AppleWorks 6"
        activate
        open newFile -- alias reference is ok
        save using translator theSprTranslator with NewFilename and replace
        close front document without saving
    end tell
    When this did not work, I attempted a scripted GUI solution as a second option.  The GUI code I had found at http://stackoverflow.com/questions/17348326/applescript-to-save-an-appleworks-do cument-wont-compile-end-tell-vs-end-easy is:
    tell application "System Events"
             tell process "AppleWorks"
                     click menu item "Save As…" of menu "File" of menu bar 1
                     click menu button "File Format" of window "Save : AppleWorks 6"
                     click menu item "Excel Mac 5 spreadsheet" of menu 1 of menu button  "File Format" of window "Save : AppleWorks 6"
                     keystroke return
             end tell
    end tell
    Unfortunately there is no “File Format” menu button, after a bit of further research, I discovered UI Browser and wrote my own Applescript equivalent:
    set mytempwork1 to AWV6
    set theSprTranslator to “Excel Win 97, 2000, XP 2002 spr”
    tell application "Finder" to open file (mytempwork1 as string) of the desktop
    tell application "System Events"
        tell process "AppleWorks"
            click menu item "Save As…" of menu "File" of menu bar 1
            tell text field 1 of window "Save : AppleWorks 6"
                set value to "XX" & mytempwork1
            end tell
            click pop up button 1 of group 1 of window "Save : AppleWorks 6"
            click menu item theSprTranslator
            —click radio button 2 of group 1 of window "Save : AppleWorks 6"
            —delay 3
            —click radio button 1 of group 1 of window "Save : AppleWorks 6"
        end tell
    end tell
    tell application "System Events"
        tell process "AppleWorks"
            delay 10 — <<<<<IF YOU CLICK ON THE BUTTON WHILE IN THIS DELAY, THE SCRIPT WILL BEHAVE PROPERLY
            click button "Save" of window "Save : AppleWorks 6"
            delay 1
        end tell
    end tell
    This GUI script behaves almost as I would like.  It seems to ignore the setting of the “pop up button 1” unless I actually intervene while the script is running and I click on the button.  When I do so, the script runs as intended.
    Is there a way to force Appleworks to recognize the Applescripted value of the “clicked” menu item?

    Hello
    As far as I know, there's no need to resort to GUI scripting. The problem in exporting in AppleScript is that AppleWorks 6 only accepts typeChar (TEXT) data as translator name while AppleScript string has become always being represented as typeUnicodeText (utxt) since OS X 10.5. This makes passing translator name to save command difficult but there's a workaround method as shown in the sample code below. The |TEXT|() handler does the job. Tested with AppleWorks 6.2.4 under 10.6.8.
    main()
    on main()
        set export_translator to "Excel Mac 98, 2001 spreadsheet"
            "Excel Mac 5 spreadsheet"
            "Excel Mac 98, 2001 spreadsheet"
            "Excel Win 5 spreadsheet"
            "Excel Win 97, 2000, XP 2002 spr"
        set export_translator_TEXT to my |TEXT|(export_translator)
        set src to (path to desktop)'s POSIX path & "in.cwk"
        set dst to (path to desktop)'s POSIX path & "out.xls"
        set srca to src as POSIX file as alias
        set dsta to touch(dst) as POSIX file as alias
        tell application "AppleWorks 6"
            --return export translators
            open srca
            tell document 1
                if document kind = spreadsheet document then
                    save in dsta using translator export_translator_TEXT
                end if
                close saving no
            end tell
        end tell
    end main
    on touch(f)
        do shell script "touch " & f's quoted form
        return f
    end touch
    on |TEXT|(u)
            string u : source text
            return data : «data TEXT...» representing u converted to MACROMAN encoding
        do shell script "u=" & u's quoted form & "; printf '%s' \"$u\" | iconv -f UTF-8 -t MACROMAN | xxd -p"
        run (run script "
    script
        «data TEXT" & result & "»
    end script")
    end |TEXT|
    Hope this helps,
    H

  • Moving Scriptlet Code to backing bean when converting from JSP - Facelets

    Hello!
    We are converting our application from jsf1.2 to 2.0 and all jsps are being converted to XHTML. Some are trivial while others had very complex scriptlets.
    I would like to know what are some of the recommended ways of moving Scriptlet Code to backing bean when converting from JSP -> Facelets.
    I have thought about listeners, actionListeners, putting code getXXXX() of the backing bean and then calling #{bean.XXXX} but not sure whats the best way.
    I do appreciate the response!
    Eg of a jsp page:
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="/WEB-INF/xxx-jsf.tld" prefix="l" %>
    <%@ taglib uri="/WEB-INF/yyy-pp.tld" prefix="p" %>
    <%@ page import="com.ttyy.search.beans.jsf.AdvancedSearchFormManagedBean" %>
    <%@ page import="com.kkee.util.*"%>
    <%
        AdvancedSearchFormManagedBean advancedSearchFormManagedBean = (AdvancedSearchFormManagedBean) request.getSession().getAttribute("AdvancedSearchFormManagedBean");
        if (advancedSearchFormManagedBean == null) {
           advancedSearchFormManagedBean = new AdvancedSearchFormManagedBean();
           request.getSession().setAttribute("AdvancedSearchFormManagedBean", advancedSearchFormManagedBean);
        advancedSearchFormManagedBean.initializeForAdvancedSearchOptions();
        advancedSearchFormManagedBean.setQuickSearch();
         request.setAttribute("portletHeader", "Hello " + advancedSearchFormManagedBean.getPerson().getFirstname() + ", check out the latest programs in your practice areas and jurisdictions");
    %>
    <h:form id="MYCenterForm">
         <p:portletRenderer portletSetName="test of portlet"
              portletContainer="#{PortletContainerManagedBean}"
              id="MYCenter"
              portletScope = "TEST_SCOPE"
              suppressIfNoData="true"
              portletSkinName="SOME_SKIN">
              <f:facet name="persistenceToolkit">
                   <h:commandLink id="persistenceToolkitLink"
                        actionListener="#{PortletContainerManagedBean.persistPortletSetStateListener}">
                        <h:outputText value="Save State Of Portlet Set" id="persistenceToolkitLinkText"/>
                   </h:commandLink>
              </f:facet>
         </p:pagePortletSetRenderer>
    </h:form>
    <%
         String flag = PropertyItems.getInstance().getPropertyItem("response.time.flag");
         if("1".equals(flag)){
              ResponseTime rt = (ResponseTime) session.getAttribute("responseTime");
            if(rt!=null){
                rt.setDesc("my cle loaded");
                long now = System.currentTimeMillis();
                long start = rt.getStart() + rt.getTotal();
                rt.setInterval(now-start);
                rt.setTotal(rt.getTotal()+rt.getInterval());
                LogUtil.log(rt.toString(), LogUtil.DEBUG_LEVEL);
                session.setAttribute("responseTime", rt);
    %>

    That helps.
    This could be another topic question but itst kind of related to what i am doing right now. while converting JSP to facelet (in jsf2) I came across another issue.
    <h:commandLink id="Save" rendered="#{RegistrationBean.isNOTInOrigionalRegistrationMode}" action="#{RegistrationBean.updateProfile2Submit}" styleClass="#{portalSkinManagedBean.contentPortletSkin.strongTextStyle}">
              <l:htmlSkinnedImage id="SaveImage" style="border:0;" url="save.gif" alt="Save Information"/>
    </h:commandLink>When I click on the generated link, I get this. And this is happening for all the h:commandLink in the application.
    http://localhost:9080/registration/updateProfile2.jsf[request.getQueryString()=null][request.getRequestedSessionId()=F1CCE237DD81D301F1C4DBA6910FFD8A][request.isRequestedSessionIdFromCookie()=true][request.isRequestedSessionIdFromURL()=false][request.isRequestedSessionIdValid()=true]Parameters:[rolePracticeAreasForm:title=rolePracticeAreasForm:primaryPracticeArea=10002javax.faces.ViewState=-2943345291093118815:-4400303399130292206rolePracticeAreasForm:practiceAreasMod2=10148.1rolePracticeAreasForm:practiceAreasMod1=10002.1rolePracticeAreasForm:Save=rolePracticeAreasForm:SaverolePracticeAreasForm=rolePracticeAreasFormrolePracticeAreasForm:otherField=rolePracticeAreasForm:fromMyAccount=1]||
    javax.servlet.ServletException: Index: 0, Size: 0
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:325)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at com.legaledcenter.util.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:250)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
         at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at com.jscape.framework.galileo.support.upload.UploadFilter.doFilter(UploadFilter.java:71)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
         at java.util.ArrayList.RangeCheck(ArrayList.java:547)
         at java.util.ArrayList.get(ArrayList.java:322)
         at javax.faces.component.AttachedObjectListHolder.restoreState(AttachedObjectListHolder.java:161)
         at javax.faces.component.UIComponentBase.restoreState(UIComponentBase.java:1427)
         at com.sun.faces.application.view.StateHolderSaver.restore(StateHolderSaver.java:121)
         at com.sun.faces.application.view.StateManagementStrategyImpl$4.invokeContextCallback(StateManagementStrategyImpl.java:289)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:1253)
         at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:672)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:1262)
         at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:672)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:1262)
         at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:672)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:1262)
         at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:672)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:1262)
         at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:672)
         at com.sun.faces.application.view.StateManagementStrategyImpl.restoreView(StateManagementStrategyImpl.java:284)
         at com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:177)
         at com.sun.faces.application.view.ViewHandlingStrategy.restoreView(ViewHandlingStrategy.java:119)
         at com.sun.faces.application.view.FaceletViewHandlingStrategy.restoreView(FaceletViewHandlingStrategy.java:434)
         at com.sun.faces.application.view.MultiViewHandler.restoreView(MultiViewHandler.java:143)
         at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:199)
         at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
         at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
         ... 22 more
    ********** Message End *************Thanks

  • Functions for mapping Latin-1 character codes to and from WinLatin-1  character codes

    HI ALL
    I will like to know how could i write own functions for mapping Latin-1 character codes to and from WinLatin-1
    character codes.
    Can show me some source code or how to mapping it. Because i just begineer.
    Hope you able to help me..

    I see your issue. I tried to reproduce this issue using sqlplus.
    Setup NLS_LANG as you mentioned using WE8ISO8859P1 and connect to a UTF8 db.
    [oracle@server ~]$ locale -a | grep en_US
    en_US
    en_US.iso88591
    en_US.iso885915
    en_US.utf8
    [oracle@server ~]$ export LC_ALL=en_US.iso88591
    [oracle@server ~]$ locale
    LANG=en_US.UTF-8
    LC_CTYPE="en_US.iso88591"
    LC_NUMERIC="en_US.iso88591"
    LC_TIME="en_US.iso88591"
    LC_MEASUREMENT="en_US.iso88591"
    LC_IDENTIFICATION="en_US.iso88591"
    LC_ALL=en_US.iso88591
    [oracle@server ~]$ echo $NLS_LANG
    AMERICAN_AMERICA.WE8ISO8859P1
    SQL> select value from nls_database_parameters where parameter='NLS_CHARACTERSET';
    AL32UTF8
    SQL> select nchr(223) from dual;
    NCHR
    ß
    SQL> select chr(223) from dual;
    ERROR:
    ORA-29275: partial multibyte character
    SQL> SELECT CHR (223 USING NCHAR_CS) from dual;
    C
    ß
    SQL>  select  CONVERT('ß', 'WE8ISO8859P1','UTF8') FROM DUAL;
    CO
    SQL> select  CONVERT(CHR(223 USING NCHAR_CS), 'WE8ISO8859P1','UTF8') FROM DUAL;
    select  CONVERT(CHR (223 USING NCHAR_CS), 'WE8ISO8859P1','UTF8') FROM DUAL
    ERROR at line 1:
    ORA-12703: this character set conversion is not supportedI found that beta is in WE8ISO8859P1 character set
    here[url http://docs.oracle.com/cd/E11882_01/server.112/e10729/ch2charset.htm#NLSPG164]What Characters Does a Character Set Support?
    But I don't really understand whats the problem in the conversion.

  • ABAP code needed to convert from 0calmonth2 & 0calyear to 0calmonth

    Hi SAP GURUS,
    Can anybody give me the ABAP code to convert from 0calmonth2 and 0calyear to 0calmonth.and please suggest me whether i have to write start routine or end routine in transformations.
    Thanks ALL.

    hi,
    in the transformation map 0calmonth2 and 0calyear to the 0calmonth field, and from drop down choose routine.
    there will be an area where it will be mentioned write your piece of code below this line.
    paste the below code:
    Concatenate source_fields-0calmonth2 source_fields-0calyear into result.
    also delete the line result = .
    save the routine and execute the package.
    regards,
    Arvind.

  • Convert from String data type to Character data type

    Hi...,
    I'm a beginner. I try to make a program. But I don't know how to convert from string to data type. I try to make a calculator with GUI window. And when somebody put "+" to one of the window, I just want to convert it to Character instead of String.
    Sorry of my bad english..
    Please help me....
    Thanks

    String s = "a+b";
    char theplus = s.charAt(1);

Maybe you are looking for

  • JDBC Direct Connections to MS Access

    My company utilizes an Intranet web Java client to post data into multiple Microsoft Access databases. For the longest we have used dbAnywhere as middleware to connect the applet and the database. dbAnywhere is no longer supported and this process se

  • Problem in using the list box

    hi, i have developed a dynamic list box, in html using java script.i have taken two list boxes. the values of second list box depends on the value selected in the first list box. after selection i was moving to the next page,then after i was moving b

  • HELP PLEASE: Tomcat 3 - Sun ONE Migration Problems

    Hi everybody. We are new Sun One users. We are trying unsuccessfully to migrate our tomcat application to this environment. in order to deploy it we have created a WAR file from the Netbeans Ide and we are trying to load it into Sun One AS... but it

  • User Exit - Availability Check

    Hi PP friends. Pls, i want to know if any of know about the user exit ATP00001, and if i could use it in the availability check of production orders. Pls, if you have an example of the code pls share with me, i couldn find people who know this exit,

  • I downloaded Lightroom 4, but it won't install on my Mac OS version 10.8.3

    I get the following message when I try to install Lightroom 4:  The app's authorization has been revoked Although this app was signed by an identified developer, the certificate for the app has been revoked. There may be a problem with it. The app ca