IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only

accessing to the values of xapp-tag in the java code of a js

  • 1.  accessing to the values of xapp-tag in the java code of a js

    Posted Tue May 25, 2004 01:00 PM

    X-Application Version: 4.1.1
    Tamino Version : 4.1.1
    Platform : WinXP
    WebContainer : Tamocat 4.1.1
    JDK Version : 1.4.1

    Hello,

    i have of xapp:browse tag in my JSP and i’d like to test the value of the variable $POS.

    First i try to do this :

    <%
    String pos = request.getParameter(“:pos”);
    if(!pos.equals(“”))
    {
    String tab = pos.split(“,”);
    if(Integer.toString(tab.length).equals(“2”)) {pos = tab[1];}
    else {pos=“0”;}
    }
    else {pos=“0”;}
    int position = Integer.parseInt(pos);
    %>

    But it isn’t a good solution. It’s to uncertain.
    The better would be to have something like that :

    <%int position = $POS %>
    But that syntaxe is uncorrect.
    I have read the thread who deal with that problem, but i have found nothing usefull enougth.

    Thanks for your answer.


    #webMethods
    #Tamino
    #API-Management