Hiren,

You want to do something like this:

<display:table name="yourList" id="listItem">
        <display:column title="Stuff">
                <c:out value="${listItem.name}/><br/>
                <c:out value="${listItem.address}/><br/>
                <c:out value="${listItem.phone}/><br/>
        </display:column>
</display:table>

If you're not using EL, you can just use scriptlets, so this:

<c:out value="${listItem.name}/>

Becomes this:

<%= listItem.getName() %>

That should get you what you're looking for.

Rick Herrick
[EMAIL PROTECTED]


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:displaytag-user-
> [EMAIL PROTECTED] On Behalf Of Hiren Kotadia
> Sent: Monday, April 18, 2005 10:15 AM
> To: [email protected]
> Subject: [displaytag-user] Display Multiple Object Properties in one
> column.
> 
> Hi,
> 
>     I want to display multiple properties of an object in one column.
> For example, I have a list of objects, with each object having following
> properties,
> 
>   1. Name,
>   2. Address
>   3. Phone No.
> 
> When I use DisplayTag to display these objects, it creates a 3 column
> table with displaying each property in a column. But I want to display
> all these properties in "one" column, one after another. So I want a one
> column table.
> 
>  How can I configure DisplayTag to do so? Is this even possible??
> 
>  Please help, Suggestions/comments are appreciated.
> 
>   Thanks,
>   Hiren.
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Hiren
> Kotadia
> Sent: Thursday, April 14, 2005 6:31 PM
> To: [email protected]
> Subject: RE: [displaytag-user] Problems while Using DisplayTag with Java
> Portlets
> 
> Hi Andy,
>      I have got it working.
>      Many thanks,
>      Hiren.
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Andy
> Pruitt
> Sent: Thursday, April 14, 2005 3:23 PM
> To: [email protected]
> Subject: RE: [displaytag-user] Problems while Using DisplayTag with Java
> Portlets
> 
> 
> 
> You will need to provide an implementation of RequestHelperFactory,
> which is responsible for providing RequestHelper objects.
> 
> We use an internally developed JSR 168 portlet server called Pegboard;
> here is the code we use to customize for DisplayTag. It should (roughly)
> work for any 168 portlet server.  (There is also an aspect to help with
> exports, but that is somewhat unrelated.)
> 
> 
> // RequestHelperFactory
>  public RequestHelper getRequestHelperInstance(PageContext pageContext)
> {
>         HttpServletRequest request = (HttpServletRequest)
> pageContext.getRequest();
>         HttpServletResponse response =
> (HttpServletResponse)pageContext.getResponse() ;
>         RenderResponse resp = (RenderResponse)
> pageContext.findAttribute("javax.portlet.response");
>         if ( resp != null ){
>             return new DisplaytagPegboadRequestHelper( resp, request,
> response);
>         } else {
>             return new DefaultRequestHelper( request, response);
>         }
>     }
> 
> 
> // DefaultRequestHelper
> public DisplaytagPegboadRequestHelper(RenderResponse renderResponse,
> HttpServletRequest httpServletRequest, HttpServletResponse
> httpServletResponse) {
>       super(httpServletRequest, httpServletResponse);
>       this.renderResponse = renderResponse;
> }
> 
> public Href getHref() {
>     PortletURL url = renderResponse.createRenderURL();
>     url.setParameters(getParameterMap());
>     Href href = new Href(url.toString());
>     return href;
> }
> 
> 
> 
> 
> 
> 
> 
> 
> >
> > Hi there,
> >
> >  I have been trying to use DisplayTag with Java Portlet. I am
> > using the paging  feature of DisplayTag as I have large
> > collection of data to present. So once  configuring paging
> > attribute like below,
> >
> >  <display:table name="${pageList}" pagesize="3">
> >
> >  The jsp page displays first 3 records and it also display
> > links for Next/Last  for navigation.
> >
> >  Now the problem is that, these Next/Last links are not
> > working. Because the  display tag by default creates a
> > relative link to the JSP but Portlet container  doesn't take
> > the URL as it requires either ActionURL or RenderURL.
> >
> >    How can I configure ActionURL or RenderURL links within
> > data I am displaying  through DisplayTag.
> >
> >  Any suggestions/ comment would be really helpful.
> >  Thanks,
> >  Hiren.
> >
> >
> >
> >
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_ide95&alloc_id396&op=ick
> _______________________________________________
> displaytag-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
> 
> 
> 
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_ide95&alloc_id396&op=ick
> _______________________________________________
> displaytag-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
> 
> 
> 
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_ide95&alloc_id396&op=ick
> _______________________________________________
> displaytag-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/displaytag-user



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to