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

  • Home
  • SEARCH
  • 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 8964633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:37:56+00:00 2026-06-15T16:37:56+00:00

I am using strut2-JSP to generate a report.In that report I am trying to

  • 0

I am using strut2-JSP to generate a report.In that report I am trying to skip displaying some rows in the table that has a specific “groupName” but need to include the information of that row while calculating the total in the column or in the row. ![My report roughly looks like the table below][1]

Group Name                             |Net Total
Multi_species category               | $300
Multi_species category               | $400
Multi_species category Subtotal | $700

But I have to display it as below:

Group Name                             |Net Total
Multi_species category Subtotal | $700

For example:I am trying to get rid of the row that has group name “Multi_species category” but like to keep the rows (“Multi_species category subTotal”) that calculating totals. Tried with an “if” condition inside the table that did not work . Please let me know what I am doing wrong. Here is my example code to generate this table :

<display:table id="reportTable"
                   name="tableData"
                   requestURI=""
                   cellspacing="0px"
                   export="true"
                   class="displaytagTable">

        <display:setProperty name="decorator.media.pdf"
                             value="expenditures.decorator.ItextTotalSpeciesDecorator"/>


        <c:if test="${ !( groupName == \"Multi_species category\") }">

            <display:column title="Group Name" property="groupName" group="1"/>

            <display:column title="Net Total" property="total" class="alignRight"
                            decorator="expenditures.decorator.DollarDecorator"
                            total="true"/>

        </c:if>

</display:table>

Please let me know if more information is required.
Thanks in advance

Additionally, I am getting error at the line :

<c:if test="${ !( groupName == \"Multi_species category\") }"> 

– how should I compare string here?

  • 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-06-15T16:37:57+00:00Added an answer on June 15, 2026 at 4:37 pm

    I finally resolved this issue by adding a class to every column in that specific row and removed the parent of the columns. here is the link for the example:

    How to remove a row from a table using JQuery

    Thanks for trying to help me though.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using strut2 in my project in which in jsp pages i have
Using struts2 with jsp with standard struts tag libraries. I'm trying to dynamically hide
We are using Struts 2 Dispatcher Result to forward our request to some jsp
I'm trying to upload a file using struts2. In the jsp page there is
im using struts 1.2 and trying to create a link in jsp page with
I am using Struts 2. I have a JSP. It has this code: <span
Hi all I've got some jsp pages and im using struts2 to handle my
I have been trying to display json data in my jsp using struts and
I am using struts2-jquery Dialog Widget to open a JSP page, which has a
I am trying to implement ajax in jsp(avoid form submit) using struts2. I used

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.