• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic