Can we use equals method in JSTL

hia all,
is there is possible to use equals method in JSTL c:when tag. if so please give me an example or else please tell me some solution.
regards
subramanian

Have you tried it anyway? Where exactly are you talking about with "contents"?
Remember that the == operator in JSTL isn't the same as the == operator in Java. In JSTL it invokes the Object#equals() method behind the scenes, while in Java it checks the equality of the reference.

Similar Messages

  • How to use this method in JSTL?help me please!

    I know I can use "<C:set >" like as
    <c:set var="clabel3" value="${portalCustomizeBean.portalPage}"/> ,
    but now I want to use one method of portalCustomizeBean object not a attribute of it !!!!!
    who would tell me how to use?
    this is wrong in my code:
    <c:set var="clabel" value="${portalCustomizeBean.currentPageLabel}"/>
    <c:set var="clabel3" value="${portalCustomizeBean.toEntitiesExceptSpaceEscape(clabel)}"/>
    but how to use "toEntitiesExceptSpaceEscape" method in JSTL?????

    Why can't you just assign the method's return value to a variable and then print that? A bit of scriptlet code will do the trick. (As much as we all hate to use scriptlet code.)
    I believe you'll be able to do what you want in the 1.1 standard JSTL, but for now this will suffice. - MOD

  • Can i use Response method in livecycle designer to render or open pdf doc?

    Hello,
    Can anybody please tell me is it possible to use response method available in the adobe livecycle designer which takes the input value to open the pdf doc.
    Case 1: if we send adobe form throgh mail as pdf doc,then at the receiver side if the user open the pdf doc a popup should come asking for the input value.This popup will be from the response method.
    Case 2:if we save the adobe form as pdf doc on to our desktop and then if we try to open the pdf doc a popup should come asking for input value.
    Is it possible to do ?
    If yes then in which event of livecycle designer we should write that response method and in what way?
    If no,is there any other way to do this?
    Thanks in advance,
    Menaka

    Yes i have tried in other events of livecycle designer.
    In Formready event -> if i do preview pdf,first it will display form and then it ll ask for password.But with this event only if i save the pdf to my local desktop and try to open it ll not ask for password anywhere.
    In Layoutready event ->Pdf preview in designer is working fine,but when i save it my local desktop and try to open it ll not ask for passward.
    Could anybody tell me how to do it.
    Menaka.

  • Can I use object methods in a class

    I have a class ball and I am in the process of creating it's move method. I want this method to make the ball move depending on certain factors.
    One of these factors being where a bar has been stopped. I have a bar class which extends JProgressBar and when stopped, produces a number. I want this number to be available to my ball class in some way so it can use it to determine how far the ball has to move. The number can be output using its method getValue() but I am unsure how this can be used by another class.
    I doubt this is possible, but I am sure there are ways to achieve what I want. Any help on this subject would be great.

    Methods in one class can call methods defined in another class, subject to access restrictions (public, protected, package-private). This is pretty basic, so you should be able to get the meat of it from your text or tutorial. Look there, or in the following for explanations and examples, and post again if you can't get your code to work.
    http://java.sun.com/docs/books/tutorial/
    http://java.sun.com/learning/new2java/index.html
    http://javaalmanac.com
    http://www.jguru.com
    http://www.javaranch.com
    Bruce Eckel's Thinking in Java
    Joshua Bloch's Effective Java
    Bert Bates and Kathy Sierra's Head First Java

  • Can we use a method in addActionListener ??

    Hello Everyone,
    can anyone tell me how to use a method in addActionListener ?
    if u have any example , plz send me
    Thanks & Regards

    [url http://java.sun.com/docs/books/tutorial/uiswing/events/actionlistener.html]How to Write an Action Listener
    You can invoke your method when you provide implementation for the actionPerformed(...) method.

  • Can we use call method or call action in dynpro.

    hi all,
    In the view of a web-dynpro, can we call one action inside another action..?
    or can we call a method inside an action..
    if so plz help...
    thanks in advance,
    jithin.

    Hi Jithin,
    Suggest you that, you keep your logic in a method which you are using for create(event).
    the same method you can call in modifyview so that after you create again the modifyview will get trigger and then it fills your dropdown.
    or
    after create functionality is done then call a method to fill the dropdown.
    try to modularize your code using methods then you can
    re-use it.
    still you need any clarificatinos let me know.
    Regards,
    Mahesh

  • How can i use C# method to SAP IDoc

    Dear Friends
    i have to do one scenario in which i have to connect to database let us say SQL Server but i can't touch Database directly i can call a C# method(3rd party application is in .NET) and using XI i have to send it to SAP iDOC.
    can any one help me in this how to proceed
    Thanks in Advance.
    Ishika

    <i>Do you have any document for that on how to do it with webservices.</i>
    /people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d23cbe11-0d01-0010-5287-873a22024f79
    See this
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2131 [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    Regards,
    Prateek

  • Can I use  a method in super()

    Hi,
    I hope to use a method in super(). Can I?
    like this
    public Example(Class1 obj1, Class2 obj2){
    super("This is an example"+getString());
    public String getString(){
    return string;

    It can be compiled successfully. Then you have a serious compiler bug. Report it to the vendor and start using another compiler.
    But this method
    getString() cannot be revoked. I have no idea what you mean by that?
    So I hope to know if
    there are some ways to use methods in super()?If your compiler was working, it'd tell you that instance methods can not be invoked here.
    Class (static) methods however, are fine.

  • Using equals method with an array?

    Hello all,
    I am attempting to use the equals method with an array and keep getting compiling errors. Could you please take a look at my code and tell me where I am going wrong:
    if(board[row][col].equals(" "))
              str=str + " ";
              else
              str=str + board[row][col];
    Thank you.

    Hello all,
    I am attempting to use the equals method with an
    array and keep getting compiling errors. Could you
    please take a look at my code and tell me where I am
    going wrong:
    if(board[row][col].equals(" "))
              str=str + " ";
              else
              str=str + board[row][col];
    Thank you.If you could post more of your code, that would be quite helpful...

  • Can i use 2 methods to deploy icon files in Oracle IDS?

    Dear all,
    I'm using Oracle 9IDS(Forms) and i'm trying to use 2 methods to deploy icon file:
    -In development phase, i use defaul.icon.path and defaul.icon.extension in registry.dat file and imagebase=documentbase. My icon are well deploy when i run application from form builder.
    -In deployment phase, on the same plateform, i use jar file following these steps:
    1- I store jar file in same directory with all runtime files(fmx, mmx, etc.)
    2- i create a virtual path(/forms90/Tel/) to map with this directory
    3- in formsweb.cfg, i put the following line:
    [myapp]
    imagebase=codebase
    archive_jini=f90all_jinit.jar,/forms90/Tel/images.jar
    When i call my application directly (http://localhost:8889/forms90/f90servlet?config=myapp),
    icons don't appear.
    I would like to know, what's wrong?It's possible to use theses both methods for deploy icons on the same plateform?
    Thank u for your help

    Hi Franck,
    I thank that red correctly the document(how deploy icon on web).But that isn't the matter.I update my formsweb.cfg as you advise me
    [myapp]
    archive_jini=...,/forms90/images.jar
    imagebase=codebase
    Icon don't appear at runtine while other gif files(splashscreen,logo) appear.Notice these others gif files are compressed in the same jar file. Notice also, that when i use default.icon.path parameter in registry.dat file, icons are well deployed.
    It's incomprehensible.
    Thanks you for your help!

  • How can I use instance methods created with HashMap

    class Template
    static HashMap customer;
    a few methods created various customer
    public static display() //to display a particular customer information among i've created above
                 String objectName,currentObjectName;
              Customer customer;
              Scanner scan=new Scanner(System.in);
              System.out.print("Please enter the customer name");
              objectName=scan.nextLine();
              Iterator iteratorForCustomer=CustomerMap.entrySet().iterator();
              Map.Entry customerEntry=(Map.Entry)iteratorForCustomer.next();
             while(iteratorForCustomer.hasNext())
                    customerEntry=(Map.Entry)iteratorForCustomer.next();
                    if(objectName.equals((String)customerEntry.getValue()))
              System.out.println("Name : " +customer.getName()); //I'm trying to reference to an instance method getName() here but i can't do that .
    }The problem is I've created as many as I want and later in the program I tried to redisplay a particular customer information based on the input (objectName). User type in the objectName and I tried to look for a particular customer Object in the HashMap and display only the relevant customer information. Is there any way to do it ? Thanks everyone in advance.

    Peter__Lawrey wrote:
    use the get method
    [http://www.google.co.uk/search?q=map+tutorial+java]
    [http://java.sun.com/docs/books/tutorial/collections/interfaces/map.html]
    And then either look at a generics tutorial, or, if you're stuck on a pre-1.5 version of Java, find out about casting

  • Can't use inherited method with JButton

    I am trying to use the getActionListeners() method on a JButton. The method is inherited from the AbstractButton class. However, when I try to compile with this line...
    ActionListener CurrentListeners[] = OKButton.getActionListeners();I get the following error:
    Method getActionListeners() not found in class javax.swing.JButton.
    I am also using the removeActionListener() method, which is inherited from the same object, and the compiler has no problem with that!

    Okay, then does anyone know how I can change the
    ActionListener for a JButton? I want to use the
    removeActionListener(ActionListener l) method and then
    addActionListener(...). However, since I can't get
    the current ActionListener, I have nothing to pass
    into the remove method.It's my belief that's this is why this method was added to AbstractButton in JDK 1.4. It makes life so much easier. Why don't you download the JDK 1.4 and install it into your IDE?
    Otherwise, you should subclass JButton as someone else suggested and provide an accessor method for the listener.

  • How can I use staitc method?thanks!

    here is my code :
    class a
    void go()
    System.out.println("now you are calling a.go method!");
    public class b extends a
    public static void main(String args[])
    a t1=new a();
    t1.go();
    It can be compiled and excuted perfectly,but I read from book that "in static method ,we can olny call static variable or method....." ,but t1.go() method is not static method ,why? thanks!

    static methods cannot refer to the methods and variables in their scope. They can however instantiate an object and use it... just like you did in your code.
    Think about this.
    public class SuperString extends String{
      public static void test(){
        String hello = "Hello";
        System.out.println(hello + " The string length is: " + hello.length());
    }in this example whe have String class that we added a static function to. It is otherwise the same thing as a String. Notice how I can instantiate and use a String class, but If I tried something like this
    public class SuperString extends String{
      public static void test(){
        System.out.println(this + " The string length is: " + this.length());
    }it would fail.

  • Can subclass use a method in supercalss as the implementation of interface?

    Assume P is the superclass of S. S implements interface I. Both P and I have the same method m. Must I implement m in S?
    Thanks.

    It depends.
    If m is public then it is already inherited so you don't have to unless you want a overriding implementation.
    If m is private, it is not, so you have to.
    If it is protected, the Super Class method cannot hide the public method in the interface, so again, you have to.
    HTH.
    -o12

  • How to use POST method to send & recieve XML data in WebDynpro application

    Hi There,
    How can we use POST method in a Url (callign weebdynpro application) and pass XML String content. How can we read this this inside WD Application.
    Any pointers will be great help.
    Rgds

    Closed

Maybe you are looking for

  • HP Office Jet 6600, cost of 933 HP ink cartridges same for regular and xl?

    Office Jet 6600 ink cartridges. 933 cyan, magenta and yellow.  My new cartridges in cyan XL is the same size as old regular size cartridge.  Please explain.    

  • How do you maximise the screen?

    Pressing the green button in the top left only seems to make a page fill most of the screen - how do you make a page fill the whole screen? Thanks

  • Whenever I try to adjust the color of a scene it gets distorted/squiggly lines.

    Using elements 12; This is my first time editing by the way. Whenever I try to adjust the color of a scene the footage gets distorted/squiggly lines. This is prior to me rendering the footage -- I don't know if that has anything to do with it.

  • Consignment issue - stock related problem

    hello, This is an issue related with consignment issue. material document is created and and seen in document flow. also posted in FI It can be seen in MB51 with special stock indicator 'w' But it cant be seen in MB58. There is a mismatch. movement t

  • Plug-ins and Leopard

    I was running CS3 with my various third-party plug-ins fine on my G5 using Tiger. Then I purchased a MacPro that came with Leopard installed, and now I can't get any of my plug-ins to register on the pull-down menu. One plug-in is Digi-element's Auro