• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

adding multiple rows in data table using struts 2

 
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am using auto completer for selecting some data and I am passing the that information to get some more data to populate within a data table component in a jsp file.
when I am doing this second time.my previous data got replaced by newly searched data.I need each and every search result in my data table.

<s:form action="getMyData" name="allDetails" id="allDetails">

<div class="panel-heading panel-box panel-heading-user">
<h5 class="information-gallery-text">Search My Data
Results</h5>

<!-- Main row -->
</div>
<div class="col-md-12">
<thead> </thead> <tbody> </tbody>
Student Id Student Description Action
<s:property value="bean.StudentId"/> <s:property value="bean.StudentDescription"/> Modify


</div>
</s:form>


here " bean " means the bean name in my action class where my search data stores.
Please provide us inputs.


Thanks,
naga Prathap.


 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

prathap venkata naga yelugula wrote:I need each and every search result in my data table.



Then you need to create some data structure to hold your search results between requests and append the new results to it.
 
Blueberry pie is best when it is firm and you can hold in your hand. Smell it. And smell this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic