Using HashMap's ContainsKey() in JSTL

Can we use HashMap's containsKey() in JSTL <c:if > statement
I tried with the sample
<html:select property="Type" multiple = "true" size = "3">
<option value='<c:out value="${key}"/>'
<c:if test="${requestScope.test.containsKey(key)}">
selected
</c:if>     
<c:out value="${value}"/></option>
</html:select >
When i executed the above code i encountered JSP Error
Can any one please let me know the correct code

You can't call java methods from JSTL. It uses the EL - not java.
However there is a solution.
You access maps using the square brackets [ ] notation.
ie ${test[key]}
is the same as test.get(key)
try
<c:if test="${ not empty test[key] }"/>
However seeing as you are using the struts tags, doesn't that automatically take care of this for you? Why don't you use the struts tags for the options list as well as the select? Just a thought :-)
Cheers,
evnafets

Similar Messages

  • Using HashMaps from another class

    I'm trying to use a HashMap to store a person with a given Id. When i create a HashMap as part of a main method and use the put method on that HashMap everything goes fine ie:
    Map myMap = new HashMap();
    Person james = new Person)("James", "Smith");
    myMap.put(1,james);However, when I use a HashMap as part of one class and attempt to call it in another using a simple add method I get a null pointer exception. For example, I have the class People which is basically:
    import java.util.*;
    public class People
        private Map myPeople;
        public People()
            Map myPeople = new HashMap();
        public void addPerson(int id, Person p)
            PeopleTable.put(id,p);
    }I then make a call to this using a separate main method
    Person james = new Person ("James","Smith");
    People myFamily = new myFamily();
    myFamily.addPerson(1,james);but get a null pointer exception. I can't see anything glaringly obvious that i'm getting wrong, but i've just started using HashMaps so I may be missing something.
    Any insight would be greatly appreciated!
    Thanks,
    Nick

    nickd_101 wrote:
    However, when I use a HashMap as part of one class and attempt to call it in another using a simple add method I get a null pointer exception. For example, I have the class People which is basically:
    import java.util.*;
    public class People
    private Map myPeople;
    public People()
    Map myPeople = new HashMap(); //*** You're declaring the map again here, don't do this.
    public void addPerson(int id, Person p)
    PeopleTable.put(id,p);
    You're declaring the map twice, once at the top of the class, which is good, and once again in the constructor, which is very bad since the class's hashmap never gets constructed. Don't do this.
    The constructor should be:
        public People()
            myPeople = new HashMap(); // ** better
        }

  • Getting Out of memory error while using HashMap

    Hi,
    I'm using HashMap to have string as key, some object as value.
    oHm.put(sKey, oMyVal); //oHM - HashMap
    The actual number of entries i need to put is 200K....
    Buy my program is not crossing even for 100K....
    Its giving OutOfMemory error...... ( 1 GB memory, Win XP )
    Any pointers to resolve this?
    Thanks in Advance...
    Ashok

    Do we have any alternate other than increasing the memory for JVM?Did you read what I said on 8/04/2008 22:20 (reply 1 of 5)?
    It's still the best looking option, especially if this large number is going to grow.

  • Re: Announce: J2EE MVC training using Struts with Standard Tags (JSTL)   8/2 in NYC

    Standard J2EE MVC training using Struts with Standard Tags (JSTL)
    -We have done more Struts training than anyone. This class adds Standard Tag Libs (JSTL) with MVC and a portal discussion.
    Full Syllabus is at :
    http://www.basebeans.com/syllabus.jsp
    NYC on 8/2.
    This is the last week to sign up :
    http://www.basebeans.com/classReservation.jsp
    More dates(tentative):
    8/9 - Chicago downtown Marriott
    8/16 - Atlanta downtown Marriott
    8/23 - Austin downtown Marriott
    To keep up on upcoming MVC training sign up at:
    http://www.basebeans.com:8081/mailman/listinfo/mvc-programmers
    Hope to see you,
    Thanks,
    Vic
    Ps. 1: Set your newsreader such as Outlook Express or Netscape to news.basebeans.com for Open Standard news groups like JDO, Apache, SOAP, etc.
    Ps 2: The sample app will be available end of next week at:
    http://www.basebeans.com/downloads.jsp

    i have same problem with
    CLI130 Could not create domain, domain1
    then i try these things with PATH stuff but it haven't worked for me...
    then i tried to search windows registry for string domain1 and nothing found...
    then i searched my profile directory (on windowsxp c:\Documents and Settings\user on linux /home/user) for files that containd string domain1 and i found some .adadmin* files (as i remember there were 3 files) then i deleted them, try to install sun app server and it works for me... there are still some warnings but at least installation finishes and files were not deleted...
    i hope this help...
    for me it does

  • Justification for using HashMap and not ArrayList

    Hi, I've recently completed a project for my course and now I'm doing the write up for it. Part of my project was to load a dictionary into a data structure. I went with a HashMap because I had code from a previous project to help implement it, the dictionary was used to check possible decrypted words and return possible words that the half decrypted word could be.
    Now I should justify my use of HashMap v ArrayList. Time complexity of ArrayList is better than the hashmap if im correct, so are there any 'technical' reasons I could say why I chose the HashMap:
    ArrayList O(1)
    HashMap O(n)
    So searching 50,000 + words would be best using an arraylist? Could anyone possibly give a good reason why hashmaps would be better than arraylists?

    Linear searching is (generally) the slowest way to find something.
    If you know the exact location of what you're looking for, then obviously just accessing it using an ArrayList would be fast. Using a HashMap you can, by using the input key, figure the index of the bucket which contains your data, so you don't have to linearly search through the whole map just to find what you're looking for, your key gives you it's location.
    I'm sure these links can explain stuff better than I did:
    http://java.sun.com/j2se/1.4.2/docs/api/java/util/ArrayList.html
    http://java.sun.com/j2se/1.4.2/docs/api/java/util/HashMap.html

  • Using Java 5 enums on JSTL page

    Hi,
    Anyone any idea how to get at enums on a JSTL page, without using scriptlets? The dot notation doesn't appear to work.
    regards,
    dig

    I don't think there is one directly.
    enums were new with java1.5, and I don't think it has quite caught up.
    However JSTL also doesn't deal with constants very well.
    Probably your best bet would be to use the EnumMap and EnumSet classes to expose a set/map of the enum onto the page.
    JSTL could at least deal with those.
    What exactly are you trying to accomplish with the enum on the JSP page?

  • Using HashMaps in an EJB

    Ok this is the second time Im posting this problem. Last time I posted all the details and it may have been more general. This time I will be more specific. The following are the requirement that we were given for a school assignment,
    Develop a prototype software module to implement a messenger service. Messaging
    Systems consist of one Messaging server and several clients. Message can differ from a simple text message to a complex object like an Image. System should include following components.
    � Messaging Server: A Messaging server will hold the message queue for our
    Messaging system (which you need to develop)
    � Messaging Queue: A Queue will hold the messages from the client. The
    messages on this queue will be MapMessages that will allow us to store
    name/value pair information about the message to be sent out
    � Message Client: A client will create a message, and put it on the Messaging
    Queue. This message will hold the information for the email message to be sent out
    � Message Driven Bean: A message driven bean will be responsible for taking in the Message MapMessage and for mailing it out.
    To develop the system you have to use EJB 3.0 architecture. Usage of Java Persistence
    API for modeling data would be recommended.
    I dont want the coding to develop the system, I have already created that part and it works perfectly when I send text or numbers as messages. What I need help is on how to handle a hashMap. Simply SET'ing and GET'ing a hashMap does not seem to work. If you good people can give me some pointers on how to set up the entity and how the GET'ing and SET'ing methods work in relation to the HashMap I would be a very happy and thankful guy indeed.
    P.S - The *** indicate 'ing. The forum seems to sensor those words.
    Message was edited by:
    jomanlk

    WELL I gone through your code in the link
    http://forum.java.sun.com/thread.jspa?threadID=5138929&messageID=9509475#9509475
    Well thats the important parts of the code. it works fine when I send >simple messages but when I try out the HashMap the servlet is >displayed but no messages are sent to the queue. It would be great if >anyone could help. The reason is simple;
    THE HASHMAP CONTAIN NULL VALUES AND YOU ARE SENDING NULL TO THE JMS SO NO OUTPUT.
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    response.setContentType("text/html;charset=UTF-8");
    String title=request.getParameter("title");
         System.out.println("TITLE IS     :"+title);
    String body=request.getParameter("body");
         System.out.println("BODY IS     :"+body);
    HashMap hm = new HashMap();
    //hm.put("title", request.getParameter("title"));
    //hm.put("body", request.getParameter("body"));
         hm.put("title",title );
    hm.put("body", body);
    if ((title!=null) && (body!=null)) {
    try {
    Connection connection = connectionFactory.createConnection();
    Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
    MessageProducer messageProducer = session.createProducer(queue);
    ObjectMessage message = session.createObjectMessage();
    // here we create NewsEntity, that will be sent in JMS message
    NewsEntity e = new NewsEntity();
    e.setTitle(title);
    e.setBody(body);
    e.setHm(hm);
    message.setObject(e);
    messageProducer.send(message);
    messageProducer.close();
    connection.close();
    // response.sendRedirect("ListNews");
    } catch (JMSException ex) {
    ex.printStackTrace();
    try out this code this modified code and allot some dukes if you succeed best of luck :))

  • Can I use jstl1.0 uri with jstl 1.1.2 libraries

    The application has several wars some with 2.3 and some with 2.4 web.xml
    But all the apps consistently use the 1.1 uri ie., the one WITH "jsp" in it.
    So the two part question is: does the web.xml declared specification have any effect on which taglib it picks up ?
    and are the 1.1.2 tag libs compatible with both jstl 1.0 and jstl.1.1.2 uri s ?

    No..Ideally not.
    Due to backward compatibility most of the Application Servers including WebLogic provides us an option to use older web.xml which uses DTDs as well...
    But this is not a good practice ....to use Older DDs inside our application ..it has many loses So it is always better to convert those DDs according to the version of Server which we are using.
    It is more simpler with WebLogic because WebLogic provides a very useful tool "weblogic.DDConverter" to convert/upgrade these DDs in seconds according to the current version of WebLogic which u are using...For more details on this Please refer to : http://weblogic-wonders.com/weblogic/2010/08/26/weblogic-ddconverter-to-generate-latest-dds/
    Thanks
    Jay SenSharma
    http://weblogic-wonders.com/weblogic/miscellaneous/  (Middleware Wonders Are Here)

  • Need help using HashMap in a Message Driven App

    Hi ppl,
    Im new to the forum and to Java as well. I do have some basic Java knowledge though. Anyway Im a 4th Year student and I got an assignment to build a message server that uses map messages. I fiddled around with the NewsApp example provided at NetBeans ( http://www.netbeans.org/kb/55/ejb30.html)and tried modifying it to set up to use a HashMap but no success :(
    Here are some snippets,
    NewsEntity.java
    package ejb;
    import java.io.Serializable;
    import javax.persistence.Entity;
    import javax.persistence.GeneratedValue;
    import javax.persistence.GenerationType;
    import javax.persistence.Id;
    * Entity class NewsEntity
    * @author Kiran
    @Entity
    public class NewsEntity implements Serializable {
        private String title;
        private String body;
        private HashMap hm = new HashMap();
        @Id
        @GeneratedValue(strategy = GenerationType.AUTO)
        private Long id;
        /** Creates a new instance of NewsEntity */
        public NewsEntity() {
        public Long getId() {
            return this.id;
        public void setId(Long id) {
            this.id = id;
        @Override
        public int hashCode() {
            int hash = 0;
            hash += (this.getId() != null ? this.getId().hashCode() : 0);
            return hash;
        @Override
        public boolean equals(Object object) {
            // TODO: Warning - this method won't work in the case the id fields are not set
            if (!(object instanceof NewsEntity)) {
                return false;
            NewsEntity other = (NewsEntity)object;
            if (this.getId() != other.getId() && (this.getId() == null || !this.getId().equals(other.getId()))) return false;
            return true;
         * Returns a string representation of the object.  This implementation constructs
         * that representation based on the id fields.
         * @return a string representation of the object.
        @Override
        public String toString() {
            return "ejb.NewsEntity[id=" + getId() + "]";
        public String getTitle() {
            return title;
        public void setTitle(String title) {
            this.title = title;
        public String getBody() {
            return body;
        public void setBody(String body) {
            this.body = body;
    public HashMap getHm() {
            return hm;
        public void setHm(HashMap hm) {
            this.hm = hm;
    PostMessage.java
    public class PostMessage extends HttpServlet {
        @Resource(mappedName="jms/NewMessageFactory")
        private  ConnectionFactory connectionFactory;
        @Resource(mappedName="jms/NewMessage")
        private  Queue queue;
        /** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
         * @param request servlet request
         * @param response servlet response
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            response.setContentType("text/html;charset=UTF-8");
            String title=request.getParameter("title");
            String body=request.getParameter("body");
            HashMap hm = new HashMap();
            hm.put("title", request.getParameter("title"));
            hm.put("body", request.getParameter("body"));
            if ((title!=null) && (body!=null)) {
                try {
                    Connection connection = connectionFactory.createConnection();
                    Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
                    MessageProducer messageProducer = session.createProducer(queue);
                    ObjectMessage message = session.createObjectMessage();
                    // here we create NewsEntity, that will be sent in JMS message
                    NewsEntity e = new NewsEntity();
                    e.setTitle(title);
                    e.setBody(body);
                    e.setHm(hm);
                    message.setObject(e);               
                    messageProducer.send(message);
                    messageProducer.close();
                    connection.close();
                    // response.sendRedirect("ListNews");
                } catch (JMSException ex) {
                    ex.printStackTrace();
            }(Some other code goes here to display the HTML form. not important)
    ListNews.Java
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            response.setContentType("text/html;charset=UTF-8");
            PrintWriter out = response.getWriter();
            HashMap hm = new HashMap();
            out.println("<html>");
            out.println("<head>");
            out.println("<title>Show Messages</title>");
            out.println("</head>");
            out.println("<body bgcolor='#FFCCFF'>");
            out.println("<h1>Showing all Messages</h1>");
            List news = newsEntityFacade.findAll();
            for (Iterator it = news.iterator(); it.hasNext();) {
                 NewsEntity elem = (NewsEntity) it.next();
                hm = elem.getHm();
                out.println(" <table width='35%' border='0' cellpadding='1' cellspacing='1' bgcolor='#000000'> ");
                out.println("   <tr bordercolor='#000000' bgcolor='#CC99FF'> ");
                out.println("     <td width='19%' bgcolor='#CC99FF'><font color='#000000'><strong>Name</strong></font></td>");
                out.println("     <td width='81%' bgcolor='#CC99FF'><font color='#000000'>" + elem.getTitle() + "</font></td>");
                out.println("   </tr>");
                out.println("   <tr bordercolor='#000000' bgcolor='#CC99FF'> ");
                out.println("     <td><font color='#000000'><strong>Message</strong></font></td>");
                out.println("     <td><font color='#000000'>" + elem.getBody() + "</font></td>");
                out.println("   </tr>");
                out.println(" </table>");
                out.println("-----" + hm.get("title")); //I just want to try to get 1 item to see if it works
                out.println("   <br />");
            }Well thats the important parts of the code. it works fine when I send simple messages but when I try out the HashMap the servlet is displayed but no messages are sent to the queue. It would be great if anyone could help.
    I know this isnt that clear but Im really tired and frustrated right now if you need more info please ask and I can supply it. Thanks

    Hi, so I've added a weblogic-ejb.jar.xml file with a reference to the JNDI name of the work manager:
    <?xml version="1.0" encoding="UTF-8"?>
    <wls:weblogic-ejb-jar xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-ejb-jar" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd http://xmlns.oracle.com/weblogic/weblogic-ejb-jar http://xmlns.oracle.com/weblogic/weblogic-ejb-jar/1.0/weblogic-ejb-jar.xsd">
        <wls:weblogic-enterprise-bean>
            <wls:ejb-name>DependencyWorker</wls:ejb-name>
            <wls:resource-description>
                <wls:res-ref-name>MyWorkManager</wls:res-ref-name>
                <wls:jndi-name>wm/MyWorkManager</wls:jndi-name>
            </wls:resource-description>
        </wls:weblogic-enterprise-bean>
    </wls:weblogic-ejb-jar>But I still get exactly the same error when I try to start my server. The example you referred to kind of cryptically suggests that adding a plan.xml suddenly fixed everything, but what am I missing here that actually hooks the work manager up to JNDI? am I getting these problems because I'm using annotations, or are people not supposed to access work managers in this way?
    Thanks,
    Edited by: 806682 on 05-Nov-2010 08:57

  • Question about efficiency, should i use hashmap?

    Hi all
    i read a csv file and store each line's data into a class MyData.
    this class contains a variable of id - unique for object.
    i want to store all my MyData object in a collection for later use.
    if i want to access them in the fastest way, should i store my objects in a hashmap, and the key value would be their id?
    like -
    HashMap hashmap = new HashMap();
    MyClass mc1 = new MyClass(1); //id =1
    MyClass mc2 = new MyClass(4); //id =4
    //i add the objects
    hashmap.put(mc1.getID(),mc1);
    hashmap,put(mc2.getID(),mc2);
    //then when i want to get a certain object, where id is 4:
    MyClass mc = hashmap.get(4);should i use other collection? or is it fine that way?
    Thanks!

    jwenting wrote:
    don't worry about microoptimisations like selecting a collection class based on how fast it is unless and until you have written evidence that the class you had initially chosen was the sole reason for unacceptably poor performance (which will hardly ever matter, the only time I've ever encountered that was with an ancient web application making extensive use of Vector, where switching to ArrayList made it an order of magnitude faster).Hmmm... I do diagree with that statement, but then again I'm an old f@rt... I cut my teeth on the gory gizzards of all manor of data-structures, and I still believe that selection of the "correct" data structure(s) is a core implementation issue... especially where efficiency is (even occasionally) desirable.
    I haven't seen the same big gains when replacing Vector with ArrayList... in fact, I've only seen a very marginal (<10%) increase in "overall" throughput... I have seen a couple of orders of magnitude (or thereabouts) increase when I swapped a Vector<Integer> for an int[], but that was in the inner-loop of an inherently n^2 (I think) spatial algorithm.... and I also made it reuse the int[], instead of creating, growing and throwing away the vector every time through the outer loop. Malloc is expensive ;-)
    I'd be interested to hear more details about under the conditions under which ArrayList is 10 times faster than Vector, because I do a lot of work on a 1.3/1.4 era codebase, which is full of Vectors and HashTables... and I would like to be able to make a case for an en mass replacement (and generifying) of the "old school" datastructures... but alas, I see very little bang for our buck, so I just bite my toungue and continue using Vectors, even in new code, because so many existing "helpers" take a (explicitly) Vector parameter.
    I heard a "rumor" somewhere (probably a thread here) that there's talk of discontinueing support for non-generic collections in 1.7, because they (the API/VM developers) are having to (sort of) maintain two divergent versions of every collection related thing... and nothing annoys a developer more than that, right... so Please can anyone confirm or repudiate this "rumour".
    Cheers. Keith.

  • Missing Value using HashMap and StringTokenizer

    class StringToken
         String Message = "a b Germany";
         HashMap <String,String> map;
    StringTokenizer token;
         public StringToken()
              try
              token = new StringTokenize(Message);
                   map = new HashMap <String,String>();
                   map.put("a","Adelaide");
                   map.put("b","Auckland");
    while (token.hasMoreToken())
                        System.out.print (map.get(pesan.nextToken())+" ");          
              catch(Exception e)
         public static void main(String[] args)
              new StringToken();
    The output like this :
    Adelaide Auckland null
    What i want like this:
    Adelaide Auckland Germany
    The problem is,How to display all value of Message? cos There's no Germany key..i want to make some condition like this, if there's no key in the Hashmap, the value still displayed originally..
    At my code the problem is, if there's no key in hashmap,output wont display the word..
    Thanks Guys...

    Two options:
    1) Instead of
    System.out.print(map.get(pesan.nextToken()));do
    String token = pesan.nextToken();
    String value = map.get(token);
    if (value==null) value = token;
    System.out.print(value);2) Implement a new Map which provides this behavior.
    Cheers

  • How to use hashmap in logic:iterate/

    Now i want to display four list columns within a table.
    example:
    <logic:iterate name="rowSet" property="hashMap" id="rowSetObj">
    <tr>
    <td><bean:write name="rowSetObj" property="v1"></td>
    <td><bean:write name="rowSetObj" property="v2"></td>
    <td><bean:write name="rowSetObj" property="v3"></td>
    <td><bean:write name="rowSetObj" property="v4"></td>
    </tr>
    </logic:iterate>
    Can you help me?
    how do i need to make a java bean about rowSet and rowSetObj?

    Hi,
    You need to make bean like:
    public class YourClass {
    public someType getV1() {return somthing}
    Then as you need iteration you have to create array, or collection or something described in http://jakarta.apache.org/struts/userGuide/dev_logic.html
    and fill it with instances of YourClass
    Then you need to add this that something into session like this:
    session.setAttribute(SESSION_ATTRIBUTE_NAME, yourArray);
    And then in your JSP you can do as you wrote, but you have to add one more attribute: type. so, you will have:
    <logic:iterate name="rowSet" property="hashMap" id="rowSetObj"
    type yourPackage.YourClass scope="session">
    <tr>
    <td><bean:write name="rowSetObj" property="v1"></td>
    <td><bean:write name="rowSetObj" property="v2"></td>
    <td><bean:write name="rowSetObj" property="v3"></td>
    <td><bean:write name="rowSetObj" property="v4"></td>
    </tr>
    </logic:iterate>
    good luck
    if i'm write it should work :)

  • Correct use of not operator in jstl sql

    this is my error i need it run query for "not = to" which i thought was " !="
    javax.servlet.ServletException: javax.servlet.jsp.JspException:
    SELECT DISTINCT scene.scene_start, episode.episode_date, scene.scene_end
    FROM scene, episode, scene_char
    WHERE scene.scene_id = scene_char.scene_id
    AND episode.episode_id = scene.episode_id
    AND scene_char.character_id =!1
    : [Microsoft][ODBC Microsoft Access Driver] Invalid use of '.', '!', or '()'. in query expression 'scene.scene_id = scene_char.scene_id

    I got it to work using "Not character_id =1" but the other two that you just gave didn't seem to work.
    I did actual no that it was the worng way round but I had just copied that from the code and I had just tried it back to front just in case.

  • How do I use jstl  to insert  links that passes sql info?

    Hi all,
    I'm using JSTL with sql and I want to create a link for every row so that the link would also contain the item in the first column of every row. But I keep getting stuck at saving the value. This is what I've tried:
    <c:set var="myName" value="test" scope="page"/>
    <tr>
    <c:forEach var="row" items="${name.rowsByIndex}">
         <tr>
    <c:forEach var="column" items="${row}">
         <c:if test="row =='uname'">
              <c:set var="myName" value="${column}"/>
         </c:if>
         <td>myName=<c:out value="${pageScope.myName}"/>"> <c:out value="${column}"/> </td>
    </c:forEach>
    </tr>
    </c:forEach>
    I either get a link of "edit.jsp?uName=$myName".
    Any ideas would be appreciated.
    Chris

    Introducing the <c:url> and <c:param> tags!
    <c:url value="edit.jsp">
      <c:param name="uName" value="${myName}"/>
    </c:url>Why the nested loops? When does row=='uname'? Could that ever occur?
    If you are after a specific column why not have one loop over ${name.rows} and get ${row.uname}?
    What server are you using?
    What version of JSTL?
    What is the taglib import you have made?

  • Can we use logical Operator in C:When  tag of JSTL

    Hi,
    I am developing an application in JSTL.
    I am using c:when tag. I have question whether can we use Logical OR operator in JSTL.
    I have tried using the following Syntax: The two bean fields have the value DISABLED
    <c:set var="testval" value = "${bean.val}" />
    <c:set var="testvalue" value ="${bean.value}" />
    Ex: <c:when test="${testval eq 'DISABLED'} or ${testvalue eq 'DISABLED'}">
    Ex: <c:when test="${(testval eq 'DISABLED') or (testvalue eq 'DISABLED')}">
    Ex: <c:when test="${testval eq 'DISABLED' or testvalue eq 'DISABLED'}">
    retrieving both these values from bean.
    The following syntaxes did not work.
    Please give me some pointers to resolve the issue.
    Thanks,
    Ravi
    Edited by: user10977303 on Nov 17, 2010 9:05 AM
    Edited by: user10977303 on Nov 17, 2010 9:10 AM

    The entire expression including the 'or' has to be inside the ${}.
    What this has to do with error handling beats me.

Maybe you are looking for

  • Minor display bug in JDev 11g "View Annotation" with Subversion

    Hi all, A very minor visual display issue with the "View Annotations" feature of JDev 11g when using a Subversion repository. To reproduce, simply follow these steps: 1). Open up any source file and right-click in the editor; select Versioning -> Vie

  • Adding custom fields to FPE1/2/3 transactions

    Hi guys, My first thread here on SDN! I need to add custom fields (Document Locator Number - ZDLN, and Post Mark Date - ZPMD) from table DFKKOP to transactions FPE1/2/3 under ADDITIONAL DATA area while manually entering NEW BUSINESS PARTNER ITEM. The

  • Nokia C7 - Changing Contact types???

    When you add a new contact it automatically shows it as a mobile number.  Is there a way to change this to call it "Home" as some of my contacts have a home number and mobile number but at the moment my C7 will only call them both mobiles and there s

  • Using the 6500c with HP iPAQ

    I need to use the modem from the 6500c to connect to the Internet with the iPAQ. The correct parameters are entered on the telephone which work with a telephone from Ericsson.

  • Admin console userid and password

    Hello, I have just installed the WebLogic 8.1 platfrom with a developer license on Windows XP. What is the userid and password to access the admin console for the examples application Solomon