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 1039257
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:04:38+00:00 2026-05-16T15:04:38+00:00

I am aware that this is somewhat a re-post, but I feel like re-posting

  • 0

I am aware that this is somewhat a re-post, but I feel like re-posting my question will make things more clear.

Here is the code for my table in my JSP page:

<display:table name="table" pagesize="25" requestURI="">
<display:column title="Action" >
    <s:form theme="simple">
        <s:hidden key="cpc" />
        <s:submit action="remove" value="Remove" 
        onclick="return confirm('Are you sure you want to delete this item?');"/>
        <s:submit action="displayEdit" value="Edit"/>
    </s:form>
</display:column>
<display:column property="cpc" title="CPC" sortable="true" headerClass="sortable"/>
<display:column property="companyName" title="Company Name" sortable="true" headerClass="sortable"/>
<display:column property="eventType" title="Event Type" sortable="true" headerClass="sortable"/>
<display:column property="industryType" title="Industry Type" sortable="true" headerClass="sortable"/>
<display:column property="previousEvents" sortable="true" headerClass="sortable"/>
<display:column property="creditNotifications" sortable="true" headerClass="sortable"/>
<display:column property="interimNotifyEnterprise" sortable="true" headerClass="sortable"/>
</display:table>

The source for the table is an ArrayList, where TableRow is a wrapper class of all the various fields (and I have getters and setters for all the fields). Now when I check my HTML source code, I see this for the hidden field:

<input type="hidden" name="cpc" value="" id="displayResults_cpc"/>

For some reason, there is no value to be found… It was working fine before I used Displaytag, and I do have a getter and setter in my Action class (right now it returns an empty String).

Edit: This is the HTML code for the first two rows:

<tr class="odd">
<td>

<form id="displayResults" name="displayResults" onsubmit="return true;" action="/CompanyNameTableManager/displayResults.action;jsessionid=566617D98154AB762002B06D9D1087CD" method="post">
        <input type="hidden" name="cpc" value="" id="displayResults_cpc"/>
        <input type="submit" id="displayResults_remove" name="action:remove" value="Remove" onclick="return confirm('Are you sure you want to delete this item?');"/>

        <input type="submit" id="displayResults_displayEdit" name="action:displayEdit" value="Edit"/>

    </form>  
</td>
<td>10.1.1</td>
<td>Comapny A</td>
<td>abc</td>
<td>123</td>
<td>true</td>
<td>true</td>

<td>true</td></tr>
<tr class="even">
<td>

<form id="displayResults" name="displayResults" onsubmit="return true;" action="/CompanyNameTableManager/displayResults.action;jsessionid=566617D98154AB762002B06D9D1087CD" method="post">
        <input type="hidden" name="cpc" value="" id="displayResults_cpc"/>
        <input type="submit" id="displayResults_remove" name="action:remove" value="Remove" onclick="return confirm('Are you sure you want to delete this item?');"/>

        <input type="submit" id="displayResults_displayEdit" name="action:displayEdit" value="Edit"/>

    </form>
</td>
<td>10.1.2</td>
<td>Comapny B</td>
<td>abc</td>
<td>123</td>
<td>true</td>
<td>false</td>
<td>false</td></tr>
  • 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-16T15:04:39+00:00Added an answer on May 16, 2026 at 3:04 pm

    I guess I copped out from using buttons, but if anyone is curious, here is what I ended up using instead:

    <s:form theme="simple" method="post">
    <display:table name="table" pagesize="25" requestURI="" uid="row">
    <display:column title="Select">
        <s:checkbox name="checked[%{#attr.row_rowNum - 1}]" fieldValue="%{#attr.row.cpc}" theme="simple"/>
    </display:column>
    <display:column property="cpc" title="CPC" sortable="true" headerClass="sortable"/>
    <display:column property="companyName" title="Company Name" sortable="true" headerClass="sortable"/>
    <display:column property="eventType" title="Event Type" sortable="true" headerClass="sortable"/>
    <display:column property="industryType" title="Industry Type" sortable="true" headerClass="sortable"/>
    <display:column property="previousEvents" sortable="true" headerClass="sortable"/>
    <display:column property="creditNotifications" sortable="true" headerClass="sortable"/>
    <display:column property="interimNotifyEnterprise" sortable="true" headerClass="sortable"/>
    </display:table>
        <s:submit action="remove" value="Remove" 
        onclick="return confirm('Are you sure you want to delete this item / these items?');"/>
        <s:submit action="displayEdit" value="Edit"/>
        <s:submit value="Add New Row" action="displayAdd"/>
    </s:form>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Somewhat similar to this question , except we haven't decided that we're going with
I have created a basic WCF service in IIS. I am aware that this
Has anyone already tried this, anything particulair that I need to be aware of?
I am aware that you can lock an object in c# using lock but
I am aware that in .NET there are three timer types (see Comparing the
I am currently aware that ASP.NET 2.0 is out and about and that there
I'm fully aware that set division can be accomplished through a series of other
I'm aware that Python 3 fixes a lot of UTF issues, I am not
I'm aware that in Vim I can often repeat a command by simply adding
I recently became aware that the strdup() function I've enjoyed using so much on

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.