JSP Ajax XML problem

Hi !
i am creating a program using JSP Ajax to read PUBLIC enteries of Google calender but when i run to check the JSP file that is Server Side process & return result to HTML i got the following result:
375/-+1750/-Bunty [email protected]://www.google.com/calendar/feeds/bunty.india%40gmail.com/public-031eeb071629562bb65d8d446f5f2b59/basic/n21nl92hsg9mljbv0ntsrlrhp42006-11-14T10:12:59.000Z2006-11-14T10:13:22.000ZWhen: 2006-11-14 <br> <br>Event Status: confirmedWhen: 2006-11-14 <br> <br>Event Status: confirmedBunty [email protected]://www.google.com/calendar/feeds/bunty.india%40gmail.com/public-031eeb071629562bb65d8d446f5f2b59/basic/o7ttfhhs2fbsjl34m08026h2102006-11-14T10:11:31.000Z2006-11-14T10:12:05.000ZWhen: 2006-11-17 13:00 to 14:00  IST <br> <br>Event Status: confirmedWhen: 2006-11-17 13:00 to 14:00  IST <br> <br>Event Status: confirmedBunty [email protected]://www.google.com/calendar/feeds/bunty.india%40gmail.com/public-031eeb071629562bb65d8d446f5f2b59/basic/kir9gd7c9gkf6va0283oicbivc2006-10-04T14:00:37.000Z2006-10-04T14:00:37.000ZWhen: 2006-10-15 17:00 to 18:30  IST <br> <br>Event Status: confirmedWhen: 2006-10-15 17:00 to 18:30  IST <br> <br>Event Status: confirmedBunty [email protected]://www.google.com/calendar/feeds/bunty.india%40gmail.com/public-031eeb071629562bb65d8d446f5f2b59/basic/6d628dcmei9f3kd2c705i282o02006-09-28T09:08:26.000Z2006-10-04T13:59:43.000ZWhen: 2006-10-07 10:00 to 11:00  IST <br> <br>Event Status: confirmedWhen: 2006-10-07 10:00 to 11:00  IST <br> <br>Event Status: confirmedBunty [email protected]://www.google.com/calendar/feeds/bunty.india%40gmail.com/public-031eeb071629562bb65d8d446f5f2b59/basic/i4o0s31ia8cuau5gn3l6ecvd582006-09-19T11:04:10.000Z2006-09-25T10:16:06.000ZWhen: 2006-10-15 15:00 to 16:00  IST <br> <br>Where: Rajouri Garden <br>Event Status: confirmedWhen: 2006-10-15 15:00 to 16:00  IST <br> <br>Where: Rajouri Garden <br>Event Status: confirmedBunty [email protected]://www.google.com/calendar/feeds/bunty.india%40gmail.com/public-031eeb071629562bb65d8d446f5f2b59/basic/vfu1bbrickckleptoh46m3v09k2006-09-25T10:15:19.000Z2006-09-25T10:15:19.000ZRecurring Event<br> First start: 2006-09-27 IST <br> Duration: 86400 <br>Event Status: confirmedRecurring Event<br> First start: 2006-09-27 IST <br> Duration: 86400 <br>Event Status: confirmedBunty
But it should be a proper XML file.....
HTML Code:
function RSSRequest() {
     // change the status to requesting data
     HideShow('status');
     document.getElementById("status").innerHTML = "Requesting data ...";
     // Prepare the request
     RSSRequestObject.open("GET", rssReader.jsp, true);
     // Set the onreadystatechange function
     RSSRequestObject.onreadystatechange = ReqChange;
     // Send
     RSSRequestObject.send(null);
<body onload="RSSRequest();">
<h2>Google Calendar Events - RSS Reader- BuntyIndia</h2>
<div id="status" style="display:none"></div>
<div id="ajaxreader"></div>JSP Code:
<%@ page import = "java.io.*, java.util.*,java.net.URL,java.net.*,java.awt.*" %>
<%
URL url = new URL(" http://www.google.com/calendar/feeds/bunty.india%40gmail.com/public-031e071629562bb68d446f5f2b59/basic");
URLConnection urlConnection = url.openConnection ( ) ;
StringBuffer stringbuffer = new StringBuffer("");
String news =new String();
try {
BufferedReader in = new BufferedReader ( new InputStreamReader (url.openStream())) ;
while((in.readLine())!= null)
//s2=in.readLine();
stringbuffer.append(in.readLine());
     in.close();
catch(Exception e) {
     System.out.println(e.getMessage());
news=stringbuffer.toString();
out.println(news);
//response.setContentType("text/xml");
//response.setHeader("Cache-Control", "no-cache");
//response.getWriter().write(in);
%>Please Help
Bunty India

displaying blank page....
where to check LOG file what's the path?
i changed my code little bit placed response.setContentType at top know my page is displaying XML error
XML document must have a top level element. Error processing resource
<%@ page import = "java.io.*, java.util.*,java.net.URL,java.net.*,java.awt.*" %>
<%
response.setContentType("text/xml");
response.setHeader("Cache-Control", "no-cache");
response.setHeader("pragma","no-cache");
URL url = new URL("http://www.google.com/calendar/feeds/bunty.india%40gmail.com/public-031e071629562bb68d446f5f2b59/basic");
URLConnection urlConnection = url.openConnection ( ) ;
StringBuffer stringbuffer = new StringBuffer("");
String news =new String();
try {
BufferedReader in = new BufferedReader ( new InputStreamReader (url.openStream())) ;
while((in.readLine())!= null)
//s2=in.readLine();
stringbuffer.append(in.readLine());
     in.close();
catch(Exception e) {
     System.out.println(e.getMessage());
//news=stringbuffer.toString();
//out.println(news);
//log(news);
//System.out.println(news);
response.getWriter().write(news);
%>
Message was edited by:
bunty_india
Message was edited by:
bunty_india
Message was edited by:
bunty_india

Similar Messages

  • JSP XML Problem

    Hi !
    i am creating a program using JSP Ajax that read PUBLIC enteries of Google calender but when i run to check the JSP file [that is Server Side process & return result to HTML] i got the following result:
    375/-+1750/-Bunty [email protected]://www.google.com/calendar/feeds/bunty.india%40gmail.com/public-031eeb071629562bb65d8d446f5f2b59/basic/n21nl92hsg9mljbv0ntsrlrhp42006-11-14T10:12:59.000Z2006-11-14T10:13:22.000ZWhen: 2006-11-14 <br> <br>Event Status: confirmedWhen: 2006-11-14 <br> <br>Event Status: confirmedBunty [email protected]://www.google.com/calendar/feeds/bunty.india%40gmail.com/public-031eeb071629562bb65d8d446f5f2b59/basic/o7ttfhhs2fbsjl34m08026h2102006-11-14T10:11:31.000Z2006-11-14T10:12:05.000ZWhen: 2006-11-17 13:00 to 14:00 IST <br> <br>Event Status: confirmedWhen: 2006-11-17 13:00 to 14:00 IST <br> <br>Event Status: confirmedBunty [email protected]://www.google.com/calendar/feeds/bunty.india%40gmail.com/public-031eeb071629562bb65d8d446f5f2b59/basic/kir9gd7c9gkf6va0283oicbivc2006-10-04T14:00:37.000Z2006-10-04T14:00:37.000ZWhen: 2006-10-15 17:00 to 18:30 IST <br> <br>Event Status: confirmedWhen: 2006-10-15 17:00 to 18:30 IST <br> <br>Event Status: confirmedBunty [email protected]://www.google.com/calendar/feeds/bunty.india%40gmail.com/public-031eeb071629562bb65d8d446f5f2b59/basic/6d628dcmei9f3kd2c705i282o02006-09-28T09:08:26.000Z2006-10-04T13:59:43.000ZWhen: 2006-10-07 10:00 to 11:00 IST <br> <br>Event Status: confirmedWhen: 2006-10-07 10:00 to 11:00 IST <br> <br>Event Status: confirmedBunty [email protected]://www.google.com/calendar/feeds/bunty.india%40gmail.com/public-031eeb071629562bb65d8d446f5f2b59/basic/i4o0s31ia8cuau5gn3l6ecvd582006-09-19T11:04:10.000Z2006-09-25T10:16:06.000ZWhen: 2006-10-15 15:00 to 16:00 IST <br> <br>Where: Rajouri Garden <br>Event Status: confirmedWhen: 2006-10-15 15:00 to 16:00 IST <br> <br>Where: Rajouri Garden <br>Event Status: confirmedBunty [email protected]://www.google.com/calendar/feeds/bunty.india%40gmail.com/public-031eeb071629562bb65d8d446f5f2b59/basic/vfu1bbrickckleptoh46m3v09k2006-09-25T10:15:19.000Z2006-09-25T10:15:19.000ZRecurring Event<br> First start: 2006-09-27 IST <br> Duration: 86400 <br>Event Status: confirmedRecurring Event<br> First start: 2006-09-27 IST <br> Duration: 86400 <br>Event Status: confirmedBunty
    IE Error while executing
    XML document must have a top level element. Error processing resource
    But it should be a proper XML file.....
    HTML Code:
    function RSSRequest() {
         // change the status to requesting data
         HideShow('status');
         document.getElementById("status").innerHTML = "Requesting data ...";
         // Prepare the request
         RSSRequestObject.open("GET", rssReader.jsp, true);
         // Set the onreadystatechange function
         RSSRequestObject.onreadystatechange = ReqChange;
         // Send
         RSSRequestObject.send(null);
    <body onload="RSSRequest();">
    <h2>Google Calendar Events - RSS Reader- BuntyIndia</h2>
    <div id="status" style="display:none"></div>
    <div id="ajaxreader"></div>
    JSP Code:
    <%@ page import = "java.io.*, java.util.*,java.net.URL,java.net.*,java.awt.*" %>
    <%
    response.setContentType("text/xml");
    response.setHeader("Cache-Control", "no-cache");
    response.setHeader("pragma","no-cache");
    URL url = new URL(" http://www.google.com/calendar/feeds/bunty.india%40gmail.com/public-031e071629562bb68d446f5f2b59/basic");
    URLConnection urlConnection = url.openConnection ( ) ;
    StringBuffer stringbuffer = new StringBuffer("");
    String news =new String();
    try {
    BufferedReader in = new BufferedReader ( new InputStreamReader (url.openStream())) ;
    while((in.readLine())!= null)
    //s2=in.readLine();
    stringbuffer.append(in.readLine());
         in.close();
    catch(Exception e) {
         System.out.println(e.getMessage());
    //news=stringbuffer.toString();
    //out.println(news);
    response.getWriter().write(in);
    %>Please Help
    Bunty India

    you don't want a scriptlet, you want an expression
    <input type="TEXT" name="Product" value="<%= Product %>">

  • Problems with JSP Documents (XML Mode)

    Hi --
    Have been following the spec for JSP as XML documents because I want to produce JSPs using XSLT. Two problems which I've yet to find anything but workarounds for:
    1. (Most pressing) JSP Documents do not allow this <%= blah %>. This creates problems when I want to dynamically create an attribute value. The spec recommends this: 'value = "%=var%"', but I've tried this in Tomcat 4.1.12 and the expression gets reproduced literally at run-time. I've searched these forums and not found an answer.
    2. Transformer wigs out on colons in "jsp:root" or "c:out" because it signifies a namespace with which it is unfamiliar. It doesn't need to recognize the namespace. Right now I'm putting in placeholders (jsp999root, for example) and replacing them after processing. Is there a better way?
    These problems are really getting in the way. Any help would be most appreciated.

    Have been following the spec for JSP as XML documents because I want to
    produce JSPs using XSLT. Two problems which I've yet to find anything but
    workarounds for:
    1. (Most pressing) JSP Documents do not allow this <%= blah %>. This creates
    problems when I want to dynamically create an attribute value. The spec
    recommends this: 'value = "%=var%"', but I've tried this in Tomcat 4.1.12 and
    the expression gets reproduced literally at run-time. I've searched these
    forums and not found an answer. I am stuck on this also and desperately searching for an answer. Has anyone found anything yet?
    2. Transformer wigs out on colons in "jsp:root" or "c:out" because it
    signifies a namespace with which it is unfamiliar. It doesn't need to
    recognize the namespace. Right now I'm putting in placeholders (jsp999root,
    for example) and replacing them after processing. Is there a better way?You can (and should) put multiple namespace declarations in the xsl:stylesheet tag. that will let it know about jsp:* and pass it through appropriately. Try something like:
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:jsp="http://java.sun.com/JSP/Page">

  • JSPs as XML Documents -- Problems

    Hi --
    Have been following the spec for JSP as XML documents because I want to produce JSPs using XSLT. Two problems which I've yet to find anything but workarounds for:
    1. (Most pressing) JSP Documents do not allow this <%= blah %>. This creates problems when I want to dynamically create an attribute value. The spec recommends this: 'value = "%=var%"', but I've tried this in Tomcat 4.1.12 and the expression gets reproduced literally at run-time. I've searched these forums and not found an answer.
    2. Transformer wigs out on colons in "jsp:root" or "c:out" because it signifies a namespace with which it is unfamiliar. It doesn't need to recognize the namespace. Right now I'm putting in placeholders (jsp999root, for example) and replacing them after processing. Is there a better way?
    These problems are really getting in the way. Any help would be most appreciated.

    Hi,
    It looks from No. 2 that you are using JSLT since you have a fragment of a <c:out tag. I believe the syntax for getting the value out of one of these tags is actually almost identical to that in XSLT:
    value="${var}" instead of what you got from the spec,
    The spec recommends this: 'value = "%=var%"'The name spaces do have to be declared for JSLT to work, declared in the <jsp:root> tag:
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
    xmlns:c="http://java.sun.com/jstl/core"
    version="1.2">
    Here's a very simple jsp that uses it:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
    xmlns:c="http://java.sun.com/jstl/core"
    version="1.2">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <html>
         <head>
         <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252"/>
         <title>Hello World</title>
         </head>
         <body>
         <c:set var="nameString" value="John"></c:set>
         <h2>The name is: <c:out value="${nameString}"/></h2>
         </body>
    </html>
    </jsp:root>
    Of course, you have to have the tlds set up and the JSLT jars available for the compiler.
    I haven't yet tried this with transforms, but there are tags in the JSLT for that as well. If you've tried all this already, my apologies.
    Edward

  • Jsp+xslt+xml

    hi,
    I want to display the xml file which is as following:
    <item>
    <title>title1</title>
    <content>content1</content>
    </item>
    <item>
    <title>title2</title>
    <content>content2</content>
    </item>
    I want to display all titles in a table. When clicking a title, then displaying the corresponding content.
    So I wrote code:
    <xsl:for-each select="title">
    <a>
    <xsl:attribute name="href">content.jsp</xsl:text></xsl:attribute>
    <xsl:apply-templates />
    </a>
    </xsl:for-each>
    How can i transfer the title name to the content.jsp so that the corresponding content can be handled in content.jsp?
    Any suggestion is helpful.

    Hi jacky_chenp,
    I am facing a problem in JSP + XSLT + XML, just see whether you can help as I am new to it.
    I am getting the following error message while try to compile JSP_Book_Inventory.jsp
    Error: java.security.PrivilegedActionException <<java.lang.ClassNotFoundException: org.apache.xalan.xslt.XSLTInputSource>>
    JSP_Book_Inventory.jsp
    <%@ taglib uri="http://jakarta.apache.org/taglibs/xsl-1.0" prefix="xsl" %>
    <html>
    <head><title>Book Inventory</title></head>
    <body>
    <xsl:apply xml="XML_Book_Inventory" xsl="XSL_Book_Inventory.xsl" />
    </body>
    </html>
    XML_Book_Inventory.xml
    <?xml version='1.0' encoding='ISO-8859-1'?>
    <books>
    <book isbn="123">
    <title>Web Servers for Fun and Profit</title>
    <quantity>10</quantity>
    <price>$17.95</price>
    </book>
    <book isbn="456">
    <title>Web Programming for Mobile Devices</title>
    <quantity>2</quantity>
    <price>$38.95</price>
    </book>
    <book isbn="789">
    <title>Duke: A Biography of the Java Evangelist</title>
    <quantity>25</quantity>
    <price>$15.00</price>
    </book>
    </books>
    XSL_Book_Inventory.xsl
    <?xml version='1.0' encoding='windows-1252'?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <!-- Root template -->
    <xsl:template match="books">
    <table border="1" width="100%">
    <th>ISBN</th>
    <th>Title</th>
    <th>Quantity</th>
    <th>Price</th>
    <xsl:for-each select="book">
    <tr>
    <td><xsl:value-of select="@isbn" /></td>
    <td><xsl:value-of select="title" /></td>
    <td><xsl:value-of select="quantity" /></td>
    <td><xsl:value-of select="price" /></td>
    </tr>
    </xsl:for-each>
    </table>
    </xsl:template>
    </xsl:stylesheet>
    Thank you.

  • JSP/JSTL & XML

    I am trying to have JSP pages parse and read an XML file and then return some data in an HTML table. I'm using the JSTL libraries and have a basic understanding of them, but I apparently need help.
    My first page just gets the value and passes it to the second page. The second page handles all of the processing. Here is my JSP page:
    <%@page contentType="text/html" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
    <%@include file="index.jsp" %>
    <% String clientID = request.getParameter("enteredID"); %>
    <c:import url="npiXMLTest5.xml" var="doc" />
    <x:parse varDom="dom" doc="${doc}"/>
    <x:set var="srcCID" select="string($dom/npiNumbers/client/clientNum)" />
    <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>NPI XJTL Test</title></head>
    <body>
    <c:set var="CID" value="<%= clientID %>" />
    <h2>NPI XJTL Test Page</h2>
    <table border="1">
    <tr><th>NPI Number</th><th>Description</th></tr>
    <c:choose>
    <c:when test="${CID}=${srcCID}">
    <x:forEach select="$dom/npiNumbers/client/npiNum" var="$n">
    <tr><td><x:out select="$n/npi" /></td><td><x:out select="$n/desc" /></td></tr>
    </x:forEach>
    </c:when>
    <c:otherwise>
    There is an error with your coding
    </c:otherwise>
    </c:choose>
    </table></body></html>My XML structure is as follows:
    <npiNumbers xsi:schemaLocation="http://localhost/namespace NPI_XSD5.xsd" xmlns="http://localhost/namespace" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <client>
    <clientNum/>
    <clientName/>
    <npiNum>
    <npi/>
    <desc/>
    </npiNum>
    </client>
    </npiNumbers>I am trying to return the results of the <npiNum> element (which can have multiple values) - <npi> and <desc> - in a table based on the <clientNum> element. I try to evaluate the page variable with the xml element. If it matches, I will return a table. A client can have multiple <npiNum> elements, so the construction of the table is in the x:forEach loop.
    I think my problem is getting the variable from JSP to compare against the <clientNum> element in the XML file.
    Any ideas?

    I think your problem is less JSP/JSTL and more querying the XML.
    You are trying to "select all <npinum> elements from a client based on clientnum"
    I am far from an expert on XPath, but I think the following query is what you are after: "/npinumbers/client[clientNum=????]/npiNum"
    To do that with JSTL you would replace ???? with $param:enteredId or $CID (equivalent in your example)
    Here is the resulting JSP page.
    <%@page contentType="text/html" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
    <c:import url="npiXMLTest5.xml" var="doc" />
    <x:parse varDom="dom" doc="${doc}"/>
    <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>NPI XJTL Test</title></head>
    <body>
    <c:set var="CID" value="${param.enteredId}" />
    <h2>NPI XJTL Test Page</h2>
    <table border="1">
    <tr><th>NPI Number</th><th>Description</th></tr>
    <x:forEach select="$dom/npiNumbers/client[clientNum=$CID]/npiNum" var="n">
      <tr><td><x:out select="npi" /></td><td><x:out select="desc" /></td></tr>
    </x:forEach>
    </table>
    <hr>
    <form>
    <input type="text" name="enteredId"/>
    <input type="submit">
    </form>
    </body></html>I made up the following test file to use with it. I don't know if it was exactly what your requirements are, but it was a best guess based on your info.
    <npiNumbers>
         <client>
              <clientNum>42</clientNum>
              <clientName>Ford Prefect</clientName>
              <npiNum>
                   <npi>123</npi>
                   <desc>life</desc>
              </npiNum>
              <npiNum>
                   <npi>234</npi>
                   <desc>universe</desc>
              </npiNum>
              <npiNum>
                   <npi>456</npi>
                   <desc>everything</desc>
              </npiNum>          
         </client>
         <client>
              <clientNum>666</clientNum>
              <clientName>Satan</clientName>
              <npiNum>
                   <npi>333</npi>
                   <desc>Baby Devil</desc>
              </npiNum>
         </client>
    </npiNumbers>Cheers,
    evnafets

  • Include new feature where user can get JSP as XML model or normal HTML

    Hi Creator Team,
    I request you guys to include the below specified feature in future updates.
    Currently, creator is supporting to generate JSPS in XML formats. No doubt this is good feature.
    But some times we may require JSP in which we may not in need of well formed HTML page.
    Because all Designeres and developers are may not aware of XML features and nodoubt they will face the problem in coding or designing.
    It is not necessary that a developer/designer need to accustom the features currently supported. He/She may expect more easier access in studio creator.
    I understand that we can include JSPs into project taht are not well formed. But at the same time it is almost difficult to him/her to design the page (drag/drop process which is main feature of Studio Creator)
    I request and suggest to include both options so that it will become easy for developers/designers to use this good product

    Has this feature been incorporated in the latest SJSC 2 release? I too think that this will be more easier to adapt to as a newbie. Moreover, I haven't found anything on this front anywhere else in the forums or in the technical documentations. Other way around could be to provide decent tutorials on using JSP in XML syntax. I am currently using J2EE tutorial (June 2005 release) to learn this technology.
    I would be glad if someone could point out a decent resource on this front.
    Thanks in advance,
    Dev

  • Which Web Client Framework? BC4J-JSP, UIX-JSP, UIX-XML, etc

    Trying to determine which, if any of the JDeveloper frameworks, to use for do web browser (HTML) clients.
    What are the pros/cons of BC4J-JSP, UIX-JSP, UIX-XML, etc?
    What are some common things you might rule out using one or more of the frameworks?
    I plan to be using BC4J, updating, inserting data (currently MS-SQL) and the apps will run on WebLogic 7 or Caucho Resin (webapps no EJB) in a cluster. I would like to be as RAD as possible and still be able to do what I need to do. One main concern is being able to add custom HTML/JavaScript for things like client side validation. I didn't see a way to do this when doing BC4J-JSP. Is that right?
    If I define any validation in the BC4J, will UIX utilized any of this to define a JavaScript validator or must it be redudantly defined?
    One other concern is what the framework requires in terms of architecture, like do I have to have sticky sessions in my web cluster or can it work fine stateless or stateful?
    For UIX-XML, how is this architected for performance? Specifically, is the XML effectively compiled and converted into something more efficient and performant or does it do XML parsing all the time? Is there any significant performance differences between the frameworks?
    Is there any significant difference in dealing with security? Anything in the framework to make it easier to handle certain users being able to see/edit different set of data?
    I have things like some groups can edit only certain entities (product info but not pricing), others only certain types of products (possibly subclass entities) and others situations where what fields than can edit varies. Obviously I can handle this programmatically, but I was wondering what the frameworks had to offer, especially in terms of having different views of the same data.
    Steve

    ...I am little confused then about how BC4J works and what is meant by "session" here.
    When you talk about appmodules in the plural, does this mean that there are potentially multiple instances of the same data on a single server or there is a common datastore with pending data and client specific stuff varying?
    The common datastore is the database. Each client (momentarily, during the span of their request) uses an instance of an application module from the pool. The pool can grow and shrink with load on your system and all of the various tuning parameters. Our doc on the AM Pool covers all the parameter settings and their users.
    What kind of "session" is this?
    It is an abstract notion of a session for a user. The implementation used for Web clients uses the HTTP Session Key as the session key. However, we have other session implementations (and you can provide your own to do custom stuff for more sophisticated needs). We don't store anything else in the HTTP Session to the best of my knowledge. This way in a cluster, the web container doesn't have to waste time propagating all of your serialized HTTP Session state among cluster members. This session key also include an id for the application module and together those provide the key to store your pending state in the database for the "Stateful == Managed State" feature.
    I assume that if I have a cluster which doesn't use session-to-same-server-affinity but uses JDBC for http-session persistance or distributed in-memory http-sessions then I cannot use stateful BC4J even though I can use http-sessions.
    You can use BC4J in this way because the browser will send a cookie that contains the key to your database-stored pending state. In this way, we work great in a server farm for failover and/or scalability reasons.
    Even if I use stateless BC4J, are there issues with round-robin'ng all requests to different servers in a cluster?
    As I said, both our Stateless and Stateful features are designed to be used in Server farms, no problem.
    BTW I wouldn't necessarily say you picked the wrongs terms for the modes, but I know what you mean. There's problems with these terms. I am trying to explain to my mgrs/engineers that there is some state in stateless transactions - that simply making everything "stateless" doesn't mean don't lose anything in a disastrous failure. I am arguing to get support for sessions in our cluster, that the performance gain and simplified development is worth it as long as you put intelligent limits on what you store in the session. Right now, they are insisting on randomly sending requests into two entirely different data centers, with two different clusters.
    Amen. I have seen too many developers make the mistake of trying to be totally stateless, only to completely complicate their development environment with having to peristent partially-completed transaction data to the database. I've seen this done with sets of "Shadow" tables (yuck!) or using hand-written techniques similar to what BC4J provides a robust implementation of in the box.
    We've tuned our "Stateless With Affinity for Server Farms" model over several releases of carefully studying the performance of the Web apps built by our internal Oracle Applications teams using BC4J (over 20 of them now, and growing!) so compared with a hand-written strategy for your web-tier state management, using BC4J's implementation will be much more productive for you.
    We're tuning and tweaking and enhancing it even more for the 9.0.3 release as new needs are highlighted with continued use by our customers (both Oracle internal and external).

  • IOError in IE but not in Firefox (possible crossdomain.xml problem)

    Yesterday, I hopefully debugged a problem that is occuring for our application in IE but not in Firefox.
    It has to do with accessing remote content from a separate domain.
    In every aspect it APPEARS to be a crossdomain.xml issue but the fact that this issue only arrises in IE is what has prompted me to post here.
    We have a solution in the works (bureaucratically speaking) but I want to double check here.
    Our application is on domain "a.domain".
    It access an xml file on "b.domain/xml/".
    And finally (this is the tricky part) it also accesses an xml file at "b.domain/forwardingPath/" which is actually forwarded to "c.domain/xml/".
    The crossdomain.xml is located at "b.domain/crossdomain.xml".
    The request for "b.domain/xml/anXMLFile.xml" works without any problem.
    The request for "b.domain/forwardingPath/anotherXMLFile.xml" succeeds in Firefox but not in IE (remember, the ACTUAL request is forwarded to "c.domain/xml/anotherXMLFile.xml").
    In IE I get an IOError.
    I believe we need an appropriate crossdomain.xml file also located at "c.domain/crossdomain.xml" and have put in that request.  What I want to confirm is whether this understanding is correct.  I am not a server-side person at all.  It's all elves and fairies to me.  And then finally, why the hell is this behavior inconsistent between IE and Firefox?  Is the Firefox version of flash player violating its own security standards?!
    I am cross-posting this at stack overflow.  http://stackoverflow.com/questions/7395931/ioerror-in-ie-but-not-in-firefox-possible-cross domain-xml-problem

    I've pinged our developers about this and here's what they have to say:
    "We did some work for the plugin around redirects andhence the correct behavior on Firefox.
    AFAIK, on IE we don't get notified of the redirect and can't participate in making security decisions during redirect scenarios. This behavior is out of our control.
    There is a workaround documented in the AS3docs here: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/system/LoaderCont ext.html#checkPolicyFile
    Here is the pertinent paragraph:
    Be careful with checkPolicyFile if you are downloading anobject from a URL that may use server-side HTTP redirects. Policy files arealways retrieved from the corresponding initial URL that you specify inURLRequest.url. If the final object comes from a different URL because of HTTPredirects, then the initially downloaded policy files might not be applicableto the object's final URL, which is the URL that matters in security decisions.If you find yourself in this situation, you can examine the value ofLoaderInfo.url after you have received a ProgressEvent.PROGRESS orEvent.COMPLETE event, which tells you the object's final URL. Then call theSecurity.loadPolicyFile() method with a policy file URL based on the object'sfinal URL. Then poll the value of LoaderInfo.childAllowsParent until it becomes true."
    Chris

  • Char into balise jsp:scriptlet in jsp with xml syntax

    hello,
    i met a trouble with coding jsp with xml syntax,
    i use wsad to develop the jsp, and it's not allowed to put characters < or > into the balise scriptlet
    for example i cant do a loop (as i did easily with html syntax <% %> ) :
    this his the header of my jsp:
    <jsp:directive.page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" />
    <jsp:text>
    <![CDATA[ <?xml version="1.0" encoding="ISO-8859-1" ?> ]]>
    </jsp:text>
    <jsp:text>
    <![CDATA[ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> ]]>
    </jsp:text>
    and the code which dont work:
    <jsp:scriptlet>
    for (int i=0;i<10;i++){
    System.out.println(i);
    </jsp:scriptlet>
    i get a compilation error, did someone could help me to code dynamic content jsp ?
    ps: excuse me for my english.

    I don't use xml, so I may be way off the wall, but did you try using the CDATA sections again?
    <jsp:scriptlet>
    <![CDATA[
    for (int i=0;i<10;i++){
    System.out.println(i);
    ]]>
    </jsp:scriptlet>

  • JSTL XML problem

    I use Tomcat 5.5.4, Jarkata JSTL 1.1.2, here is what I do:
    (1) copy JSTL jar (standard.jar, jstl.jar) to tomcat common/lib directory
    (2) create a jsp page like:
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
    <c:import var="data" url="sample.xml" />
    <x:parse var="res" doc="${data}" />
    if I print ${data}, it is correct XML file as I expected. But I always get [document:null] as XML parsing result.
    Besides, whatever JSTL XML function I try, seems all of them give me error or null result.
    Is there any special setting that I miss?
    Why JSTL:core works and JSTL:xml doesn't?
    Anyone have suggestion? Thanks!

    To answer your questions from the previous post: No, I don't have Xalan.jar anywhere, unless it is packaged inside of some other jar, like one of the commons jars.
    I am using Tomcat 5.0.29 or real close to it. Java 1.4.2.
    A further question:
    Do I really need copy c.tld and x.tld to WEB-INF/ and
    set them up in WEB-INF/web.xml?
    No. The tlds inside the JARs are all you need. I would get rid of these copies.
    My understanding is: since you specify that uri:
    http://java.sun.com/jsp/jstl/core, there is no need
    to copy and set-up tld.
    At least, if I remove them, JSTL:core works fine. As
    for JSTL:xml, it doesn't work either way.What version of the web descriptor are you using? Version 2.3 or 2.4? It should either be defined is a <?DOCTYPE... ?> tag (v 2.3) or in the <web-app ...> tag (v. 2.4). You should be using the vs. 2.4.
    I don't know if that would make a difference though...

  • Web.xml problem in Enterprise Manager 10g

    I got an error while deploying to Enterprise Manager 10g
    My platform: Windows XP
    OC4J 9.0.4
    Enterprise Manager 10g
    And I even have the web.xml in the correct directory. i.e
    cpd.ear
    ./META-INF/application.xml
    ./cpd-ejb.jar/WEB-INF/web.xml
    ./cpd-webapp.war/WEB-INF/web.xml
    ./cpd-webapp.war/WEB-INF/classes
    The error I get while deploying on a Enterprise Manager 10g is:
    Invalid J2EE application file specified - Jar file: :\WINNT\TEMP\jar47575.tmp is missing its standard xml descriptor located at WEB-INF/web.xml
    Incidently the *.ear file built by my fellow's machine is deploying perfectly. I've compared the directories n useful files of both the *.ears down to the very last bit n they are the same.
    I can imagine that guys with only high IQ can solve this mystery

    The above message is a duplicate of another message by Sim.
    web.xml problem in Enterprise Manager 10g

  • Diff. between JSP format & XML based syntax

    i like to know the diff. between 2 types of jsp syntax,
    JSP - 1 - ordinary
    <% code %>
    JSP - 2 - XML based syntax
    <jsp:expression> code </jsp:expression>
    what is best to use for jsp development.,

    Haven't u finished fresher course yet?

  • Transforming jsp into xml

    Hi,
    I have some *.jsp files wich I have to transform into xml and xsl pages.
    Can anyone help me with his advice?
    And maybe someone knows a handy tool to transform jsp into xml?

    Refer to
    http://developer.java.sun.com/developer/technicalArticles/xml/WebAppDev2/

  • Log-Configuration.xml Problems

    Hi, I have been trying to use log-configuration.xml but it seems like i cannot get it to work at all.
    From what i understand, once i deploy my application, i should be able to edit the config via the Visual Administrator. However, after i deploy my app, i am still unable to see it with visual administrator. furthermore, i cannot find the file anywhere on the sever. Also, my settings are not reflected in the behaviour of the defaultTrace.
    Am i suppose to be able to find the "log-configuration.xml" file in the server if i have done the correct steps? If so, what are the likely mistakes i have made? I am at my wits end, anyone can help me?
    Just to add, this post seems to describe exactly my situation except i have no idea how to "manually" correct it... log-configuration.xml outside META-INF due to NWDS
    TIA!
    Ah Beng
    Message was edited by: ah beng

    Hi Rajeshkr,
    Sorry, i am kinda new to web dynpro and sap in general so i may need you to be more explicit
    I am not quite sure what this part means or how to check "...has been deployed successfully in the deploy node of the visual Node and check for the Log Configuratior Node and check for your deployed application...."
    What i did do is go to the server to and search the entire directory structure for the log-configuration.xml but could not find it. Also, the config cannot be seen via the log-configurator in visual administration engine which its supposed too i think. and lastly the behavoiur i set in the log-configuration.xml is not reflected in the defaultTrace
    Then i saw this post so i went to check the EAR file in my workspace and found that it was just like Manik described.
    Maybe u could check this link where i posted more about my problem Log-Configuration.xml Problems
    I would love to award points if it helps

Maybe you are looking for

  • Is there a central note available yet for Upgrading to NW 7 EHP 5?

    Hi all, I'm trying to find out if there is a central note available for upgrading to NW 7 EHP5. I have note 1299009 which is the central note for upgrading to NW 7 EHP 2 but I'm trying to find one for EHP 5 specifically (if it exists at all). The rea

  • MSI PRO-E takes forever to autodiscover the SATA drives in RAID mode

    If I change the bios from IDE to RAID, it takes at least a minute to find each SATA drive during the post.   Any ideas?  The bios is at 8.2 so I'm wondering if a flash to 8.5 would help. Thanks, lavesa

  • How to use 2 Time trigger UI elements

    Hi Experts,   My user doesn't want to see the time out error in the webdynpro application after leaving(idle mode) the browser for hours. And one more thing is he wants a popup for every 15mnts to show a message on the screen. So, I have used 2 Time

  • When is Apple going to fix problems with installation

    Does anyone know when Apple is going to come up with a new version of ITunes. I have been trying to download 7.5 without success for 2 months. I have tried every remedy listed to no avail. I continue to get a message saying Quick Tunes is not install

  • JMS configure in  Two JVM - (Urgent)

    Hi, Application is running in resin server. For my requirement server should publish message and morethan one client(standalone application) should consume that message (non durable). How should i configure for topic connection.