Thanks Courtenay, This code actually works. I guess I never paid attention to displaytag javadocs.
Anyways, what I did was called my object in wrapper and got the properties for the particular row, and then created the links. here is the code if you want to look at it. public String getCountLink(){ StatsTO rowObject = (StatsTO) getCurrentRowObject(); String rptGrp = (String) rowObject.getReportGroup(); String rptPhase = (String) rowObject.getReportPhase(); log.info("reportGroup="+rptGrp+" & reportPhase="+rptPhase); //return "rpt_grp="+rptGrp+"&rpt_ph="+rptPhase; return "<a href=${pageContext.request.contextPath}/searchMade.do?rpt_grp="+rptGrp+"&rpt_ph="+rptPhase+ ">"+rowObject.getCount()+"</a>"; } in JSP <display:column property="countLink" title="Count" class="count"/> The problem now is I was using totals attribute for this column but displaytag throws "java.lang.NoSuchMethodException: Unknown property 'countLink'" when I set total ="true" Any suggestions?? Thanks, Abhi On 10/2/07, Courtenay Teska Race <[EMAIL PROTECTED]> wrote: > Hi, > > Not sure if this is what you were looking for, but here it goes. > > I modified the Wrapper.java file to include the following function: > > public String getRequiredActionTakeActionSCLink(){ > BasicDynaBean rowObject = (BasicDynaBean) getCurrentRowObject(); > Integer sfdid = (Integer) rowObject.get("sfdid"); > int sfdid_int = sfdid.intValue(); > String sfdid_string = Integer.toString(sfdid_int); > String mcid_string = > sfp.nextSCRequiredActionProcessingMenu (sfdid_string); > return " <a href = \"/" + cf.getSubdomain() + > "/displayMenu.jsp?sfdid=" + sfdid_string + "&mcid=" + mcid_string + "\">Take > Action</a> "; > } > > As you can see it produces a link that has multiple parameters in it. > > Then in my jsp page I used the following code to create my table: > > RowSetDynaClass new_required_actions = > ActionViewTables.requiredActionsTableBySC (sdid_string, > raid_string, sid_string, rid_string); > // System.out.println("Get rows method " + > new_ncs.getRows()); > %> > <% request.setAttribute > ("new_required_actions_attribute", new_required_actions); > %> > > <display:table > name="requestScope.new_required_actions_attribute.rows" > id="row" decorator=" teska.displaytag.Wrapper"> > <display:column > property="sfdid" title="ID" sortable="true"/> > <display:column > property="priority" title="Priority" sortable="true"/> > <display:column > property="dateResponseDueFormatted" title="Response Due" > sortable="true"/> > > <display:column > property="requiredActionViewLink" title="View" /> > <display:column > property="requiredActionTakeActionSCLink" title="Take > Action" /> > </display:table> > > as you can see the last column in the table has the property > "requiredActionTakeActionSCLink". This calls the > getRequiredActionTakeActionSCLink() function in the > wrapper. > > I used: BasicDynaBean rowObject = (BasicDynaBean) getCurrentRowObject(); to > get the current row in the column and Integer sfdid = (Integer) > rowObject.get("sfdid"); to pull a specific value out of that cell in the > column to work with it. My second parameter (mcid) I got by calling a > separate class I was using. > > Give this a try and let me know if it works for you. > > Cheers, > Courtenay > > > On 10/2/07, Abhinav Gogna < [EMAIL PROTECTED]> wrote: > > > > Greetings, > > > > First I would like to thank everybody in display tag community who have > > created a wonderful product. > > > > Now to the question :) > > > > I am still a newbee to displaytag and was wondering if there is a way to > > pass multiple parameters in using href links. I searched and came across > > some post, which uses displaytag-2.0.jar but its not compatible with lot > > of other features that displaytag 1.1.1 provides. > > > > Thanks, > > Abhi > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > displaytag-user mailing list > > displaytag-user@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/displaytag-user > > > > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > displaytag-user mailing list > displaytag-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/displaytag-user > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user