• 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

How to merge 2 columns in display tag

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

I am using Struts 2 and display tag. I need to display something like this in one column:

From: <startDate> To: <endDAte>.

startDAte and endDate are coming from a DTO. How to achieve this in display tag. I also need to use different id's for startdate and end date column in display tag. Is that possible.

Here is the code i had written earlier using struts and html:

<td >From: <span id="startTimeSpan<s:property value="id"/>"><s:property value="startDate"/></span> - To:
<span id="endTimeSpan<s:property value="id"/>"> <s:property value="endDate"/></span></td>

Here for both spans, i am appending the id value so that id generated is unique.

Thanks in advance.
 
aman thind
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If anybody is looking for similar thing, i used span and EL to achieve the soln.
 
That which doesn't kill us makes us stronger. I think a piece of pie wouldn't kill me. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic