EL not evaluating

I am using Tomcat 5.0.18 and java 1.4.2; here is my .jsp:
<%@ page contentType="text/html" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<body>
Evaluate:
<br>
1+2+3= <c:out value="${1+2+3}" />
</body>
</html>Here is my output:
Evaluate:
1+2+3= ${1+2+3}
What am i missing?

I fixed it by adding<%@ page isELIgnored="false"
%> to the top of my jsp files. Does anybody
know how to make that step unnecessary?
ThanksYup. You are using an old version of web.xml dtd. Your web.xml probably looks like this:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
                      PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
                                     "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
  //The rest of your web.xml
</web-app>If you change it to:
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-app_2_4.xsd"
                  version="2.4">
//The rest of it
</web-app>The 2.3 version of the DTD kept EL turned off by default to make pages more backwards compatable. The newest DTD (2.4) has EL turned on by default.

Similar Messages

  • EL expressions not evaluating after JSF 1.1 --- 1.2 upgrade.

    I am having a problem with EL expressions not evaluating in a JSF application that I just upgraded from Apache MyFaces JSF 1.1 to JSF-RI 1.2 and from Tomcat 5.5.25 to 6.0.26. After the upgrade the entire application is working fine except for EL expressions.
    I was wondering if I am missing a JAR file or something.
    Basically, I have prepopulated input text boxes that render the EL expression instead of its evaluated result. Example:
    INPUT [#{sessionBean.result}] instead of INPUT [tedsResult].
    Here are the JAR on my classpath:
    tomcat/lib:
    annotations-api.jar el-api-1.1.jar servlet-api.jar tomcat-i18n-fr.jar
    catalina-ant.jar jasper-el.jar sqljdbc.jar tomcat-i18n-ja.jar
    catalina-ha.jar jasper.jar tomcat-coyote.jar
    catalina.jar jasper-jdt.jar tomcat-dbcp.jar
    catalina-tribes.jar jsp-api.jar tomcat-i18n-es.jar
    and in my WEB-INF/lib:
    activation.jar hibernate-annotations.jar
    antlr-2.7.5H3.jar iText-2.1.3.jar
    asm-attrs.jar jakarta-oro.jar
    asm.jar jaxen-1.1-beta-8.jar
    avalon-framework-4.0.jar jaxrpc.jar
    avalon-framework-cvs-20020806.jar jdom.jar
    axis.jar jpdcFOP.jar
    batik.jar jpdc_web.jar
    cglib-2.1_3.jar jsf-api-1.2_12.jar
    commons-beanutils.jar jsf-impl-1.2_12.jar
    commons-codec.jar jstl.jar
    commons-collections.jar jta.jar
    commons-digester.jar jtds-1.2.jar
    commons-discovery.jar log4j-1.2.13.jar
    commons-el.jar logkit-1.0.jar
    commons-fileupload-1.2.jar mail.jar
    commons-io-1.3.1.jar openmap.jar
    commons-lang-2.3.jar saaj.jar
    commons-logging.jar standard.jar
    commons-logging-optional.jar tomahawk.jar
    cos.jar velocity-1.4.jar
    CVS velocity-tools-generic-1.1.jar
    dom4j-1.6.1.jar
    el-impl-1.1.jar versioncheck.jar
    ehcache-1.1.jar wsdl4j-1.5.1.jar
    ejb3-persistence.jar xalan.jar
    fop.jar xercesImpl.jar
    hibernate3.jar xmlParserAPIs.jar
    Any ideas what might be causing this problem? Thanks in advance for your help.
    Edited by: tsteiner61 on Apr 14, 2010 11:05 AM

    Hello tsteiner61,
    Did you find a solution for your problem? I am asking because I have to solve a somewhat similar problem. Our system admin updated Tomcat from version 6.0.20 to 6.0.26 and now my JSF application won’t evaluate EL expressions either.
    I was using “Mojarra JSF API Implementation 1.2_09-b02-FCS”. Trying “Mojarra JSF API Implementation 2.0.2-FCS” I get the following error:
    java.lang.UnsupportedOperationException
         javax.faces.context.ExternalContext.getResponseOutputWriter(ExternalContext.java:1228)
         com.sun.faces.application.view.JspViewHandlingStrategy.renderView(JspViewHandlingStrategy.java:182)
         com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:126)
         org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:101)
         org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:197)
         javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:273)
         org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:176)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:127)
         com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:313)
    I am grateful for helpful advice.

  • OSB insert in not evaluating the expression

    I am using insert in the proxy service of OSB and and my expression is like this:
    Expression : <fcs:appId>$body/*/appId/node()</fcs:appId>
    My problem is that it's not evaluating the expression. It's inserting this as text ($body/*/appId/node()).
    Any idea, why?

    I assume you want to get the value of the tag appid, then the correct expression is <fcs:appId>{$body/*/appId/text()}</fcs:appId>
    In case there is namespace defined with your xml tag then you should be using it as <fcs:appId>{$body/*/*:appId/text()}</fcs:appId>
    Thanks,
    Patrick
    Edited by: Patrick Taylor on May 25, 2011 8:15 PM

  • Custom Tag not evaluating expression in attribute

    I have a custom tag that needs to take dynamic values in the attributes, but I can't seem to get the values "interpreted" correctly. I have the <rtexprvalue> tag set to "true" in my .tld file, which I thought was the only thing that was needed in order to accomplish what I am trying to do. However, that does not seem to be the case.
    I am using WebLogic (8.1.4) and their <netui> tags, along with JSTL tags (1.0).
    An example of what my code looks like is the following:
    <test:myTag id="1" idx="<netui:content value='{container.index}' />">
        <netui:select ... />
    </test:myTag>and
    <c:set var="myIdx" value="<netui:content value='{container.index}' />" />
    <test:myTag id="1" idx="<c:out value='${myIdx}' />">
        <netui:select ... />
    </test:myTag>Neither of the above approaches has worked. In my code for my Tag.java file, I get the literal string values of <netui:content value='{container.index}' /> and <c:out value='${myIdx}' />, respectively, in my idx property.
    Can someone give me any hints as to what I may be doing wrong?
    Thanks.

    Shouldnt that be
    <netui:content value='${container.index}' />Actually, weblogic does not use the '$' prefix before
    their expressions. Fine. Which in turn means weblogic has some custom expression evaluator.
    Note weblogic 8.1
    as a container doesnt implicitly supportexpressions
    and you have to build in that feature into yourtag
    library.Are you referring to the 'isELIgnored' attribute when
    you mentioned the above statement? If not, can you
    explain what you meant by "build that feature into
    your tag library"?
    It's like this - expression language is supported by default in all containers that implement the j2ee 1.4 spec (servlet 2.4/jsp 2.0). Additionally you should also declare your web application to adhere to the 2.4 standards (through the schema definition in web.xml). In applications that refer to the 2.3 dtd but are run on a 2.4 compliant container you can set the 'isELIgnored' attribute to false and use EL. This works because your container anyways supports it.
    If your container doesnt provide support for EL (outside the jstl tags) as is the case with weblogic 8.1, then you can still use expressions by using something like the [url http://jakarta.apache.org/commons/el/]apache common evaluator  package. The difference being that you will have to call the evaluator classes to evaluate the attribute.
    Are there any alternatives that I could use to
    accomplish what I am trying to do?Did the above answer your question?
    ram.

  • Need help getting php working, apache not evaluating php doc.

    Folks, I have been trying for some time to get JetPhoto Server to work on Snow Leopard Server. It was so easy with SL Client.
    In any case I cannot get "<?php phpinfo(); ?>" to be evaluated in Safari and I am not sure why.
    Essentially I am taking it step by step to understand why it's so hard to get things up and running - first making sure things apache and php are playing nice.
    PHP is enabled
    registerlongarrays is on
    engine is on
    All Safari returns is the same php call instead of the config info.
    Please advise.

    Default web page is on a second drive right now now that JetPhoto server is running. Otherwise the default is in the default webserver/documents/ directory. I just have Server Admin settings pointing to the photo server until I can restore the company homepage I used to have.
    output from first command:
    drwxrwxr-x 26 root admin 884 Jul 26 15:37 .
    drwxrwxr-x 7 root admin 238 Apr 26 14:35 ..
    -rw-r--r--@ 1 lpiadmin admin 12292 Jul 26 15:38 .DS_Store
    -rw-rw-r-- 1 root admin 3726 May 18 2009 PoweredByMacOSX.gif
    -rw-rw-r-- 1 root admin 31958 May 18 2009 PoweredByMacOSXLarge.gif
    -rw-rw-r-- 1 root admin 5063 Jul 20 2009 applestylesheetoverrides.css
    -rw-rw-r-- 1 root admin 2636 Jul 20 2009 base_layout.css
    -rw-rw-r-- 1 root admin 3754 Jul 20 2009 error.html
    -rw-rw-r-- 1 root admin 3754 Jul 20 2009 error.html.default
    -rw-rw-r-- 1 root admin 7782 Jul 20 2009 favicon.ico
    -rw-rw-r-- 1 root admin 56 Jul 20 2009 grayline.gif
    -rw-rw-r-- 1 root admin 3811 Jul 20 2009 grayx.jpg
    -rw-rw-r-- 1 root admin 5094 Jul 24 2009 index.html
    -rw-rw-r-- 1 root admin 5094 Jul 24 2009 index.html.default
    -rw-rw-r-- 1 root admin 44 Nov 20 2004 index.html.en
    -rw-rw-r-- 1 root admin 271 Jul 20 2009 info.php
    -rw-rw-r-- 1 root admin 2296 Jul 20 2009 logo.gif
    -rw-rw-r-- 1 root admin 4399 Jul 20 2009 main.css
    -rw-rw-r-- 1 root admin 2028 Jul 20 2009 osxserver.gif
    -rw-rw-r-- 1 root admin 1278 Jul 20 2009 poweredbymacosxserver.gif
    -rw-rw-r-- 1 root admin 454 Jul 20 2009 v5backgroundlink.jpg
    -rw-rw-r-- 1 root admin 435 Jul 20 2009 v5backgroundlinkhover.jpg
    -rw-rw-r-- 1 root admin 1580 Jul 20 2009 v5backgroundmain.jpg
    -rw-rw-r-- 1 root admin 8889 Jul 20 2009 v5backgroundtop.jpg
    drwxrwxr-x 4 root admin 136 Jul 20 2009 weblog
    drwxrwxr-x 5 root admin 170 Apr 26 14:35 webmail
    output from second:
    -rw-r--r-- 1 root wheel 68732 Mar 30 21:34 /etc/php.ini.applesaved
    -r--r--r-- 1 root wheel 68970 Jan 29 18:25 /etc/php.ini.default
    -r--r--r-- 1 root wheel 68727 Mar 16 09:08 /etc/php.ini.server-default
    -rw-r--r--@ 1 lpiadmin staff 68729 Jul 26 12:18 /etc/php.ini.txt

  • Vendor eval not evaluated based on applicability period..

    Dear All,
              For Evaluating vendor i have mentioned applicability period as 1 day in spro settings.
    For this period i dont have any receipt entry. But on-time del criteria, shows shows some materials. It is not related to previous score also.
    how is it ***? Pls tel some ideas.
    Thanks in advance.

    Any ideas pls?

  • App says "Evaluatio​n Copy" but ActiveX controls are not evaluation copies.

    App has been running for 3+ years in a Win95 machine. Just moved to Win98 machine and now "Evaluation Copy" appears in app. I have copied the two OCX files from the Win95 machine and registered them on the new machine. I purchased ComponentWorks 3 years ago - I never had evaluation copies of these OCX files. Could this be a Win95 to Win98 problem?

    I doubt that this is a Windows problem; there are several reasons why an ActiveX control could turn to evaluation mode (see KB link below). I would suggest that you uninstall the OCX controls from your new computer and instead run the ComponentWorks installer for proper installation/registration.
    If you have version 3.x or later of the CW controls, you could also run the Measurement Studio License Fixer Utility found in the following Knowledgebase article:
    http://digital.ni.com/public.nsf/websearch/86256A4​7004E16D186256A99007BEFB7?OpenDocument
    This utility will help you diagnose the license state of your controls and will try to fix any broken licenses. Please read the KB carefully as it may not apply to your particular setup.
    If none of the solutions off
    ered here works for you, please email us through http://www.ni.com/ask so we can assist you in a more direct way.
    Regards,
    Azucena Perez
    National Instruments

  • EL expressions not evaluated in custom tag attribute

    I'm writing a custom tag implementation where I need to have some attribute values
    dynamically evaluated using EL, such that I can write:
    <mytaglib:mytag id="${somevar}"/>
    I cannot seem to accomplish this, however. My taglib tag definition looks like this:
         <tag>
              <name>mytag</name>
              <tag-class>myclass</tag-class>
              <body-content>empty</body-content>
              <description>
    Foo
              </description>
              <attribute>
                   <name>articleId</name>
                   <required>true</required>
                   <rtexprvalue>true</rtexprvalue>
                   <type>java.lang.String</type>
              </attribute>
         </tag>
    The implementation of myclass extends TagSupport (since I need to get at the PageContext). The setArticleId() method looks like this:
    public void setArticleId(String idStr) throws JspException {
    if (logger.isDebugEnabled()) {
    logger.debug("idStr = " + idStr);
    try {
    /* XXX: Somehow, the evaluation should happen automagically, but
    * I can't figure out why that doesn't happen!
    String articleIdStr = (String)pageContext.getExpressionEvaluator().evaluate(
    idStr,
    java.lang.String.class, pageContext.getVariableResolver(), null);
    this.articleId = Integer.parseInt(articleIdStr);
    } catch (ELException e) {
    throw new JspException("Failed to parse article id expression");
    Why does it not work automagically?

    Make sure you are working with a JSP 2 container (like Tomcat 5). Also, you should make sure that your web.xml is configured to use the newest Servlet Spec. Read reply #6 on: http://forum.java.sun.com/thread.jspa?threadID=629437 to make sure it is set up properly.
    If you are not using a JSP 2.0 container, then you will not be able to use EL in your custom tag. See: http://forum.java.sun.com/thread.jspa?forumID=45&threadID=725503 for alternatives.

  • El Expression Not Evaluated

    can someone please tell me why the following EL expression does not get evaluated:
    $ { person.name }
    Person is a Java bean class. And here is the header of my web.xml file:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
    </web-app>

    It seems you know the answer already.
    In order for EL expressions to work in a JSP page you need
    - a JSP2.0 container (eg Tomcat 5)
    - your web.xml must declare itself as version 2.4
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
        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">
    </webapp>The other way to do it for individual pages is with a page directive.
    <%@ page isELIgnored="false" %>
    But fixing web.xml does it for all pages in the application.
    Cheers,
    evnafets

  • Expression not evaluating

    Hi,
    I am creating a package and trying to evaluate an expression but it is not working.  Here is the code
    var package = new Package();
    package.Variables.Add("EmployeeId", false, "User", "1001");
    var v = package.Variables.Add("SelectQuery", false, "User", "");
    v.Expression = "SELECT * FROM Employees WHERE EmployeeId= @[User::EmployeeId]"; //This is evaluating to ""
    v.EvaluateAsExpression = true;
    var query = v.Value.ToString();  //Here the value is "";
    If I assign v.Expression = "@[User::EmployeeId"; //this is evaluating to the value 1001
    I need to create a package like this because programmatically later I am changing the EmployeeIdvariable value.
    I also tried v.Expression =  "SELECT * FROM Employees WHERE EmployeeId=" + "@[User::EmployeeId]";
    Venkat Sriramulu

    The example is not working, just showing you more code and how I am using the variable.  Pls note DataFlow option creation and Pipepline object etc is not included for simplicity.
    In the source component I want the query to be dynamically evaluated.
    var package = new Package();
    package.Variables.Add("EmployeeId", false, "User", "1001");
    var v = package.Variables.Add("SelectQuery", false, "User", "");
    v.Expression = "SELECT * FROM Employees WHERE EmployeeId= @[User::EmployeeId]"; //This is not working
    v.EvaluateAsExpression = true;
    IDTSComponentMetaData100 srcComponent = pipeline.ComponentMetaDataCollection.New();
    srcComponent.ComponentClassID = "DTSAdapter.OleDbSource";
    srcComponent.ValidateExternalMetadata = true;
    IDTSDesigntimeComponent100 srcDesignTimeComponent = srcComponent.Instantiate();
    srcDesignTimeComponent.ProvideComponentProperties();
    srcComponent.Name = "Employee";
    // Configure it to read from the given table
    srcDesignTimeComponent.SetComponentProperty("AccessMode", 2);
    srcDesignTimeComponent.SetComponentProperty("SqlCommandVariable", "User::SelectQuery"); //Variable is used here. But this is not working.  I hope I am using the variable right.
    srcComponent.RuntimeConnectionCollection[0].ConnectionManager = DtsConvert.GetExtendedInterface(connectionManager);
    srcComponent.RuntimeConnectionCollection[0].ConnectionManagerID = connectionManager.ID;
    // Retrieve the column metadata
    srcDesignTimeComponent.AcquireConnections(null);
    srcDesignTimeComponent.ReinitializeMetaData(); //getting Exception from HRESULT: 0xC0202009
    srcDesignTimeComponent.ReleaseConnections();
    After the package is build, I will want to change the EmployeeId variable value and the query should automatically get evaluated and work with the new employee id.
    Venkat Sriramulu

  • [URGENT]: expression not evaluated at runtime for Managed Bean ?

    I have written my Custom template for SingleStepButton..
    <af:singleStepButtonBar maxStep="#{TriggerBean.selec and (TriggerBean.nodeLabel=='Services' and TriggerBean.nodeLevel=='5' or TriggerBean.nodeType=='Services' and TriggerBean.nodeLevel=='6')?6:(TriggerBean.selec and (TriggerBean.nodeLevel=='5' and TriggerBean.nodeLabel=='Packages' or TriggerBean.nodeLevel=='6' and TriggerBean.nodeType=='Packages')?WizardPageListCreateNewEquip_Acc.maxStep:5)}"
    selectedStep="#{#WIZARD_PAGE_LIST_BEAN().selectedStep}"
    previousAction="#{#WIZARD_PAGE_LIST_BEAN().getPreviousAction}"
    nextAction="#{#WIZARD_PAGE_LIST_BEAN().selectedStep==5?TriggerBean.wizardNavigator:#WIZARD_PAGE_LIST_BEAN().getNextAction}"
    id="wizardStepButtons"/>
    MY nextAction Statement doesnot Evaluate at IF statement, i.e. my Else statment for it is working perfectly but when statement is true for IF statement it gives Exception and says getNextAction property not found.
    my TriggerBean.wizardNavigator class works perfectly and tested for other scenarios e.g
    when i write and call the nextAction="#{TriggerBean.wizardNavigator}" it does call the method and works. but not for the above case. IT DO NOT EVALUATE the TriggerBean.wizardNavigator part only which is between '?' and ':'

    You cannot use the JSF EL if-then-else statement in a property that expects a simple method binding. So, you should create an additional method on a subclass of the WIZARD_PAGE_LIST_BEAN bean class and perform the if-then-else logic inside this custom method, and bind the nextAction property to this custom metho.
    Steven Davelaar,
    JHeadstart team.

  • Tags not evaluating expression

    When the jsp executes with a single expression in the defaultValues attribute, it evaluates fine.
    eg>
    <ft:phone namePrefix="representative" defaultValues="<%=appeal.getRepresentative_area_code()%>"/>
    // area code is set to 111
    produces
    <input size="3" type="text" maxlength="3" name="representative_area_code" value="111">
    <input size="3" type="text" maxlength="3" name="representative_phone_prefix" value="">
    <input size="4" type="text" maxlength="4" name="representative_phone_suffix" value="">
    which is the expected response, Yet when I do
    <ft:phone namePrefix="representative" defaultValues="<%=appeal.getRepresentative_area_code()%>;555"/>
    I get
    <input size="3" type="text" maxlength="3" name="representative_area_code" value="<%=appeal.getRepresentative_area_code()%>">
    <input size="3" type="text" maxlength="3" name="representative_phone_prefix" value="555">
    <input size="4" type="text" maxlength="4" name="representative_phone_suffix" value="">
    like it doesn't evaluate the embedded expression.
    Also is there a better way to pass in the default values then using a semi colon delimited list. Perhaps pass in a hashmap with attributes set?
    Here is the tld file:
    // tld begin
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
    "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
    <taglib>
    <tlibversion>1.0</tlibversion>
    <jspversion>1.1</jspversion>
    <shortname>formtags</shortname>
    <info>WCB Tags for Forms</info>
    <tag>
    <name>phone</name>
    <tagclass>wcb.common.jsptags.PhoneTag</tagclass>
    <bodycontent>empty</bodycontent>
    <info>This tag puts 3 input boxes for phone numbers.</info>
    <attribute>
    <name>namePrefix</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>defaultValues</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    </tag>
    </taglib>
    //end tld
    //tag definition PhoneTag.java
    package wcb.common.jsptags;
    * This tag will output three input text fields that are used to input phone numbers.
    * Creation date: (08/20/2002 2:05:00 PM)
    * @author: Travis Leippi, WCB
    * Changes:
    * Author                    Date               Change
    * Travis Leippi          2002-08-20          Initial revision
    import java.util.StringTokenizer;
    import javax.servlet.jsp.JspTagException;
    import javax.servlet.jsp.JspWriter;
    import javax.servlet.jsp.tagext.TagSupport;
    public class PhoneTag extends TagSupport {
         private class PhoneField {
              String strField = null;
              int intSize;
              String strValue = null;
              public PhoneField(String argField, int argFieldSize) {
                   strField = argField;
                   intSize = argFieldSize;
                   strValue = new String();
              public PhoneField(String argField, int argFieldSize, String argValue) {
                   strField = argField;
                   intSize = argFieldSize;
                   strValue = argValue;
         private String strNamePrefix = null;
         private String strDefaultValues = null;
         private PhoneField[] objFields =
              { new PhoneField("area_code", 3), new PhoneField("phone_prefix", 3), new PhoneField("phone_suffix", 4)};
         * doStartTag is called by the JSP container when the tag is encountered
         public int doStartTag() {
              try {
                   JspWriter out = pageContext.getOut();
                   // Iterate through the elements of strFields
                   // printing out a textbox for each
                   if (strDefaultValues != null) {
                        setupFieldValues();
                   for (int i = 0; i < objFields.length; i++) {
                        out.print("<input size=\"");
                        out.print(objFields.intSize);
                        out.print("\" type=\"text\" maxlength=\"");
                        out.print(objFields[i].intSize);
                        out.print("\" name=\"");
                        if (strNamePrefix != null) {
                             out.print(strNamePrefix);
                        out.print(objFields[i].strField + "\" value=\"");
                        if (objFields[i].strValue != null) {
                             out.print(objFields[i].strValue);
                        out.print("\">");
                        out.println();
              } catch (Exception ex) {
                   throw new Error("All is not well in the world.");
              // Must return SKIP_BODY because we are not supporting a body for this
              // tag.
              return SKIP_BODY;
         * doEndTag is called by the JSP container when the tag is closed
         public int doEndTag() throws JspTagException {
              return SKIP_BODY;
         * Gets the strNamePrefix
         * @return Returns a String
         public String getNamePrefix() {
              return strNamePrefix;
         * Sets the strNamePrefix
         * @param strNamePrefix The strNamePrefix to set
         public void setNamePrefix(String strNamePrefix) {
              this.strNamePrefix = strNamePrefix + "_";
         * Gets the strValues
         * @return Returns a String
         public String getDefaultValues() {
              return strDefaultValues;
         * Sets the strValues
         * @param strValues The strValues to set
         public void setDefaultValues(String strDefaultValues) {
              this.strDefaultValues = strDefaultValues;
         private void setupFieldValues() {
              StringTokenizer st = new StringTokenizer(strDefaultValues, ";");
              for (int i = 0; i < objFields.length && st.hasMoreTokens(); i++) {
                   objFields[i].strValue = st.nextToken();
    // end java

    The expression needs to be a legal java expression that evaluates to a string. Try:
    <ft:phone namePrefix="representative" defaultValues='<%=appeal.getRepresentative_area_code() + ";555"'%>/>If that doesn't work, go with
    <%String st = appeal.getRepresentative_area_code() + ";555";%>
    <ft:phone namePrefix="representative" defaultValues="<%=st%>/>

  • FIM Set membership not evaluating

    Hi
    In the FIM Portal, we use a number of sets and MPRS to run workflows and previously have had no problems.
    We're having a difficulty with a particular set of "Requests" where we want to run a workflow if a Request is denied to email a 3rd party.   Our set has the following criteria:
    Select request that match all of the following conditions:
    Request status is denied
    TargetResourceType is VisitorConfigurator (a custom resource type).
    If you 'view members'  in the RCDC it looks to have the right members, although we have now discovered that the RCDC merely displays what it _should_ have, not what it actually has.   The workflow is never run when the Authoriser denies the
    request.   However:  When the
    FIM_TemporalEventsJob is run at 1AM (or manually) we find that the set gets fixed, we see a request passes through called "Set Correction For Set deniedRequests"  and our workflow magically runs!
    We have added an additional binding to the Request resource type for the Email attribute - this is what is going to be used for our 3rd party email address.   We have another set which is actually used to send the email:
    Select request that match all of the following conditions:
    E-Mail starts with %
    This works fine!   So, it seems if we try to create a set based on the original attributes it doesn't work but with our added one it does.  We've looked at permissions and we think we have everything covered there, and if it weren't the SQL
    job wouldn't work.   We are now at a bit of loss as to how to move forward!
    Any ideas?
    Regards
    Andy Swiffin and Ian Swift, University of Dundee

    I believe this is the expected behavior.  Because the request status is changed by the FIMService, and not some other actor,
    Thanks very much for the reply Andrew.  That's given us something to think about!
    I am just trying to get my head around it though,  When the FIM_TemporalEventsJob runs it sets a value on our added email address attribute on the request object.   This is then causing the request to fall into our second set  which is
    sending the email to that 3rd party.  This part of our process works fine.  Surely this is also the FIMService who is doing this?  
    Cheers
    Andy

  • OIM access policy not evaluating a boolean

    I have a test for a boolean in Access Policy
    booleanvariable == true
    but it does not evaluate
    I tried booleanvariable == 1
    and this does not work either.
    If I have a string field instead of a boolean, then it works
    stringvariable == TRUE
    this works.
    Is there something wrong with booleans in Access Policy?

    I'm currently using Boolean with access policies, though maybe a little different.
    In the OIM Design Console, I've created a rule (Resource Management -> Rule Designer) named TestRule
    Add Element:
    - Attribute: booleanvariable
    - Operation: ==
    - Attribute Value: 1
    I have groups that mirror access policies, so let's say that we've also created a group (User Groups->Create via OIM AU Console - Web)
    - Under 'Membership Rules' in the dropdown box for group details, assign the rule you just created
    - Then under 'Access Policies' add the policy you created under Access Policies -> Manage
    Then when a user is in OIM with booleanvariable checked, the Access Policy is applied to that user.

  • Expressions not evaluating properly in jsp:plugin tag

    Hi there, running OC4J as Oracle9iAS (1.0.2.2.1)
    In the JSP1.1 spec dynamic expressions in the jsp:plugin <param> tag are clearly specified as below:
    <jsp:params>
    [ <jsp:param name="parameterName" value="{parameterValue | <%= expression %>}" /> ]+ </jsp:params>
    Unfortunately, attempting this in OC4J, the expression is simply displayed as a static String, for example the following JSP source:
         <jsp:params>
              <jsp:param name="rootSubAssembly" value="<%=rootSubAssembly%>" />
         </jsp:params>
    Would output "<%=rootSubAssembly%>" as the parameter value, rather than the dynamic value specified in the JSP above.
    Any ideas? We'd like to benefit from using the plugin tag over object/applet if at all possible.

    Hi there, running OC4J as Oracle9iAS (1.0.2.2.1)
    In the JSP1.1 spec dynamic expressions in the jsp:plugin <param> tag are clearly specified as below:
    <jsp:params>
    [ <jsp:param name="parameterName" value="{parameterValue | <%= expression %>}" /> ]+ </jsp:params>
    Unfortunately, attempting this in OC4J, the expression is simply displayed as a static String, for example the following JSP source:
         <jsp:params>
              <jsp:param name="rootSubAssembly" value="<%=rootSubAssembly%>" />
         </jsp:params>
    Would output "<%=rootSubAssembly%>" as the parameter value, rather than the dynamic value specified in the JSP above.
    Any ideas? We'd like to benefit from using the plugin tag over object/applet if at all possible.

  • URGENT!iBATIS not evaluating value in #value#  when accessing ORACLE

    Hi,
    I am unable to run an SQl to select a record set from oracle when i specify the value in where condition in the following manner.
    This is my sql query in XML file:
    <select id="getContractor" resultMap="contractorResult" parameterClass="contractor">
    select EIXID as eixid, FIRST_NAME as first_name, LAST_NAME as last_name from TB_CONTRACTOR where EIXID = #eixid#
    </select>
    But, when i hard code the value in sql as follows it works fine and retrieves the record.
    <select id="getContractor" resultMap="contractorResult" parameterClass="contractor">
    select EIXID as eixid, FIRST_NAME as first_name, LAST_NAME as last_name from TB_CONTRACTOR where EIXID = '12345'
    </select>
    Has anyone faces this issues. What can be the possible reason for this issue? Is there an alternate way to do it (Without using stored procedure). Please help!!
    Its urgent.
    Suni

    Bingo. The issue is that Oracle can apply implicit conversion between a
    value passed in with the SQL as it's parsed, so it will equate a passed
    in "ABC" with the real table value "ABC ". However, if the query is
    parsed with a parametrer marker instead, such as in a PreparedStatement,
    you lose the implicit conversion, so "ABC" != "ABC ". The only solutions
    are to:
    1 - redefine the column as VARCHAR2(9)
    2 - Pad all your parameter values to 9 characters, (send "ABC "
    3 - File a TAR asking Oracle to enhance it's query plan engine to apply
    the same implicit conversion of a string parameter as it would have done
    to a string value passed in in the original SQL. (Good luck on this one... ;) )
    HTH,
    Joe Weinstein at BEA Systems
    (PS: I don't even know what iBATIS is!)

Maybe you are looking for

  • Can't take screenshots when using external monitor

    I used to take screenshots of areas of my screen all the time using Cmd-Shift-4 but, on my new Macbook Pro, if I have my external LCD screen connected, then any screenshot I take comes out as just a bunch of diagonal shading. It doesn't make a differ

  • All of a sudden i need a password?

    my airport extreme just took a vacation...the fans have no black...tells me it recognizes the network but that i need a wap password...never did before...any way to get back wireless? did i do something wrong? my sister used her pc here last night an

  • Organizing work between 2 computers(G5 tower, and MacBook Air)

    Hello. I want to keep both my computers equally up to date with my work. When I'm home, although I'll have my lap top with me, I'll use the G5 tower instead, because it's easier and more comfortable to use than a laptop. When I'm away from home, I us

  • Bulk exception problem

    DECLARE TYPE empid_tab IS TABLE OF emp1%ROWTYPE; emp_sr empid_tab; -- CREATE AN EXCEPTION HANDLER FOR ORA-24381 ERRORS NUMBER; dml_errors EXCEPTION; v_err_no VARCHAR2 (200); v_err_message VARCHAR2 (200); PRAGMA EXCEPTION_INIT (dml_errors, -24381); BE

  • How to use GPS with n73?

    hihi, just bought n73 couple days ago, i am new to this cellphone thing. can any1 tell me how can i have gps with my n73. like procedures, accessories and softwares i need to get it to work. is there a step by step guide.