HTMLDataSet paragraph tag in header not allowed?

Anything I am doing wrong?
Spry’s HTMLDataSet (SpryHTMLDataSet.js - version 0.25 - Spry Pre-Release 1.6.1) doesn't seem to give the data in any column in which the header is enclosed within a paragraph tag.
Snippets demonstrating this are below.  The first column of data does not display.  Take out the <p></p> from the 1st column and all works as expected. 
Strangely, the data may be enclosed without effect.
As a new user of CS5 and DW, I encountered this while going through the CS5 CW Classroom in a Book sample in chapter 14.  Had to spend of bit of time narrowing down the source of the original problem, which was that only the headers display in Live View or IE.  My apologies if this something most people already know.
<script src="SpryAssets/SpryData.js" type="text/javascript"></script>
<script src="SpryAssets/SpryHTMLDataSet.js" type="text/javascript"></script>
<script type="text/javascript">
var ds1 = new Spry.Data.HTMLDataSet("MySimpTbl.html", "SimpTbl");
</script>
</head>
<body>
<h1> My Temp Page Test </h1>
<div spry:region="ds1">
  <table>
    <tr>
      <th spry:sort="HC1">HC1</th>
      <th spry:sort="HC2">HC2</th>
      <th spry:sort="HC3">HC3</th>
      <th spry:sort="HC4">HC4</th>
    </tr>
    <tr spry:repeat="ds1">
      <td>{HC1}</td>
      <td>{HC2}</td>
      <td>{HC3}</td>
      <td>{HC4}</td>
    </tr>
  </table>
</div>
  <p> end of page </p>
</body>
Within MySimplTbl.html:
<body>
<table id="SimpTbl">
  <caption>
    Simple Table
  </caption>
  <tr>
                <th><p>HC1</p></th>
    <th>HC2</th>
    <th>HC3</th>
    <th>HC4</th>
  <tr>
    <td>r1c1</td>
    <td>r1c2</td>
    <td>r1c3</td>
    <td>r1c4</td>
  </tr>
  <tr>
    <td>r2c1</td>
    <td>r2c2</td>
    <td>r2c3</td>
    <td>r2c4</td>
  </tr>
  <tr>
    <td>r3c1</td>
    <td>r3c2</td>
    <td>r3c3</td>
    <td>r3c4</td>
  </tr>
</table>
</body>

Thanks for your reply.
Re:
In the same way I am confused why you should want to use a p-element for a heading.
Excellent question.  I'm all for the - if it hurts, don't do it without good reason - philosophy.  The authors of the book I am using to learn Dreamweaver, "Adobe Dreamweaver CS5 Classroom in a Book", had the p-elements in their lesson 14 file for learning HTMLDataSet use.  I couldn't tell you why they chose to have p-elements in the headers.  The rest of the book, which has versions for CS3 and CS4, has been without significant flaw.  So as a newbie, I assumed I might have the incorrect .js or done something wrong.
Lacking vision of a positive return on effort required to pursure this further, I'll mark this question as answered and benignly assume that an undocumented and unsupported feature of supporting p-elements in the headers of previous versions of the HTMLDataSet has been removed.

