Tag does not evaluate expression

Here is the tag I am using:
<lst:select name="country" table="country" column="name" key="id" selected="<%= rsNetwork.getString("country_id") %>" />
The selected attribute does not return the value of "country_id" instead it results the entire expression "rsNetwork.getString("country_id")"
What am i doing wrong??????

In JSP 1.1 and without using JSTL u can do this in the following way
define a variable outside the tag (either using scriplets or using struts-bean tags) and then use it inside your tag
<%
String selected = rsNetwork.getString("country_id");
%>
<lst:select name="country" table="country" column="name" key="id" selected="<%=selected%>" />
well, your lst tag must have <rtexprvalue>true</rtexprvalue> for the selected attribute inside your tld.

Similar Messages

  • Xslt error: the expression does not evaluate to a node-set

    hi guys - i'm really down because i cannot find / understand my xsl error and i have to finish my work very very soon
    the error message (by using xalan to create from the xml file my html output) is the following:
    xslt error: the expression does not evaluate to a node-set
    and the code fragement is:
    <xsl:template name="getNext">
    <xsl:param name="currentKnoten" />
    <xsl:for-each select="$currentKnoten"> //error is in this line
    </xsl:for-each>
    </xsl:template>please... help me....

    ok thanks!!! this saved me some time ;-)
    now i go back to the origin problem... my main idea is the following xsl code... may u can see here the problem with the node site.. but i think u need the xml file or?
    however this is my relevant xsl code:
    <xsl:template match="DATA">
              <xsl:element name="process">
                   <xsl:attribute name="name">
                        <xsl:value-of select="@name" />
                   </xsl:attribute>
                   <xsl:apply-templates select="INSTANCE"/>
              </xsl:element>
         </xsl:template>
    <xsl:template match="INSTANCE[@class='Data']">
              <xsl:element name="node">
                   <xsl:attribute name="name">
                        <xsl:value-of select="@name" />
                   </xsl:attribute>
                   <xsl:attribute name="class">
                        <xsl:value-of select="@class" />
                   </xsl:attribute>
                   <xsl:call-template name="copyAttributes" />
                   <xsl:variable name="nextNodes">
                        <xsl:value-of select="key('keyGetData', key('keyFrom', @name)/../TO/@instance)" />
                   </xsl:variable>
                   <xsl:call-template name="getNext">
                        <xsl:with-param name="currentNode" select="$nextNodes" />
                   </xsl:call-template>
              </xsl:element>
    </xsl:template>     
    <xsl:template name="getNext">
              <xsl:param name="currentNode"/>
              <xsl:for-each select="$currentNode">
                   <xsl:element name="node">
                        <xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute>
                        <xsl:attribute name="class"><xsl:value-of select="@class"/></xsl:attribute>
                        <xsl:variable name="nextNodes">
                             <xsl:value-of select="key('keyGetData', key('keyFrom', @name)/../TO/@instance)"/>
                        </xsl:variable>
                        <xsl:call-template name="copyAttributes"/>
                        <xsl:call-template name="getNext">
                             <xsl:with-param name="currentNode" select="$nextNodes"/>
                        </xsl:call-template>
                   </xsl:element>
              </xsl:for-each>
         </xsl:template>
         <xsl:template name="copyAttributes">
              <xsl:for-each select="descendant::*">
                   <xsl:copy>
                        <xsl:copy-of select="@*|node()"/>
                   </xsl:copy>
              </xsl:for-each>
         </xsl:template>
         <xsl:template match="@*|node()">
              <xsl:apply-templates/>
         </xsl:template>

  • Encountering error End tag does not match start tag 'group'

    Hi guys,
    am a newbee to XML Publisher.
    I am encountering the below error:
    Creating XDO Report at: Wed May 25 16:38:14 GMT+05:30 2011
         sql = select 'TEST' from dual;
         description = Learning XML Reporting
         port = 1561
         user = apps
         host = e2dscorhrmdba01.cendant.com
         sid = ABGHRDEV
         ReportParameters = {}
         path = D:\lanosrep\XML\Output\FirstXMLReport
         data_source_name = ABGHRDEV
         name = FirstXMLReport
    oracle.xml.parser.v2.XMLParseException: End tag does not match start tag 'group'.
         at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:205)
         at oracle.xml.parser.v2.XMLReader.popXMLReader(XMLReader.java:516)
         at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1242)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:268)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:227)
         at oracle.apps.xdo.dataengine.DataProcessor.getSQLSchema(DataProcessor.java:528)
         at oracle.apps.xdo.dataengine.DataProcessor.writeXMLSchema(DataProcessor.java:476)
         at CreateXDOReport.createXDOReport(CreateXDOReport.java:164)
         at CreateXDOReport.process(CreateXDOReport.java:108)
         at CreateXDOReport.main(CreateXDOReport.java:298)
    I have tried reinstalling the patch but of no use.
    Please guide me.

    I changed the sql query
    select 'TEST' from dual;
    to select 'TEST' from dual
    It is working fine now :)

  • SQL CASE statement in XML template- End tag does not match start tag 'group

    Hi All,
    I am developing a report that has the SQL CASE statement in the query. I am trying to load this into RTF with report wizard and it gives me below error
    oracle.xml.parser.v2.XMLParseException: End tag does not match start tag 'group'
    Does XML publisher support CASE statement?
    My query is something like this
    SELECT customercode,
    SUM(CASE WHEN invoicedate >= current date - 30 days
    THEN balanceforward ELSE 0 END) AS "0-30",
    SUM(CASE WHEN invoicedate BETWEEN current date - 60 days
    AND current date - 31 days
    THEN balanceforward ELSE 0 END) AS "31-60",
    SUM(CASE WHEN invoicedate < current date - 60 days
    THEN balanceforward ELSE 0 END) AS "61>",
    SUM(balanceforward) AS total_outstanding
    FROM MyTable
    GROUP BY customercode
    ORDER BY total_outstanding DESC
    Please advice if the CASE statement or the double quotes are causing this error
    Thanks,
    PP

    I got this to work in the XML but the data is returning zeros for all the case statements. When I run this in toad I get results for all the case conditions but when ran in XML the data displayed is all zeros. I am not sure what I am missing. Can someone shed some light on this please
    Thanks!
    PP

  • [svn] 3313: Fix for SDK-16981 - @ param tag does not recognize tab character as delimiter between paramName and paramDescription

    Revision: 3313
    Author: [email protected]
    Date: 2008-09-23 10:02:50 -0700 (Tue, 23 Sep 2008)
    Log Message:
    Fix for SDK-16981 - @param tag does not recognize tab character as delimiter between paramName and paramDescription
    QA: Yes
    Doc:
    Tests: checkintests
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-16981
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/TopLevelClassesGenerator.ja va

  • BUG: EL does not evaluate when used in template text but does in tag.

    When I run the jsp below the EL on Line1 evaluates but the EL on Line2 does not. It was my understanding that the form in Line2 should be valid.
    Environment is Jdev 10.1.3.3, Servlet 2.4, JSP 2.0, J2EE 1.4, JSTL 1.1
    Does anyone have any thoughts?
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"></meta>
    <title>mainMenu</title>
    </head>
    <body>
    Line1 1+2=<c:out value="${1+2}"/> This evaluates.
    Line2 1+2=${1+2} This does not.
    </body>
    </html>
    web.xml is
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee">
    </web-app>
    Thanks
    PaulJP
    Message was edited by:
    pauljp

    The problem appears to be related to jdev j2ee 10.1.3.3. I installed a fresh copy of jdev j2ee 10.1.3.3. I created a new application, project, and jsp. I placed the ${1+2} EL in the JPSs body as part of the Template Text. The EL did not evaluate.
    I then installed a fresh copy of jdev studio 10.1.3.3 and followed the exact same steps. Using jdev suite the EL does evaluate.
    It is my understanding the EL is part of the JSP API under JSP 2.0 so I would have assumed that it should evaluate under JDEV J2EE 10.1.3.3.
    Message was edited by:
    pauljp

  • Router activity does not evaluate conditions cases.

    Hi all,
    I have a bounded taskflow as a region in a jspx page. This task flow has 3 activity. The default one is a router that evaluate two cases, and navigate to one page fragment. The two cases expressions are like this :
    <router id="router1">
          <case>
            <expression>#{data.somePageDef.someIterator.estimatedRowCount &gt; 0}</expression>
            <outcome>initManyLines</outcome>
          </case>
          <case>
            <expression>#{data.somePageDef.someIterator.estimatedRowCount == 0}</expression>
            <outcome>initZeroLines</outcome>
          </case>
          <default-outcome>initZeroLines</default-outcome>
        </router>So depending of the number of lines in the someiterator iterator, it navigate to one of the two pages. But that does not work. It always redirect to the default outcome.
    The somePageDef pageDef is bound to the jspx that encapsulate the region.
    Any ideas ?
    Regards
    Fred

    Ok I solved myself.
    I used an input parameter that is set to iterator.estimatedRowCount in the parent pageDef, and the router use it in the task flow via #{pageflowScope.myStuff}, and navigate.
    fred

  • Attribute value does not accepitng expression ???

    ]I am using Tomcat 5.0.28 and JSTL 1.0.6. I put the files standard.jar and jstl.ar within my web-app WEB-INF/lib folder. I made no changes in web.xml. Then I ran the following program as test.jsp
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <html>
    <body>
    <c:set var="hello" value="Hello World!"/>
    <c:out value="${hello}"/>
    </html>
    </body>
    I'm getting this error message <br>
    "According to TLD or attribute directive in tag file, attribute value does not accept any expression"

    With Tomcat5, you should be using JSTL1.1.
    The JSTL1.0 tags didn't let you use runtime expressions like <%= expr %> with your tags. Instead you had to use ${expr}.
    ${expr} is a runtime expression in JSP2.0, where it wasn't before.
    JSTL1.1 provides a new tld with the correct settings.
    You should be using JSTL1.1 and the uri:
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    See full spiel on JSTL vs Tomcat versions in this thread:
    http://forum.java.sun.com/thread.jspa?threadID=629437&tstart=0

  • The "a name" html tag does not work in Firefox.

    The tag works in all versions of Internet Explorer, but does not work in Firefox versions 3, 4, 5, 10, 11, 12.

    I haven't noticed any problems on most pages, but I have read about a problem where a script changes the length of the page content after loading (e.g., by collapsing content under headings, done on some FAQ or glossary pages).
    For example, this should position the browser at the Reset Printer section:
    http://kb.mozillazine.org/Problems_printing_web_pages#Reset_printer
    A standard diagnostic step is to try Firefox's Safe Mode to see whether an odd behavior is caused by a custom setting or add-on.
    First, I recommend backing up your Firefox settings in case something goes wrong. See [[Backing up your information]]. (You can copy your entire Firefox profile folder somewhere outside of the Mozilla folder.)
    Next, restart Firefox in [[Safe Mode]] using
    Help > Restart with Add-ons Disabled
    In the Safe Mode dialog, do not check any boxes, just click "Continue in Safe Mode."
    If links work correctly in Safe Mode, that usually points to an add-on or custom setting as the problem.
    Let us know whether that makes any difference.

  • XHTML Generated by JBO tags does not validate

    I was wondering if anyone has run into this issue, and if so, what they have done about it....
    Our organisation standards state that our web pages must validate to the XHTML V1.0 STRICT standards.
    But if I use the JBO tags, such as InputRender, etc, the fact that many of the fields are created in upper case means that the validation fails.
    As an example, my JBO tag is
    <td title="<jbo:ShowHint hintname='TOOLTIP'></jbo:ShowHint>"><jbo:InputRender datasource="dsource" formname="<%=formName%>" /></td>
    and the output HTML is
    <td title=""><TEXTAREA ROWS="5" MAXLENGTH="256" NAME="Description" CLASS="clsDescription" COLS="70"></TEXTAREA>
    <INPUT VALUE TYPE="HIDDEN" NAME="_Description">
    </td>
    Note that the parameter names are all uppercase (and not found by the validator), and that the <INPUT> tag is not terminated (it requires a / before the closing >).
    Is there a workaround for this? Where does JBO get the text it uses for the replacment tags?
    thanks for any assistance with this....
    Brigette

    Could you show us an example of the cflayout code?

  • Extrreme in bridge does not see Express

    Have an Extreme behind a Uverse residential gateway.  Set in bridge mode and it provides intermet access via CAT5 to my PC and WiFi to my iPad and wife's MacBook Air.  Want to extend the network with an Airport Express. Reset the Express.  Connected the Express to the Extreme; Cat5 from a LAN port <--> on the Extreme to the only port on the Express (also a LAN).  The light slowly blinks amber and the Express does not appear when I start AirPort.  Have reset the Extreme and redone the network, disabling guest network.  Am at a loss.  Any suggestions?  Thanks.

    As I mentioned in my original post, I am using a PC, not a MAC.
    Sorry about that! Regardless, whether using a PC or a Mac, the computer needs to be connected to the AirPort's network before it can access it with the AirPort Utility. This can be via either a wireless or wired connection.
    There are a number of ways to get access as well. In your example of having the Express connected to the Extreme by Eternet, the AirPort Utility should have found it as well.
    If you do use your wife's MacBook Air can it find tbe Express? If so, then it may be your Win7 firewall that may be preventing the AirPort Utility from finding it.

  • Centre Page with wrapper div tag does not work

    Hi there,
    I am trying to centre the content of my website with a 'wrapper' div tag but the div tag just does not seem to have any effect on the layout at all.
    Here is how I do it:
    1.) Select all the html in the body.
    2.) Creating 'wrapper' div tag --> width: 768, left & right margin: auto, bottom & top margin: 0
    I found this in an adobe tutorial and it sounds logical to me, but somehow it just does not work.
    I hope someone can help me out.
    Thanks a lot!
    Anja

    You need three basic things to center a page.
    1) A valid X/HTML document type.  This declaration always appears in the first line of HTML code. The good news is that DW does this for you when you create a new page.  The bad news is that some other apps such as graphics editors don't always do this for you.  If your page has no document type, hit File > Convert > choose one that fits your coding skills.
    2) You need a container width in pixels or percentages.  Most often this is applied to a #wrapper but it can be applied to your body.
    3) Finally, a margin-left and margin-right of auto (browser default).
    CSS:
    body {
    width: 900px;
    margin: 0 auto; /*centers page*/
    text-align:center; /*centers older browsers*/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • Jsp:include tag does not preserve encoding of the text

    hi
    I am using Apache web server and Tomcat 4.1.
    I have a jsp:include tag (in say test1.jsp) and I am trying to include a data1.html file. This html file contains UTF-8 encoded text. When this JSP is executed, the UTF-8 text is displayed as garbage characters.
    I have included following in the JSP
    <%@ page contentType="text/html; charset=UTF-8" %>
    I have included following in the info.html
    <meta HTTP-EQUIV="content-type" CONTENT="text/html; charset=UTF-8">
    However if I rename the info.html to data1.jsp and then include, the UTF-8 text gets displayed correctly.
    I suppose, the JSP engine does not interprete the content of the html file correctly according to its encoding.
    Where as if it is a .jsp, then it is int erpreting it appropriately?
    Can anybody throw some lite on this?
    regards
    haresh
    sample files.......
    test1.jsp..........
    <%@ page contentType="text/html; charset=UTF-8" %>
    <%
    response.setContentType("text/html; charset=UTF-8");
    %>
    <HTML>
    <HEAD>
    <meta HTTP-EQUIV="content-type" CONTENT="text/html; charset=UTF-8">
    </HEAD>
    <BODY>
    <jsp:include page="data1.html" flush="true"/>
    </BODY>
    </HTML>
    data1.html.....
    <meta HTTP-EQUIV="content-type" CONTENT="text/html; charset=UTF-8">
    <br>
    &#2361;&#2366;&#2340;&#2368; &#2328;&#2381;&#2351;&#2366;&#2354; &#2340;&#2375; &#2340;&#2337;&#2368;&#2360; &#2344;&#2381;&#2351;&#2366;.
    <br>

    Your generated HTML will be flawed.
    The output of the included JSP is included in the outputstream of the enclosing one.
    Browsers will normally skip any illegal tags when encountered. This included your complete html headers from the included jsp and may (depending on the browser) include all code after the html close tag from that jsp.
    Stricter browsers may simply refuse to display anything at all.
    Read up on what the include mechanism exactly does and on wellformed HTML.

  • Flash embed tag does not obey percentage size, even with html and body at 100%

    For some reason i cannot get this swf file to show at 90% width and height. i have tried adding a style sheet in the header to explicity set the html and body to 100% but this still does not help. can anyone see if there is a problem in the code?
    <pre><nowiki><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title></title>
    <style type="text/css">
    html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    </style>
    </head>
    <body>
    <center>
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="90%" height="90%" ID="Captivate1">
    <param name="movie" value="tutorial.swf">
    <param name="quality" value="high">
    <param name="menu" value="false">
    <param name="loop" value="0">
    <embed src='tutorial.swf' width='90%' height='90%' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'/>
    </object>
    <BR>
    <p>
    <align=center><a Href="javascript:window.close();">Close Window</a>
    </p>
    </center>
    </body>
    </html></nowiki></pre>

    That may happen because of the &lt;center&gt; element that doesn't have a height and width specified. Remember to specify dimensions for all containers if you use percentages, otherwise you may end up with 90% of 0 or a default value.

  • Title tag does not display all characters

    Hello,
    I think my question is probably extremely easy, but because I am new, I have no idea..
    I bought a web template and so far all is fine.
    One thing, Each page has a header, body text that is all entered by an xml file.
    The header should be displayed by the title tag content. It looks like this...
    <title>Text Field 2</title>
    But when I look at my browser, some of the characters "Text Field 2" are missing and it displays "e Fed"
    please check this link to see what I mean...
    http://test.familycards.nl/
    Does anyone have any idea why some characters do not appear? I tried caps, numbers,.. they all react the same.
    thank you in advance...

    Thank you for your response and help!
    I did think of that.. Unfortunately the template did not come with .fla files, only a host of xml files. I did look for font info to see if perhaps there
    might be conflicts with fonts or missing fonts. but as far as I can interperate the coding, cant find anything.. I will now include some coding here.
    Perhaps it is helpful?
    This is the beginning of the xml page I am working on to add a header and body text...
    <?xml version="1.0" encoding="utf-8" ?>
    <data>
              <title>Text Page</title>
              <field>
                        <title>Text Field 1</title>    ............        (this is the title tag that I place my header text in. but when it shows in browsers as [e Fed]).. the T, x,i,d,l are all missing..
    <text><![CDATA[body text to come here.....
    This is the global options xml...
    <?xml version="1.0" encoding="utf-8" ?>
    <data>
              <global bg="images/bg1.jpg" logo="images/logo.png">
                        <title>Glance Photo Portfolio</title>
                        <slogan>Best photos</slogan>
                        <copyright>Copyright 2009. All Rights Reserved by BK Rascal Multimedia Productions</copyright>
              </global>
              <graphicslib theme="theme4.swf" />
              <playlist src="options/playlist.xml" />
              <menu startPage="homepage">
                        <item name="HOME PAGE" deeplink="homepage" type="page" content="txt1" location="options/text1.xml" visible="1" />
                        <item name="ABOUT US" deeplink="about" type="menu" content="" location="" visible="1">
                                  <item name="WHAT WE DO?" deeplink="whatwedo" type="page" content="txt2" location="options/text1.xml" visible="1" />
                                  <item name="EXHIBITION" deeplink="exhibition" type="page" content="txt2a" location="options/text1.xml" visible="1" />
                                  <item name="MY PUBLIC FORUM" deeplink="awards" type="page" content="txt1" location="options/text1.xml" visible="1" />
                                  <item name="FOURTH DROP" deeplink="awards" type="page" content="txt1" location="options/text2.xml" visible="1" />
                        </item>
                        <item name="NEWS" deeplink="news" type="page" content="news" location="options/news.xml" visible="1" />
                        <item name="GALLERY" deeplink="gallery" type="menu" content="" location="" visible="1">
                                  <item name="OBJECTS" deeplink="objects" type="page" content="gallery" location="options/gallery3.xml" visible="1" />
                                  <item name="PEOPLE" deeplink="people" type="page" content="gallery2" location="options/gallery2.xml" visible="1" />
                                  <item name="NATURE" deeplink="nature" type="page" content="gallery" location="options/gallery1.xml" visible="1" />
                        </item>
                        <item name="CONTACTS" deeplink="contact" type="menu" content="news" location="options/news.xml" visible="1">
                                  <item name="CONTACT PAGE 1" deeplink="contact1" type="page" content="cform" location="options/contact.xml" visible="1" />
                                  <item name="CONTACT PAGE 2" deeplink="contact2" type="page" content="cform2" location="options/contact.xml" visible="1" />
                        </item>
                        <item name="AURORAFlASH" deeplink="blog" type="link" content="" location="http://auroraflash.org/blog/" visible="1"/>
                        <item name="TEST TAB" deeplink="blog" type="link" content="" location="http://auroraflash.org/blog/" visible="1"/>
              </menu>
    </data
    Thats it...
    I hope this helps. (thanks again!!!)

Maybe you are looking for

  • I can not wake the Lion and can not see the Snow Leopard

    Hello, I have a (White) 2007 MacBook, with a new 640 GB HD. It has 2 partitions: a 40 GB running Snow Leopard ( I am a teacher and have no time - and desire - to substitute my AppleWorks DBs  until this year ends) and a 600 GB running Lion. I have an

  • ITunes can't connect to Music Store - error 502

    Since updating to iTunes version 7.1.1, I haven't been able to connect to the Music store at all. I've sent messages to Apple twice stating my problem, but I haven't gotten a response at all. My connection, of course, is fine, but I can't connect. Th

  • PekWM help? {SOLVED}

    I am checking out pekwm for fun but I have a problem. I want to have "Desktop Margins" as they are called in Openbox. I have a conky display on the top of my screen and tint, ipager, and trayer on the bottom. I tried EdgeSize in the pekwm config file

  • How to view photos on PC, that have an ITHMB extension?

    I have photos on my PC, that were loaded into my iPod. It wsa stolen, and I want to view the pictures that were loaded onto the iPod. It is a 60GB w/photo capability. I have some of the original photos (*.jpg), but not all of them. So, I want to be a

  • ABAPer role in upgrade project

    Hi, Please let me know the ABAPer role with upgrade project. When Std programs updated by support packs what are the responsibility of ABAPers? Thanks, Praneeth