• 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

ways to pass data from struts class to the jsp page

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

Can anyone tell me the different ways to pass data vlaues from a struts class into a jsp page. I have tried some of htem but not worked. Can anyone tell me any other way to achieve it?

Thanks in Advance!
 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi !
I too am new to struts and i mean very new. Anyway one way i learnt is by using struts tags.

e.g. if i have the following in the action class
projectMap.put("baselineId", "1");
projectMap.put("lockedBy", "user1");
.......
projList.add(projectMap);

Then you can access the same is the jsp using:

<s:iterator value="projList">
<s roperty value="baselineId"/>
<s roperty value="lockedBy"/>
</s:iterator>

i could do it this way. hope this helps ...
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic