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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T03:12:54+00:00 2026-05-31T03:12:54+00:00

I am a beginner in Struts and got a doubt. I have got a

  • 0

I am a beginner in Struts and got a doubt. I have got a page which redirects it to a .do file which in turn calls a struts page.

The above page forward calls the below specified page:

                    <display:table name="sessionScope.LocationLoadActionForm.loadList" class="dataTable" style="width:101%;"  id="row"  
                                   pagesize="5" cellspacing="0">


                        <display:column title="<input type='checkbox' name='selectall' id='selectall' value='all'/>">
                            <html:checkbox styleClass="case" name="LocationLoadActionForm" property="id" value="${row.locid}"/>
                        </display:column>

                        <display:column property="locid"  title="Location ID" media="html" />
                        <display:column property="locname" title="Location Name"  group="1" sortable="true"/>
                        <display:column property="loc_city" title="Location City" group="2" sortable="true"  />

                        <display:setProperty name="paging.banner.full">
                            <div class="pagelinks" align="right"> [<a href="{1}">First</a>/ <a href="{2}">Prev</a>] {0} [ <a href="{3}">Next</a>/ <a href="{4}">Last </a>]</div>
                        </display:setProperty>
                        <display:setProperty name="paging.banner.first">
                            <div class="pagelinks" align="right"> [First/Prev] {0} [ <a href="{3}">Next</a>/ <a href="{4}">Last</a>] </div>
                        </display:setProperty>
                        <display:setProperty name="paging.banner.last">
                            <div class="pagelinks" align="right">[ <a href="{1}">First</a>/ <a href="{2}">Prev</a>] {0} [Next/Last] </div>
                        </display:setProperty>
                        <display:setProperty name="paging.banner.onepage">
                            <div class="pagelinks" align="right"> {0} </div>
                        </display:setProperty>

                        <display:setProperty  name="paging.banner.all_items_found" value="" />
                        <display:setProperty  name="paging.banner.some_items_found" value="" />
                        <display:setProperty  name="paging.banner.one_item_found" value="" />



                    </display:table>

Now there is a button which redirects to a delete page and forwards it to Locationload.do . Now when i perform the delete operation, though my record is deleted from the database however the displaytag displays the old value. How to solve the problem.

The details of struts config file are as follows:

    <form-bean name="LocationDetailAddActionForm" type="Location.LocationDetailAddActionForm"/>
    <form-bean name="LocationLoadActionForm" type="Location.LocationLoadActionForm"/>
    <form-bean name="CountryActionForm" type="Country.CountryActionForm"/>
    <form-bean name="LocationActionForm" type="Location.LocationActionForm"/>
    <form-bean name="OrganizationActionForm" type="Organization.OrganizationActionForm"/>

</form-beans>

<global-exceptions>

</global-exceptions>



<action-mappings>

    <action input="/" name="OrganizationActionForm" path="/addOrganizationGeneral" scope="session" type="Organization.OrganizationAction">
        <forward name="success" path="/Administrator/OrganizationDetail.jsp"/>
    </action>

    <action input="/" name="CountryActionForm" path="/addCountry" scope="session" type="Country.CountryAction">
        <forward name="success" path="/Administrator/Country.jsp"/>
        <forward name="validate" path="/Administrator/Country_validate.jsp"/>
    </action>

    <action input="/" name="LocationActionForm" path="/addLocation" scope="session" type="Location.LocationAction">
        <forward name="success" path="/Administrator/AdminLocation/LocationDetail.jsp"/>
    </action>

    <action input="/" name="LocationLoadActionForm" path="/LocationLoad" scope="session" type="Location.LocationLoadAction">
        <forward name="success" path="/Administrator/AdminLocation/LocationDetail.jsp"/>
    </action>

    <action input="/" name="LocationDetailAddActionForm" path="/LocationAdd" scope="session" type="Location.LocationDetailAddAction">
        <forward name="success" path="/Administrator/AdminLocation/Location.jsp"/>
    </action>

    <action input="/" name="LocationLoadActionForm" path="/LocationDelete" scope="session" type="Location.LocationDeleteAction">
         <forward name="success" path="/Administrator/AdminLocation/LocationDelete.jsp"/>
    </action>


</action-mappings>
  • 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-31T03:12:55+00:00Added an answer on May 31, 2026 at 3:12 am

    The display tag displays the list of values that you tell it to show. If the value is dsplayed, it means that it’s still in the list. Maybe you deleted the item from the database, but forgot to remove it from the list stored in the session and displayed by the table:

    sessionScope.LocationLoadActionForm.loadList
    

    The session should be used to store objects that have a session life-time (the user name, a shopping cart, etc.) If you used the request to store the list of data to display in the table, you would waste less memory, and wouldn’t risk displaying stale values as you are doing now. Struts chose to use session-scoped action forms by default snce the beginning, and this was a very bad choice. Make sure to use request-scoped form beans by default.

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

Sidebar

Related Questions

Beginner to assembly programming for x86. I have a simple asm file which I
Absolute beginner question: I have a template file index.html that looks like this: ...
Git beginner question: I have a small private webproject which is versioned locally with
Complete beginner to Rails here: In Rails: I have a Model Post, which hasmany
Am Beginner to java.I have a small doubt while i am developing an application
Beginner level question Scenario: Have simple string cocantation tool, that I might expand later
Beginner help needed :) I am doign an example form a php book which
i am absolute beginner to Struts2. I am tying to follow tutorials on struts
Beginner programmer here....hope it makes sense :) I have created a console app that
Beginner here, I have a simple question. In Android what would be the best

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.