aspose file tools*
The moose likes Struts and the fly likes <display tag> sending multiple parameters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "<display tag> sending multiple parameters" Watch "<display tag> sending multiple parameters" New topic
Author

<display tag> sending multiple parameters

shiva ram kumar
Greenhorn

Joined: Dec 16, 2009
Posts: 12
Hi..

i want to send multiple parameter using <display >
here is the code

<display:table id="myList" name="sessionScope.myList" requestURI="/jsp/searchcompany.do?method=searchCompany" pagesize="5" class="dataTable">
<display:column property="companyName" title="Company Name" sortable="true"/>
<display:column property="companyCode" title="Company Code" sortable="true"/>
<display:column property="editImage" title="Edit" paramProperty="companyId" url="/jsp/searchcompany.do?method=searchCompany&companyId" autolink="true" paramId="companyId" headerClass="sortable"/>
<display:column property="addImage" title="Add Branch" url="/jsp/addbranch.do?method=populate" paramId="companyId,companyName" paramProperty="companyName" autolink="true" headerClass="sortable"/>
</display:table>

here im getting only half page. not the complete page.
when im changing paramProperty="companyName" whole page is getting rendered.
but when i add paramProperty="companyId,companyName" getting only half page

i tried this one also in url="/jsp/addbranch.do?method=populate&companyId=${myList.companyId}&companyName="${companyName}"
here it is working but the things is im getting the frist row vaues of the table.



thanks in advance.

shiva
Sunil Sunny
Ranch Hand

Joined: Oct 18, 2011
Posts: 41
I have the same problem have you found any solution to it Shiva???
 
Don't get me started about those stupid light bulbs.
 
subject: <display tag> sending multiple parameters