I am using the displaytags and am liking the result so far.  However, I
am struggling with linking to a details page.

Here is where I am:

I have read a database and received a resultset.  Moved it into an
array.  Pass it to a page via a bean in the request to a JSP page.  The
table works fine.  I have the ID field (SSO_NBR) as a link.  I would
like that to go to the next page and display the rest of the data about
that record.  (The details!)

In other words, I have the 3-4 identifying fields on in the list but
then want to display the rest of the data on the next page.

Here is my table logic:

<display:table name="requestScope.mentorSet.rows" id="testit"
requestURI="/mentorSearch.do" class="its" sort="list" pagesize="10">
<display:column title="row number
(testit_rowNum)"><%=pageContext.getAttribute("testit_rowNum")%></display
:column>
<display:column property="LOC_NBR" title="Location ID" group="1"
sortable="true" />
<display:column property="SSO_NBR"  href="mentorDetailAction.do" />
<display:column property="LAST_NAME" title="Last Name" sortable="true"
headerClass="sortable"/>
<display:column property="FIRST_NAME" title="First Name" />
<display:setProperty name="paging.banner.include_first_last"
value="true" />
</display:table>


I am not sure how to do this.  By clicking on a link, does it pass the
data for the entire record somehow in the request and if so, how do I
access it?

In the documentation it said that paramName if left null indicates the
current object in the list otherwise the name of the bean that contains
the data that we want to tack on to the URL.

The bean coming in is mentorSet.  Now what happens next?  I am
successfully getting to the next page but it says nothing to display.

Can you give me some pointers?  The documentation just seems to end
there.  

Do I need to pass on the mentorSet bean in the paramName and then am
able to use it once I get to that page?  
Will it have all data or just the record I am interested in?
Will it have all the data or just the fields I have listed in the table?
Is there a way to "hide" the key value as it is being passed and still
link with it?  


Thanks for any help you can provide!



-------------------------------------------------------
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_id=6595&alloc_id=14396&op=click
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to