Similar Messages

  • Some paragraph tags are not printing when document is printed from Framemaker 10.

    So this is really odd. I have a situation where I have a document that I am developing in Framemaker 10 several different paragraph tags are intermittently not printing when the document is physically printed. When I go to print the document from Framemaker 10 to a physical piece of paper some tags are printing partially or not at all. What makes this stranger to me is that when I print the document to a PDF, all of the content and tags show up in the PDF. Then when I try to physically print from the PDF, the tags do no print from that document as well.
    Typically the tags that are not printing are those that have been bolded, but are across several different tags. Also the problem is sometimes only to the first line of a tag, where if the tag carries over to a second line in the document, the text on the second line prints. Another quirky instance that shows up is where the text a line will print only parts of the text. The document uses the same type font for the entire document, Helvetica 55 Roman. The font size varies and the coloring varies as well, but this issue is happening for all sizes and colors.
    I'm not sure what additional information is important here, but if you need additional information please request it and I will supply it to the best of my ability. I'm a content developer with an intermediate amount of experience with Framemaker.

    I'm not sure if this is the same problem, and you didn't mention your
    OS, but there was a widespread problem with dropped text in PDF with
    Windows XP. A hotfix was issued to fix it. If on Windows XP, you should
    install it:
    http://blogs.adobe.com/techcomm/2008/07/hotfix_for_framemaker_1.html
    Also, you mentioned that it was "bolded" text that tended to have the
    problem. Bolded text is artificially bold and does not use actual bold
    fonts. (If I recall, text is double printed at a slight offset to give
    the appearance of a bold font.) So there is no bold font to embed. Be
    sure you install and use an actual bold font, rather than using the
    bolded characteristic, or you could see problems.
    This is a stretch, but you also mentioned that some of the problem
    sections have colored text. Check the printer properties of your Adobe
    PDF virtual printer to make sure someone didn't reassign the driver (on
    the Advanced tab). It should be set to use the Adobe PDF Converter
    driver (or Acrobat Distiller in older Acrobat versions). Years ago,
    people sometimes changed this setting to use other drivers for various
    reasons, not realizing that they limited themselves to the capabilities
    of that driver. So, if they chose an HP LaserJet PostScript driver, for
    example, their documents might no longer be able to be 11"x17" or
    color-- because the printer couldn't handle it. The driver was limited
    to 8.5"x14" and black-and-white. Perhaps there is a driver set that is
    choking on the colored text-- though I would think it would merely
    convert it to B&W.
    Okay, I've grasped at enough straws.

  • FrameMaker Paragraph tags not consistently mapping in RoboHelp

    Hello, I have a FrameMaker book, which i have linked to a RoboHelp project. I successfully mapped all the paragraph tags from FM to RH. However, when i compile my help some of my headings do not appear correctly. For example, my Heading 1s have a different appearance from topic to topic. I looked at my FM source files and there are no paragraph or character overrides on any of the affected headings.  When I open the topic in RH, i can see that  the paragraph symbol at the end of the heading is the correct size, but the text itself is smaller than it should be. I discovered a way to fix this, but it is VERY time consuming. (i.e. In FM, highlight each heading, reapply the paragraph tag, apply the default font character tag)  This fix is not a viable option since i have thousands of topics. Any suggestions?

    Apparently RH also ignores FM styles that only appear in
    tables. Weird. If I add text using the parapgraph styles into the
    body of the FM file, the styles are imported by RH (I had to add
    text to the pgf for RH to see it). But if the style is not used in
    FM anywhere but a table, RH ignores it.
    Another show-stopper: Rows in tables are ignored by RH if
    multiple conditional tags are applied to the row. For example, a
    row is conditionalized with "A' & 'B' and you import the FM
    file applying the 'B' condition, the row will not show up in the
    table. If the row is only tagged 'B', it will show up. Other
    straddled rows that are tagged with a condtion other than the one
    used to import into RH will cause misaligned columns in the
    table.

  • Deleting paragraph tags that are in use is allowed in FM 9!

    Has anyone besides me noticed that FM 9 allows you delete a paragraph tag in a document even though the paragraph tag is in use? I've found that the result of deleting the tag is that text with that tag is unaffected and even still has the deleted tag applied to it. However, the tag is no longer selectable from the paragraph tag list. FM8 would prompt would warn you that its in use before you attempt to delete it.
    The above behavior is at least the case for documents that I've used that were originally created in FM 8. Anyway, this lack of warning makes it darn impossible to efficiently remove unused tags from a document.
    Thanks.
    -Kurt Euler

    kdeuler wrote:
    Has anyone besides me noticed that FM 9 allows you delete a paragraph tag in a document even though the paragraph tag is in use? I've found that the result of deleting the tag is that text with that tag is unaffected and even still has the deleted tag applied to it. However, the tag is no longer selectable from the paragraph tag list. FM8 would prompt would warn you that its in use before you attempt to delete it.
    Kurt,
    I'm not sure why you think that FM8 has been different… it isn't. Every version of FM has always allowed to delete paragraph styles, no matter if they are used or not. Paragraphs using the (deleted) format are now shown with an asterisk, like an overidden format, while keeping all attributes.
    This is why 3rd party vendors like ITL sell FrameScript scripts, which only delete unused styles and objects from documents.
    Bernd

  • Header tags disappear - do not display when uploaded to server

    I have a website that contains H3 tags will not display.   Does anyone know what would cause the tags not to work?  
     <div class="services_icon1"></div>
    <h3>Initial Evaluation</h3>
    <p>
     This is considered our initial meeting with you, to brainstorm and review website design, functionality, budget and timing objectives. We prefer face-to-face, but we can also accomplish the same tasks through email, web conferencing and telephone.
    </p>
    <h3>Design and Build</h3> 
     <hr /> <p>Our website designers begin coding individual pages, functionality is programmed, and site copy content is written and added, completing the design phase. </p>
    <hr />

    Validate your page here:
    http://validator.w3.org/
    number of errors including :
    Line 158, Column 12: document type does not allow element "h3" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
            <h3> Key Features</h3>

    The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
    One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
    even though the current page does display the <h3> tag... validator doesn't like it
    Adninjastrator

  • Design view of jspx not rendering : Error exercising tag : afh:head

    I'm using JDeveloper 10.1.3.4 and I have an intermittent problem where by the jspx does not render correctly in design view - it just shows a whole load of nested boxes.
    By following a suggestion from another website I turned on "Design time messages in log" in jdeveloper JSP visual editor preferences.
    The error messages being sent to the log window are :
    Error exercising tag : afh:head
    java.lang.NullPointerException
         at oracle.adfinternal.view.faces.renderkit.AdfRenderingContext.getTranslatedString(AdfRenderingContext.java:70)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.jsLibs.GlobalVariablesScriptlet.outputScriptletContent(GlobalVariablesScriptlet.java:49)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.jsLibs.Scriptlet.outputScriptletImpl(Scriptlet.java:111)
    Error exercising tag : af:forEach
    javax.servlet.jsp.JspTagException: 'begin' and 'end' should be specified if 'items' is not specified
         at oracle.adfinternal.view.faces.taglib.ForEachTag._validateAttributes(ForEachTag.java:320)
         at oracle.adfinternal.view.faces.taglib.ForEachTag.doStartTag(ForEachTag.java:93)
    Error exercising tag : afh:body
    java.lang.NullPointerException
         at oracle.adfinternal.view.faces.renderkit.core.CoreAdfRenderingContext.getStyleClass(CoreAdfRenderingContext.java:211)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.XhtmlRenderer.renderStyleClass(XhtmlRenderer.java:338)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer._renderLibraryDownloadElement(PanelPartialRootRenderer.java:480)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.renderPPRSupport(PanelPartialRootRenderer.java:340)
    How can I fix this ?
    Cheers,
    Brent

    Hi Didier,
    Sorry, intermittent problem is not very descriptive ! What I actually meant is that some of my applications have the problem while others dont. Once the problem exists, it always does regardless of restarting JDeveloper.
    Starting JDeveloper using the console provided similar error message to outputting the JSP visual editor to the log file :
    SEVERE: Element End name:head does not match start name:script
    04-Dec-2009 17:28:38 oracle.adfinternal.view.faces.io.HtmlResponseWriter endElem
    ent
    SEVERE: Element End name:html does not match start name:div
    Reading other posts, problems seemed to stem from errors within the faces-config or web.xml files so I compared them between apps displaying pages correctly and ones that weren't. I found a difference in the filter-mapping section of the web.xml. Changing the entries to match the applications that displayed correctly has worked !!
    The entries for the apps that didn't display correctly :
        <filter-mapping>
            <filter-name>adfFaces</filter-name>
            <servlet-name>Faces Servlet</servlet-name>
            <dispatcher>FORWARD</dispatcher>
            <dispatcher>REQUEST</dispatcher>
        </filter-mapping>
        <filter-mapping>
            <filter-name>adfBindings</filter-name>
            <url-pattern>*.jsp</url-pattern>
        </filter-mapping>
        <filter-mapping>
            <filter-name>adfBindings</filter-name>
            <url-pattern>*.jspx</url-pattern>
        </filter-mapping> 
      <filter-mapping>
        <filter-name>adfBindings</filter-name>
        <servlet-name>ordDeliverMedia</servlet-name>
      </filter-mapping>
      <filter-mapping>
        <filter-name>jhsAuthenticationFilter</filter-name>
        <url-pattern>*.jsp</url-pattern>
      </filter-mapping>
      <filter-mapping>
        <filter-name>jhsAuthenticationFilter</filter-name>
        <url-pattern>*.jspx</url-pattern>
      </filter-mapping>... and the entries for the apps that did display correctly :
        <filter-mapping>
            <filter-name>adfFaces</filter-name>
            <url-pattern>*.jsp</url-pattern>
        </filter-mapping>
        <filter-mapping>
            <filter-name>adfFaces</filter-name>
            <url-pattern>*.jspx</url-pattern>
            <dispatcher>REQUEST</dispatcher>
            <dispatcher>FORWARD</dispatcher>
        </filter-mapping>
        <filter-mapping>
            <filter-name>adfBindings</filter-name>
            <url-pattern>*.jsp</url-pattern>
        </filter-mapping>
        <filter-mapping>
            <filter-name>adfBindings</filter-name>
            <url-pattern>*.jspx</url-pattern>
            <dispatcher>REQUEST</dispatcher>
            <dispatcher>FORWARD</dispatcher>
        </filter-mapping>
        <filter-mapping>
            <filter-name>adfBindings</filter-name>
            <servlet-name>ordDeliverMedia</servlet-name>
        </filter-mapping>
        <filter-mapping>
            <filter-name>jhsAuthenticationFilter</filter-name>
            <url-pattern>*.jsp</url-pattern>
        </filter-mapping>
        <filter-mapping>
            <filter-name>jhsAuthenticationFilter</filter-name>
            <url-pattern>*.jspx</url-pattern>
        </filter-mapping>Somehow the filter-mapping entries for the adfFaces and adfBindings filter got all screwed ? Strange as the application has always worked fine, the only (obvious) problem has been the jspx pages not rendering properly in design view.
    Once updating the web.xml with the correct value for these two entries, the pages are displayed correctly :)
    While I don't like blindly making changes like this to the web.xml - the application still seems to function !
    Cheers,
    Brent

  • Character '$' is not allowed in an XML tag name. /ERROR

    Hi,
    I was testing cli command java OracleXML getXML ....
    getting following error result:
    <?xml version = '1.0'?>
    <ERROR>oracle.xml.sql.OracleXMLSQLException: Character '$' is not allowed in an XML tag name.</ERROR>
    This was because the database column name included $ characters.
    Question 1: Is it possible use getXML/putXML cli operations for tables containig these $ columns
    and how?
    Now I found the method setSQLToXMLNameEscaping(true) and tried the same query using the modified
    sample java code of XSU documentation. This time I got error result:
    <?xml version = '1.0'?>
    <ERROR>oracle.xml.sql.OracleXMLSQLException: You are using an old version of the gss library; thus, sql-xml name escaping is not supported.</ERROR>
    Question 2: What is this gss library and is there up-to-date version available - and will it solve my
    $ problem?
    Thanks,
    Olavi

    Hi,
    I was testing cli command java OracleXML getXML ....
    getting following error result:
    <?xml version = '1.0'?>
    <ERROR>oracle.xml.sql.OracleXMLSQLException: Character '$' is not allowed in an XML tag name.</ERROR>
    This was because the database column name included $ characters.
    Question 1: Is it possible use getXML/putXML cli operations for tables containig these $ columns
    and how?Please use alias in your SQL query for the column with $, like
    select sys$rowno_info as rowinfo..OK for getXML but how to do this with putXML?
    Now I found the method setSQLToXMLNameEscaping(true) and tried the same query using the modified
    sample java code of XSU documentation. This time I got error result:
    <?xml version = '1.0'?>
    <ERROR>oracle.xml.sql.OracleXMLSQLException: You are using an old version of the gss library; thus, sql-xml name escaping is not supported.</ERROR>
    Question 2: What is this gss library and is there up-to-date version available - and will it solve my
    $ problem?gss libs is ithe nls_charset12.jar located in jdbc/lib.
    Olavi
    I added nls_charset12.jar dated july 2002 into my classpath without
    success?
    Olavi

  • Paragraph tags not applied correctly

    Hi,
    I’m importing an FM document into RH (Technical
    Communication Suite). I fixed all the paragraph definitions and the
    mappings.
    After importing, the same paragraph tags are sometimes
    applied correctly and sometimes not. Most problematic are the ones
    that come right after a paragraph that has a bullet or number
    setting. It seems as though the following paragraph sometimes has a
    bullet or number even though you can’t see it.
    If I reapply the paragraph tag it doesn’t help, but if
    I apply a different one and then the original one I wanted –
    it works OK.
    Is there a workaround? Am I doing something wrong?
    Thanks,
    Rakefet

    Have you updated lately? I applied RoboHelp patch 7.0.2 and
    it fixed may random isses that I was having. Also I would recommend
    mapping all numbered and bulleted lists to Normal to have them
    appear correctly. Also don't forget to check Convert AutoNumber to
    HTML list on the Style Setting window.
    Amanda

  • Feature request: Heading Tags and Paragraph Tags for Text element

    Sugestion: Would like to see Reflow be able to format text element with heading tags like <h1> and paragraph tag <p>.

    Thanks! Style management and reusable styles are a HUGE feature set coming to Reflow...won't be there immediately but very soon.  Thanks for the input.

  • Paragraph tag not included in catalog.

    fm11 in win7.
    In the document I'm working on, some lines appear to be in a paragraph tag named "RegName". But this "RegName" can not be found in the catalog, ie if I click on the arrow to select the paragrah tag, "Regname" is not included.
    Thanks for your help.
    Stephane.

    > But I'm just wondering how this Paragraph tag could be referenced in the document while it was not in the catalog?
    Paragraphs with new tags are not automatically added to the Catalog. It's an option when creating one. When pasting in text from another FM document, new tags are not automatically cataloged. For a tag one already in the catalog, doing a Delete Format on it only removes it from the cat. Text containing it is still present and still tagged with the deleted format.
    There actually is a command (dialog sequence) that causes every format in use to get added to the cat (and the details of which I don't recall at the moment). Instances of existing catalog formats with overrides get cat entries with new names. Massive catalog pollution results, but it's great if the intent is to clean up overrides and weed out (or adopt) rogues.

  • The 'Access-Control-Allow-Origin' header contains multiple values '*, *', but only one is allowed. Origin 'null' is therefore not allowed access.

    Hello. I added custom http response headers to my SP site web config file as follows: 
    <httpProtocol>
          <customHeaders>
                 <add name="Access-Control-Allow-Methods" value="POST,GET,OPTIONS" />
          <add name="Access-Control-Allow-Origin" value="*" />
          <add name="Access-Control-Allow-Headers" value="Content-Type,Authorization" />
          </customHeaders>
        </httpProtocol>
    When I try to call any web service, i get these headers two times each: 
    HTTP/1.1 200 OK
    Cache-Control: private, max-age=0
    Transfer-Encoding: chunked
    Content-Type: application/atom+xml;type=entry;charset=utf-8
    Expires: Sat, 01 Mar 2014 19:11:37 GMT
    Last-Modified: Sun, 16 Mar 2014 19:11:37 GMT
    ETag: "3"
    X-SharePointHealthScore: 0
    SPClientServiceRequestDuration: 20
    SPRequestGuid: b4e77d9c-bfc3-a050-493a-ca5d251d1a72
    request-id: b4e77d9c-bfc3-a050-493a-ca5d251d1a72
    X-FRAME-OPTIONS: SAMEORIGIN
    Persistent-Auth: true
    Access-Control-Allow-Methods: POST,GET,OPTIONS
    Access-Control-Allow-Origin: *
    Access-Control-Allow-Headers: Content-Type,Authorization
    X-AspNet-Version: 4.0.30319
    X-Powered-By: ASP.NET
    Access-Control-Allow-Methods: POST,GET,OPTIONS
    Access-Control-Allow-Origin: *
    Access-Control-Allow-Headers: Content-Type,Authorization
    MicrosoftSharePointTeamServices: 15.0.0.4569
    Date: Sun, 16 Mar 2014 19:11:37 GMT
    and that gives me error from ajax: The 'Access-Control-Allow-Origin'
    header contains multiple values '*, *', but only one is allowed. Origin 'null' is therefore not allowed access.
    The 'Access-Control-Allow-Origin' header contains multiple values '*, *', but only one is allowed.
     Origin 'null' is therefore not allowed access.
    Any idea???

    Hi Ann,
    Please check whether there are duplicate custom headers in your code.
    Similar issue for your reference:
    http://social.msdn.microsoft.com/Forums/office/en-US/b79b75f4-b46b-46ae-ae29-17a352b6b90b/custom-http-response-headers-for-sp-2013-shown-2-times?forum=sharepointdevelopment 
    Regards,
    Rebecca Tu
    TechNet Community Support

  • When making a new playlist, the screen layout has changed, the playlist header is now on the left instead of the right, this does not allow me to drag the songs onto the playlist, how do I reset?

    When Making a new play list, the play list was on the right of the screen and this allowed you to drag your music onto the playlist, my setup has changed to the left of the screen which does not allow you to drag your music across, how do I reset?

    In the top corner of iTunes is a small icon with a down arrow, click on that and choose 'show menu bar'. 
    Then on the view menu which now appears choose 'show sidebar'

  • SAXParseException in web.xml, not allowing the env-entry tag?????

              Dears, I have a WLS 5.1 sp6, and added a
              weblogic.httpd.webApp.demowar=/temp/alphaworks/servlet/demo_feat.war
              in weblogic.properties, and when I start the weblogic server occuring
              [ServletEntityResolver] : Could not resolve entity '-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN'. Check your
              dtd reference.
              ..<HTTP> Error parsing descriptor in Web application '/temp/alphaworks/servlet/demo_feat.war'
              org.xml.sax.SAXParseException: Element "web-app" does not allow "env-entry" here.
                   at com.sun.xml.parser.Parser.error(Parser.java:2775)
              --------------- nested within: ------------------
              Received SAXParseException from Sun Parser at line 283, column -1: org.xml.sax.SAXParseException: Element "web-app" does not allow "env-entry" here.
                   at weblogic.xml.dom.SunDOMParser.getDocument(SunDOMParser.java:72)
              Wed Dec 06 18:50:17 GMT-02:00 2000:<E> <HTTP> Error creating servlet context for Web application '/temp/alphaworks/servlet/demo_feat.war'
              java.lang.NullPointerException
                   at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:626)
              any other default servlet (that comes with weblogic) works fine, and this .war runs good in
              Orion 1.4.4, adn J2EE RI 1.2.1 !
              in web.xml the dtd is from java.sun.com, and I chaged to http://localhost/servlet_2_2.dtd (where the url is fine, because I can download).
              

    Double-check the DTD. WebLogic likes the XML to be in the same exact order
              as found in the DTD.
              Peace,
              Cameron Purdy
              Tangosol, Inc.
              http://www.tangosol.com
              +1.617.623.5782
              WebLogic Consulting Available
              "Claudio" <[email protected]> wrote in message
              news:[email protected]...
              >
              > Dears, I have a WLS 5.1 sp6, and added a
              >
              > weblogic.httpd.webApp.demowar=/temp/alphaworks/servlet/demo_feat.war
              >
              > in weblogic.properties, and when I start the weblogic server occuring
              >
              > [ServletEntityResolver] : Could not resolve entity '-//Sun Microsystems,
              Inc.//DTD Web Application 2.2//EN'. Check your
              > dtd reference.
              >
              > ..<HTTP> Error parsing descriptor in Web application
              '/temp/alphaworks/servlet/demo_feat.war'
              > org.xml.sax.SAXParseException: Element "web-app" does not allow
              "env-entry" here.
              > at com.sun.xml.parser.Parser.error(Parser.java:2775)
              > .
              > .
              > .
              >
              > --------------- nested within: ------------------
              > Received SAXParseException from Sun Parser at line 283, column -1:
              org.xml.sax.SAXParseException: Element "web-app" does not allow "env-entry"
              here.
              > at weblogic.xml.dom.SunDOMParser.getDocument(SunDOMParser.java:72)
              > .
              > .
              > .
              >
              > Wed Dec 06 18:50:17 GMT-02:00 2000:<E> <HTTP> Error creating servlet
              context for Web application '/temp/alphaworks/servlet/demo_feat.war'
              > java.lang.NullPointerException
              > at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:626)
              >
              > any other default servlet (that comes with weblogic) works fine, and this
              .war runs good in
              > Orion 1.4.4, adn J2EE RI 1.2.1 !
              >
              > in web.xml the dtd is from java.sun.com, and I chaged to
              http://localhost/servlet_2_2.dtd (where the url is fine, because I can
              download).
              >
              >
              

  • Table headings (tagged in paragraph tags) to be merged as a single entry in the TOC

    Hello, 
    I am working on a previous file done by somebody else. And here, I have the TOC as shown in screen shot below (which looks quiet normal).
    - The body page headings are placed in tables as shown in screen shot below.
    But, the entries when they appear in the TOC, they appear as one (IP31/42 T40) heading.
    How do we tag table headings (in different paragraph tags) and merge them as a single entry in the TOC.
    Also, suprising to note the paragraph tags are different in the TOC and different in the body (for the same headings).
    Below are the different paragraph tags that show up for the headings in the Table of contents:
    Below are the different paragraph tags that show up for the headings in the Table of contents:
    How do we tag table headings (in different paragraph tags) and merge them as a single entry in the TOC.
    Help much needed!!
    Please advice....
    Regards,

    You cannot have two paragraph styles in one paragraph, but you could use different styles in each cell of your table and include them all in the TOC.
    As far as using a different paragraph style for the lisitng in the TOC and the actual text that is picked up, that's very common. It allows you to find many different paragraph styles to include, but have the listings all look the same, and completley different from how the text looks in the body of the book. You'd problay not want 24 pt Bold TOC lisitngs, but that might be appropraite for section headings that you want to pick up.

  • "Content is not allowed in prolog" with SOAP Attachment

    I'm writing an application using SAAJ that sends a soap message to a servlet which responds with some information, including HTML which the client application will display. The HTML has to go into a SOAP attachment so the tags won't get confused with XML.
    I had the whole thing working with plain text sending within a normal node, and I only switched a few lines to make that text an attachment with HTML instead, but now I'm getting the exception "Content is not allowed in prolog" on the Client side when it tries to create the envelope from the SOAPMessage.
    Code for building answering SOAPMessage with attachment (Servlet to Client)
         public static SOAPMessage buildXML(Message newMessage){
              SOAPMessage msg = null;
              try {
                   MessageFactory msgFactory = MessageFactory.newInstance();
                   msg = msgFactory.createMessage();
                   // Create an envelope in the message
                   SOAPEnvelope envelope = msg.getSOAPPart().getEnvelope();
                   msg.setProperty(SOAPMessage.WRITE_XML_DECLARATION, "true");
                   msg.setProperty(SOAPMessage.CHARACTER_SET_ENCODING, "UTF-8");
                   //Get hold of the the body
                   SOAPBody body = envelope.getBody();
                   SOAPElement soap_message = body.addChildElement("MESSAGE");
                   if (newMessage.message_type != null){
                        SOAPElement soap_message_type = soap_message.addChildElement("MESSAGETYPE");
                        soap_message_type.addTextNode(newMessage.message_type);
                   if (newMessage.questionID != 0){
                        SOAPElement soap_questionID = soap_message.addChildElement("QUESTIONID");
                        soap_questionID.addTextNode("" + newMessage.questionID);
                   if (newMessage.username != null){
                        SOAPElement soap_username = soap_message.addChildElement("USERNAME");
                        soap_username.addTextNode(newMessage.username);
                   if (newMessage.password != null){
                        SOAPElement soap_password = soap_message.addChildElement("PASSWORD");
                        soap_password.addTextNode(newMessage.password);
                   if (newMessage.message_text != null){
                        AttachmentPart soap_message_text = msg.createAttachmentPart("<html><body>" + newMessage.message_text + "</body></html>", "text/html");
                        soap_message_text.setContentId("MESSAGETEXT");
                        msg.addAttachmentPart(soap_message_text);
                        //SOAPElement soap_message_text = soap_message.addChildElement("MESSAGETEXT");
                        //soap_message_text.addTextNode(newMessage.message_text);
                   if (newMessage.sampleString != null){
                        SOAPElement soap_password = soap_message.addChildElement("SAMPLESTRING");
                        soap_password.addTextNode(newMessage.sampleString);
                   SOAPElement tmpEl;
                   for (int i=0; i<newMessage.numArrayUsed; i++){
                        tmpEl = soap_message.addChildElement("SAMPLEINT");
                        tmpEl.addTextNode("" + newMessage.sampleInt);
                   msg.saveChanges();
              } catch (Exception e) {
                   e.printStackTrace();
              return msg;
    You can see in the area where it adds MESSAGETEXT there are two clients commented out which work. The three lines above it are what changed to make it an attachment instead.
    Code in Client for recieving reply from Servlet
    SOAPMessage reply = connection.call(soap_msg, endpoint);
    System.out.println("\nReceived reply from: " + endpoint);
    reply.writeTo(System.out);
    System.out.println("");
    reply_msg = ProcessXML.parse(reply);This is the console output:
    Edit: These forums seem to be inserting an extra > before the <?xml version="1.0" encoding="UTF-8"?> line, but it doesn't exist in the code I'm pasting
    Received reply from: http://localhost:8080/kuj/CaseStudyServlet
    ------=_Part_2_371807.1137465625031
    Content-Type: text/xml; charset=UTF-8
    <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><MESSAGE><MESSAGETYPE>deliverquestion</MESSAGETYPE><QUESTIONID>1</QUESTIONID><USERNAME>zac</USERNAME></MESSAGE></SOAP-ENV:Body></SOAP-ENV:Envelope>
    ------=_Part_2_371807.1137465625031
    Content-Type: text/html
    Content-Id: MESSAGETEXT
    <html><body>This is an Array sort Question. You will be given 10 random integers and you must sort and return them in the order of greatest to least.</body></html>
    ------=_Part_2_371807.1137465625031--
    ERROR:  'Content is not allowed in prolog.'
    17-Jan-2006 02:40:25 com.sun.xml.messaging.saaj.soap.EnvelopeFactory createEnvelope
    SEVERE: SAAJ0511: Unable to create envelope from given source
    com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source:
         at com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:111)
         at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl.createEnvelopeFromSource(SOAPPart1_1Impl.java:39)
         at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:98)
         at com.zacwittedesign.xml.ProcessXML.realParse(ProcessXML.java:32)
         at com.zacwittedesign.xml.ProcessXML.parse(ProcessXML.java:26)
    (snip)And this is the beginning of the code for extracting the info from the SOAPMessage on the Client side:
    private static Message realParse(SOAPMessage msg){
              Message newMessage = new Message();
              try {
                   SOAPEnvelope envelope = msg.getSOAPPart().getEnvelope();
                   SOAPBody body = envelope.getBody();
    (snip)It dies on SOAPEnvelope envelope = msg.getSOAPPart().getEnvelope();
    Does anyone know what I'm doing wrong?

    I suppose I should also include the bit where the Servlet actually SENDs the resulting SOAPMessage
    SOAPMessage msg = ProcessXML.buildXML(outMessage);
    // try to send it
    try {
         response.setContentType("text/xml");
         msg.writeTo(response.getOutputStream());

Maybe you are looking for

  • Remotely accessing the office network connected to E1000

    Hello; I'm the IT Manager for a Small Non-Profit Organization(Helping build homes, giving education, health care for the poor). All computers are connected to a network through a Linksys E1000 Wifi Router and I would like to access all computers remo

  • Updates suddenly stopped working?

    I obtained my Photoshop from a school a couple or few years back. I believe they claimed the serial would work forever. But the updates just stopped working. They all download fine in the Adobe Application Updates Manager but when it goes to install,

  • Tax calculation at the time of creating service entry sheet.

    Dear Experts, I have got a Company Code : P320 having the Plants : P324, P325, P326. I am making a Services Purchase Order by using the Item Category as u201CDu201D and Accounts Assignment as u201CKu201D for Cost Center and Order and u201CPu201D for

  • Effect of modification in other language

    hi experts, I am coping zmedruck from medruck in all languages with original languge as DE. If i do some changes in zmedruck with org. language as DE. <b>my ques. is whether these changes will be reflected when i open zmedruck in EN.</b> </b> KINDLY

  • Problem with recovery partition in harddrive

    Hello,e i am using a hp pavillion g6 note book with windows 8 in it.  i am not able to use the recovry partition to restore my notebook. whenever i try the recovery using hp recovery manager or f11 boot option it show the required media is missing. p