EL Expression inside jspx

Hi,
this should be easy I hope ;-)
I want to link to another project on my server by using af:goLink
This target project resides on the same server but I can't link to it relative (is this correct??)
I don't want to hardcode the servername so I need to get the servername dynamically.
I tried
<af:goLink text="Help" styleClass="menu"
*destination="http://#{pageContext.request.serverName}/helpproject/"*
targetFrame="_blank"
shortDesc="Help!!">
but this results in
http://helpproject/
So. what's the correct syntax for the EL Expression to get my Servername??
thx,
Florian.

I don't want to hardcode the servername so I need to get the servername dynamically.Technically, this is one way to get hold of your server host/port information:
       ((ServletRequest)ADFContext.getCurrent().getEnvironment().getRequest()).getLocalName();
       ((ServletRequest)ADFContext.getCurrent().getEnvironment().getRequest()).getLocalPort();You'd need to write this code in a bean getter method returning a string like 'hostname:port'.
It's equivalent to writing a scriptlet on a plain jsp that does:
<%=request.getLocalName()+request.getLocalPort()%>However, are you sure this other app will always remain deployed on the same server/port?
Why don't you just keep that other app's path in a resource bundle/database and read it from there?
Will be easier to change later this way...

Similar Messages

  • Jsp expression inside a onclick event

    onClick = "send(<%=layerColl.GetItem(i).GetObjectId()%>)" .... where is expression'll return a alphanumeric id... i want to receive it as a string in a JSP function public send(String a ){}

    on my understanding you are calling a javascript function onclick event. eventually you pass the variable as number or object on the function.
    like:
    <%
    String sample = "1";
    %>
    onClick = "send(<%=sample%>)"the value of the sample string is 1 so the function will be
    onClick = "send(1)"and you got error on the javascript in IE like Object Expected
    so you need to put the expression inside single quotes like
    onClick = "send('<%=sample%>')" correct me if i'm wrong. that is my understanding

  • Question about expressions inside AE

    I don't even know what to search for on google to find the answer. So after an hour trial and error inside AE and failure in google search, I'm coming here to seek help.
    I have a plugin (RedGiant Sound Keys) that is giving values as keyframes for every frame. And the values go like: 0, 4, 7, 3, 5, 0, 0, 5, 6 ....
    In other words, they fluctuate between zero and, say, 10.
    I want another layer to get this value, but add it to itself every frame. I used to do QBasic programming and it was very simple there. Just something like x = x + (value from the Sound Key plugin)
    But I don't know how to do this in AE.
    Right now I have this:
    x = (thisComp.layer("sound").effect("Sound Keys")("Output 1") * 0.5);
    x;
    What I really want is:
    x = x + (thisComp.layer("sound").effect("Sound Keys")("Output 1") * 0.5);
    x;
    But it doesn't work.
    Can someone help me please?

    AE does not store persistent temporal variables. you have to accumulate them manually and write your own loops.
    Expression Speed and Frequency Control
    Soundkeys has an accumulate mode built-in, also, so rather than put up with complex expressions, simply use a duplicate instance of the effect and tweak the values.
    Mylenium

  • Logical && within EL Expression on jspx pages

    Hello all,
    Anyone know how to convert the logical AND symbol '&&' into something that can be properly understood within an EL expression? The ampersand is a reserved symbol within an xml document and can not be used in the jspx page.
    Thanks in advance!
    - Joe

    & a m p;& a m p;
    Should be without blank spaces but looks like this forum also escape the characters.
    Thanks,
    Alex
    Edited by: Alexbie on 26-Aug-2010 9:44 AM
    Edited by: Alexbie on 26-Aug-2010 9:45 AM
    Edited by: Alexbie on 26-Aug-2010 9:45 AM
    Edited by: Alexbie on 26-Aug-2010 9:56 AM

  • Using xpath-expressions inside Task Instructions

    Hi all,
    I have a process where I would like to build up the task Instructions in a string variable. However I cannot seem to resolve xpath values when I am putting my string as the task instruction.
    How can I do this?
    Thanks in advance
    Sincerely
    Kim Christensen

    Hi again Marcel - thanks for your quick reply
    However I am not sure I und erstand your answer correctly.
    I have a string variable (str_Inctructions) that I want to set as my Task Instruction.
    So at a point in my process I create a set value with an expression like this:
    str_Instructions = 'Here are some instructions for {$/process_data/myOtherVar$} please follow them.'
    I then set str_Instructions as the Task Instructions (an xpath-expression). When I get the Task in Workspace I see the {$/process_data/myOthervariable$} instead of the value of myOtherVar.
    So how can I get the value of myOtherVar?

  • x:forEach using expressions inside the select value

    Hey everyone. I am trying to use a <c:include> statement to include a jsp file multiple times. The included file parses and processes an XML file but I want to be able to pass in a string representing the XPath to select the elements I want to process. However the <x:foreach> does not allow expressions for the select value. Is there a way around this or a better way to do it? Thanks!
    John

    Sorry maybe I don't quite understand because I can't get this to work.
    This is the parent file code:
    <jsp:include page="includes/XMLParse/traveltimesMilwaukee.jsp" >
        <jsp:param name="select" value="Route[ID>999]" />
    </jsp:include>And this is the called file code where I am trying to use the path:
    <x:forEach var="r"  select="$dom/WisDotTrafficData/Routes/$param:select">This is the most pertinent error:
    javax.servlet.ServletException: javax.servlet.jsp.JspTagException: Error evaluating XPath expression "/WisDotTrafficData/Routes/$param:select": javax.xml.transform.TransformerException: A location step was expected following the '/' or '//' token.Below will be the whole error page but I want to put some comments right here. I also tried without the second $ but that didn't work - the loop never executed. I can't get the JSTL specs to load right now so I couldn't check those out but do you have any other suggestions or maybe you see what my mistake is? Thanks again!
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Exception in JSP: /milwaukee/traveltimes.jsp:86
    83:                     </tr>
    84:                     <tr VALIGN="TOP">
    85:                       <td>
    86:                         <jsp:include page="includes/XMLParse/traveltimesMilwaukee.jsp" >
    87:                           <jsp:param name="select" value="Route[ID>999]" />
    88:                         </jsp:include>
    89:                       </td>
    Stacktrace:
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:506)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    org.apache.jasper.JasperException: Exception in JSP: /milwaukee/includes/XMLParse/traveltimesMilwaukee.jsp:14
    11:        on the first iteration and not on further iterations --%>
    12:   <c:set var="alreadyPrinted" value="0" />
    13:
    14:   <x:forEach var="r"  select="$dom/WisDotTrafficData/Routes/$param:select">
    15:
    16:     <%-- Prints the header if it has not been printed already --%>
    17:     <c:if test="${alreadyPrinted == '0'}" >
    Stacktrace:
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:506)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
         org.apache.jsp.milwaukee.traveltimes_jsp._jspService(traveltimes_jsp.java:314)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    javax.servlet.ServletException: javax.servlet.jsp.JspTagException: Error evaluating XPath expression "/WisDotTrafficData/Routes/$param:select": javax.xml.transform.TransformerException: A location step was expected following the '/' or '//' token.
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:839)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:776)
         org.apache.jsp.milwaukee.includes.XMLParse.traveltimesMilwaukee_jsp._jspService(traveltimesMilwaukee_jsp.java:254)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
         org.apache.jsp.milwaukee.traveltimes_jsp._jspService(traveltimes_jsp.java:314)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    javax.xml.transform.TransformerException: A location step was expected following the '/' or '//' token.
         org.apache.xpath.compiler.XPathParser.error(XPathParser.java:608)
         org.apache.xpath.compiler.XPathParser.RelativeLocationPath(XPathParser.java:1637)
         org.apache.xpath.compiler.XPathParser.LocationPath(XPathParser.java:1595)
         org.apache.xpath.compiler.XPathParser.PathExpr(XPathParser.java:1315)
         org.apache.xpath.compiler.XPathParser.UnionExpr(XPathParser.java:1234)
         org.apache.xpath.compiler.XPathParser.UnaryExpr(XPathParser.java:1140)
         org.apache.xpath.compiler.XPathParser.MultiplicativeExpr(XPathParser.java:1061)
         org.apache.xpath.compiler.XPathParser.AdditiveExpr(XPathParser.java:1003)
         org.apache.xpath.compiler.XPathParser.RelationalExpr(XPathParser.java:928)
         org.apache.xpath.compiler.XPathParser.EqualityExpr(XPathParser.java:868)
         org.apache.xpath.compiler.XPathParser.AndExpr(XPathParser.java:832)
         org.apache.xpath.compiler.XPathParser.OrExpr(XPathParser.java:805)
         org.apache.xpath.compiler.XPathParser.Expr(XPathParser.java:788)
         org.apache.xpath.compiler.XPathParser.initXPath(XPathParser.java:127)
         org.apache.xpath.XPath.<init>(XPath.java:176)
         org.apache.taglibs.standard.tag.common.xml.JSTLXPathAPI.eval(JSTLXPathAPI.java:285)
         org.apache.taglibs.standard.tag.common.xml.XPathUtil.selectNodes(XPathUtil.java:527)
         org.apache.taglibs.standard.tag.common.xml.ForEachTag.prepare(ForEachTag.java:50)
         javax.servlet.jsp.jstl.core.LoopTagSupport.doStartTag(LoopTagSupport.java:227)
         org.apache.jsp.milwaukee.includes.XMLParse.traveltimesMilwaukee_jsp._jspService(traveltimesMilwaukee_jsp.java:102)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
         org.apache.jsp.milwaukee.traveltimes_jsp._jspService(traveltimes_jsp.java:314)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

  • Deferred expressions inside JSP tags

    Hello!
    I want to include custom JSP 2.0 tag into page.
    Something like
    <!-- Page.jsp -->
    <jsp:root version="2.0"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:jsp="http://java.sun.com/JSP/Page"
        xmlns:pk="urn:jsptagdir:/WEB-INF/tags">
        <jsp:directive.page language="java"
            contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" />
    <f:view>
    <pk:custTag bean="${beanInstance}"/>
    </f:view>
    </jsp:root>inside that tag I want to access my bean in JSF 1.2 way:
    <!-- custTag.tag -->
    <jsp:root version="2.0" xmlns:h="http://java.sun.com/jsf/html">
    <jsp:directive.tag body-content="empty" language="java"
            pageEncoding="ISO-8859-1" />
    <jsp:directive.attribute name="bean" required="true" type="com.my.Bean"/>
    Runtime way:
    ${bean}
    ${bean.prop}
    Deferred way:
    <h:outputText value="#{bean}"/>
    <h:inputText value="#{bean.prop}"/>
    </jsp:root>So ${} renders as expected, but <h:outputText> renders nothing as #{} evaluates to null. What should I do to make outputText and inputText work, if that's possible at all?
    I use Tomcat 6.0.2 and JSF-RI 1.2_03.
    Thanks,
    Alexey

    Oh, I see now.
    But is there a way to trick JSF by explicitly putting bean into request scope? Something, like Tomahawk's aliasBean?
    Actually, I did try to implement it. The following code was supposed to create a variable in EL-context:
    ValueExpression     expr = _value instanceof ValueExpression
                       ? (ValueExpression)_value
                       : facesContext.getApplication().getExpressionFactory().createValueExpression(_value, Object.class);
    ELContext   ctxt = facesContext.getELContext();
    VariableMapper varMap = ctxt.getVariableMapper();
    if ( varMap == null ) {
        ((ELContextImpl)ctxt).setVariableMapper( new VariableMapperImpl() );
        varMap = ctxt.getVariableMapper();
    if ( varMap != null ) {
        varMap.setVariable(_alias, expr);
        _active = true;
        log.fine("makeAlias: " + _alias + " = " + expr.getExpressionString());
    } else {
        log.warning("makeAlias: " + _alias + " = " + expr.getExpressionString() + " failed");
    }But resolving #{...} still returned null.

  • JSTL expressions  inside JSF Component

    Hello *
    I am experiencing c:if tag issues if embedded inside h:panel tags. Nesting a single c:if tag works fine, but nesting two breaks the app.
    Therefore I have to seprate out the JSTL tags into there own h:panel...bit messy.
    Anyone else experence similar probs?
    All the best.
    J

    As requested.
    Init locked state is = true.
    From memory unlock btn is displayed, but on submit no render difference.
    <h:panelGrid >
      <c:if test="${locked}">
         <h:commandButton type="submit" value="Unlock" action="#{bean.unlock}" immediate="false" />
      </c:if>                  
      <c:if test="${not locked}">     
         <h:commandButton type="submit" value="Save" action="#{bean.save}" immediate="false" />
      </c:if> 
    </h:panelGrid>
    CURR_WORKAROUND - has resolved the problem, but not ideal because of additonal panel code which seems pointless
    <h:panelGrid >
      <c:if test="${locked}">
         <h:commandButton type="submit" value="Unlock" action="#{bean.unlock}" immediate="false" />
      </c:if>  
    </h:panelGrid>
    <h:panelGrid >
      <c:if test="${not locked}">     
         <h:commandButton type="submit" value="Save" action="#{bean.save}" immediate="false" />
      </c:if> 
    </h:panelGrid>regards

  • Regular Expressions inside html file

    i'm doing some report genearting tool. the template file is in the form of a html file. and i need to add some values from a database to the file in to some specific places which are marked by spcial tags defined by me.
    any way thats not the issue. i read the whole html to a string and then i want to check for those tags.
    can anyone just tell me what is regular expession for searching this tag.
    (Only one occurance of a tag of specific type is there in the file )
    this is the tag <!--data><!-->
    thanks in advance

       private String html = "";
       private StringBuffer sb;
       public generateReportUser() {
          try {
             BufferedReader fileIn  = new BufferedReader(new FileReader("E:\\BCSProj\\templates\\tmpUserReport.htm"));
             String s;
             while ((s = fileIn.readLine()) != null) {
              //  html += s;
                html += s + "\n"; //this might be better
          } catch (Exception e) {
             e.printStackTrace();
          System.out.println(html);
          fileIn.close();
          Pattern p = Pattern.compile("(<!--data>)(<!-->)");
          Matcher m = p.matcher(html);
          sb = new StringBuffer();
          while (m.find){
            // "The Data" part can be dynamic
            m.appendReplacement(sb, m.group(1) + "The Data" + m.group(2));
       //     m.appendReplacement(sb, "The Data"); //simple replacement
          m.appendTail(sb);
          System.out.println(new String(sb));
    /* They are quite nonsense
    //check the mathes found this is always false for me
          System.out.println(m.matches());
    //just checking parting the string
          if (m.matches()) {
             int i = m.groupCount();
             for (int j=0;j<i;j++) {
                System.out.println(m.group(j+1));
                System.out.println("***********");
          sb = new StringBuffer(html.trim());
       }

  • Expression inside expression

    Hi,
    Look at my problem
    <c:forEach var="numberP" begin="0" end="${listForm.noRow}" step="1">
         <c:set var="url${numberP}">${action}.do?${listForm.parameterString}&page=${numberP}</c:set>
    </c:forEach>And then I need to access this url. I was trying something like code below but it�s not working
              <c:forEach var="numberP" begin="0" end="${listForm.noRow}" step="1">
                   <om:button-link href="${url${numberP}}" key="${numberP}" disabled="${!hasNext}" className="paging-button${hasNext?'-active':''}"/>
              </c:forEach> So my question is how to access to this url1, url2 � urlx in iteration.
    Any idea?

    Sorry, answered the question too quickly on automatic.
    The <c:set> tag does NOT support a dynamic "var" attribute.
    It DOES support a dynamic "target" and "property" tag
    Here is an alternative way of doing it.
    This sets up a map of urls, indexed by "numberP"
    <jsp:useBean id="urlMap" type="java.util.Map" class="java.util.LinkedHashMap"/>
    <c:forEach var="numberP" begin="0" end="${listForm.noRow}" step="1">
         <c:set target="${urlMap}"  property="${numberP}">${action}.do?${listForm.parameterString}&page=${numberP}</c:set>
    </c:forEach>Then the rendering code becomes:
    <c:forEach var="numberP" begin="0" end="${listForm.noRow}" step="1">
         <om:button-link href="${urlMap[numberP]}" key="${numberP}" disabled="${!hasNext}" className="paging-button${hasNext?'-active':''}"/>
    </c:forEach>or alternatively loop over the map itself directly.
    <c:forEach var="urlEntry" items="${urlMap}">
      <om:button-link href="${urlEntry.value}" key="${urlEntry.key}" disabled="${!hasNext}" className="paging-button${hasNext?'-active':''}"/>
    </c:forEach>I'm not sure where your "hasNext" property is coming from. Is that related to specific entries or is it a global thing?
    Cheers,
    evnafets

  • How to find a certain usage of a specific value inside an SSIS package

    Hi,
    In T-SQL, there are many tools to search for instances of a specific value in all the objects such as tables and SPs.
    The only way I can think of in SSIS, is to search for a value in the XML of the DTSX, but it is not that user friendly.
    Are there any existing tools or other ways for a value search that can assist ?
    Thanks,
    Dani

    Since a package is just a plain text XML file thus  you are able to perform a text search in the file.
    http://sqlblog.com/blogs/jamie_thomson/archive/2012/06/12/using-find-replace-with-regular-expressions-inside-a-ssis-package.aspx
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • How to use string as an expression in SSRS reports

    Hello all,
    I have created a SSRS report in which I have used a tablix and a single dataset (ds_test)
    Now the dataset use t-sql and  is calling a table in which has data as shown below:
    What I am trying to do is to use this as an expression inside the cell of the tablix. But when I run the report It give me:
    But It should show the result as "True", I know it is taking this as a string but is there any way so that we can use this as an expression in the report
    NOTE: We cannot use this directly in report , because this is generated dynamically and should always present in DB tables only
    Thanks in advance
    Pankaj Kumar Yadav-

    So your table has a varchar column with 'iif(1=1,True,False)'  in one of the records ?
    yes
    Pankaj Kumar Yadav-
    You wont be able to pass a value from db like this and use this as an expression inside SSRS.
    If you're using SQL 2012 you can exec this expression using dynamic sql and then show return value as is in a SSRS report.
    SSRS is a presentation tool with limited scripts and it cant do any query processing against database. that part have to be implemented using t-sql query on backend (dataset)
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • JSF-EL expansion inside of object using ADF in a JSP

    JSF-EF will not convert to text inside of <object><param>
    I have an existing JSP application that uses an Applet. There is a lot of <% %> code that is passed to the Applet using the <param> tag.
    My code goes as follows:
    <%@ page stuff%>
    <%@taglib stuff%>
    <f:loadBundle stuff/>
    <%
    a lot of ugly java code that I've already ported to a Managed Bean like
    String WORKS = "WORKS";
    %>
    <f:view>
    <afh:html><afh:body><f:view><afh:head>blah</afh:head>
    <afh:body><af:form><af:panelPage>
    a lot of <f:facets>
    <h:panelGrid columns="1">
    <f:column>
    <f:verbatim escape="false">
    <af:outputText value="#{MyBean.WorksFine}"/>
    </f:verbatim>
    </f:column>
    <f:column>
    <f:verbatim escape="false">
    <object classid="234" and more object stuff>
    <param name="WORKS" value="WORKS"/>
    <param name="<%=WORKS%>" value="<%=WORKS%>" />
    <param name="#{MyBean.FAILS}" value="#{MyBean.FAILS}" />
    </object>
    </f:verbatim>
    </f:column>
    </f:panelGrid>
    and so on to
    </f:view>
    To make a long story short my new implementation depends on being able to rid my JSP of all the <% %> stuff so that I can perform magic in my Managed Beans and then pass it to the third party applet.
    I've tried using the <applet> tag and the <jsp:plugin> tags instead of the <object> tag and have the same problem. I also tried removing the escape="false" property from the <f:verbatim> tag. When I look at the Source in the Browser I see the #{MyBean.FAILS} instead of the value it holds. I can successfully use the JSF-EL references inside of a <f:verbatim> tag as long as I refer to it outside of the <object> tag. Once inside the <object> tag the expression is not evaluating.
    My questions are:
    (1) Is there anyway to use a JSF-EL expression inside of an <object> or <param> tag?
    (2) Can you suggest another way that I might pass my Managed Bean properties to the Applet?
    (3) As a worst case, is there anyway that I can access my Managed Bean Properties from inside the <% %> code?
    Thanks. Mark

    Since object and param are not JSF tags, there is no way to access JSF-EL.
    As for accessing the managed beans, you should be able to do so as long as you know they've been instantiated at the point in the page where you make the reference and they are in a scope that you can access from JSP land (like session or application).
    Not the answer you wanted, but I hope it helps.

  • Help needed regarding regular expressions

    hello
    i need to write a program that recieves a matematical expression and evaluates
    it...in other words a calculator :)
    i know i need to use regular expressions inorder to determine if the input is legal or not ,but i'm really having trouble setting the pattern
    the expression can be in the form : Axxze2223+log(5)+(2*3)*(5+4)
    where Axxze2223 is a variable(i.e a combination of letters and numbers.)
    where as: l o g (5) or log() or Axxx33aaaa or () are illegal
    i tried to set the pattern but i got exceptions or it just didnt work the way i wanted it .
    here's what i tried to do at least for the varibale form:
    "\\s*(*([a-zA-Z]+\\d)+)*\\s*";
    i'm really new to this...and i can't seem to set the pattern by using regular expressions,how can i combine all the rules to one string?
    any help or references would be appreciated
    thanks

    so i'll explain
    let's say i got token "abc22c"(let's call it "token")
    i wan't to check if it's legal
    i define:
    String varPattern = "\\s*[a-zA-Z]+\\d+\\s*";If you want to check a sequence of ASCII characters, longer than one, followed by a single digit, the whole possibly surrounded by spaces -- yes.
    >
    now i want to check if it's o.k
    so i check:
    token.matches(varPattern);
    am i correct?Quite. It's better to compile the Pattern (Pattern.compile(String)), create a java.util.regex.Matcher (Pattern#matcher(CharSequence)), and test the Matcher for Matcher#matches().
    (Class.method -> static method, Class#method -> instance method)
    >
    now i'm having problem defining pattern for log()
    sin() cos()
    that brackets are mandatory ,and there must be an
    expression inside
    how do i do that?First, I'd check the overall function syntax (a valid name, brackets), then whether what's inside the brackets is a valid expression (maybe empty), then whether that expression is valid for that function (presumably always?).
    I might add I'm no expert on parsing, so that's more a supposition than a guide.

  • Is it possible to use Airport Express to extend my Cisco E2500 wireless network

    Hi everyone,
           I just bought the new 2012 Airport Express yesterday, and want to extend my network which is using Cisco E2500 via the Ethernet port, but I don't know how to do it, anyone can tell me if it is possible and how to do it?

    Hi Bob, I have successfully extend my Cisco E2500 network using the 2012 Airport Express via Ethernet port, below is the things I have configured.
    1. Inside AirPort Utility - Wireless Tab, choose "Create a wireless network" in the Network Mode option, use the same Wireless Network Name, Wireless Security, Wireless Passowrd as the Cisco E2500.
    2. In the Internet Tab, I just choose using DHCP since the Cisco E2500 will be the one to distribute IP Address, then the IP address, subnet mask, router address and DNS servers address has been assigned successfully to Airport Express.
    3. In Network Tab, use "Off (Bridge Mode)" for the Router Mode option.
    4. Click Update, and let the Airport Express to update itself and restart.
    All done, and all my devices in different part of my house can access the internet connection, also my iMac in the living room and airplay music to the speaker that connect to my Airport Express inside the bedroom.

Maybe you are looking for

  • Postings to G/L accounts with open item management are not permitted in ASKB

    Hi Gurus, I have the error FAGL_POST_SERVICE012 'Postings to G/L accounts with open item management are not permitted' when i run the transaction ASKB. The very strange thing is that in table APERB_ITEMS for this company code there isn't any record.

  • HDMI out on zc706 and zc702

      Hi All,          I ported the HDMI out interface for ZC706 to ZC702 board. For some reason the HDMI display didn't get initialized. The following are the things I verified,     1. The ADV7511 used for HDMI display is configured as expected.     2.

  • Set Customerwise Debtor accounts in Accounts Receivable

    Hi All, I need to set customerwise debtor accounts when a transaction is created in accounts receivables. That is when I enter a transaction for customer A, then account debited must be customer A debtor account. Can I do this in oracle ebusiness sui

  • How to stop user from entering value for already existing data

    Hi , We have a situation , where we need to give user a template for entering the data and then send it to the database. But we want that if user has already entered the value for a combination, then he should not be allowed to select the same combin

  • Viewing Current Users/Sessions Logged onto CMS (Central Management Server)

    Post Author: Alanimal CA Forum: Data Integration Hi Guys, When you use the Central Management Console, click on HOME>SERVERS>CMS:(SERVERNAME) - Under the properties for the Central Management Console you can view who is actually logged into the CMS.