Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7444705
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T11:34:18+00:00 2026-05-29T11:34:18+00:00

My class is as follows public class CriteriaConfigImpl implements CriteriaConfig { private long elementId;

  • 0

My class is as follows

public class CriteriaConfigImpl implements CriteriaConfig {

    private long elementId;
    private String displayName;
    private String dataType;
    private String internalMap;
    private int displayOrder;
    private List<OperandType> operands;

    //..Setter Getter..//
}

And my main class is

public class Query {
    private Long id;

    @NotNull
    @Size(min = 0, max = 1500)
    private String queryString;

    private String searchFilterCondition;

    private List<CriteriaConfig> configuredCriteriaList;

    //.. Other operations ..//

}

On my JSP page I want to display the operands as a list, currently I have done as

<form:select path="searchFilterCondition" multiple="false">
                        <form:options items="${query.configuredCriteriaList}" itemLabel="operands" value="operands"/>
                    </form:select>

If my CriteriaConfig’s are defined as

1. CriteriaConfig {1, "Test1", "String", "Test1", 1, "AND, OR, NOT" }
2. CriteriaConfig {2, "Trial", "Date", "Trial", 2, "LESSTHAN, GREATERTHAN" }

Now I want to check what displayName was selected and display the respective drop down, how do I go about this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T11:34:19+00:00Added an answer on May 29, 2026 at 11:34 am

    After much thought I have a solution, but it will cause performance problems on the long run, in a case when I have more number of CriteriaConfig objects, but nevertheless, this is what I have now, unless someone comes up with a better soln.

    <c:forEach items="${query.configuredCriteriaList}" var="queryOperations" varStatus="loopStatus">
                            <c:out value="${loopStatus.count}"/>
                            <c:out value="${queryOperations.displayName}"/>
                            <!-- If we want to display the operands specific for a display type, then we need the condition else, we can ignore it -->
                            <c:if test="${queryOperations.displayName=='Test1'}">
                                <form:select path="searchFilterCondition" multiple="false">
                                    <form:options items="${queryOperations.operands}"  value="${queryOperations.operands}" itemLabel="operandType"/>
                                </form:select>
                            </c:if>
                        </c:forEach>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Main model classes are as follows : public class UserAddressesForm { @NotEmpty private String
I have a class as follows Public Class Foo Private _Name As String <ShowInDisplay()>
I've a Map in a bean as follows: public class TaskListData { private Map<String,
I have a class as follows: public class Polygon extends Shape{ private int noSides;
I have a class as follows public partial class Configuration : INotifyPropertyChanged { private
I have two classes as follows: public class Info { [XmlAttribute] public string language;
My sample code is as follows: public class ExceptionsDemo { public static void main(String[]
I have a simple class XmlFileHelper as follows: public class XmlFileHelper { #region Private
I have a POCO class as follows public class Category { public int ID
I am having a class as follows public class UserRoleModel { public string Role

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.