This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes Display:table tag in Struts application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Display:table tag in Struts application" Watch "Display:table tag in Struts application" New topic
Author

Display:table tag in Struts application

deep kulkarni
Greenhorn

Joined: Dec 05, 2007
Posts: 18
Hi,
I am designing Struts application and in JSP i have used <html:form>tag and for form data i used <display:table > tag. Now data is showing properly but when i am editing form data and submitting to action that time i am unable to get submitted form data instead i m getting old form which was set in session . Following is code for ref.

<html:form name="fmCustomerMaster" type="com.algo.struts.form.CustomerForm" action="/CustomerAction.do" method="post">
<display:table id="customerList" name="sessionScope.CustomerForm.customerList" pagesize="10" >
<display:column title="<input type='checkbox' name='selectall' onclick=\"selectAll(0,'chkEdit',UpdateRow, this.checked, 7)\" />">
<input type="checkbox" name="chkEdit"
value='<bean:write name="customerList" property="customerCode"/>'>
</display:column>
<display:column title="Customer Code" sortable="true">
<html:text name="customerList" property="customerCode"></html:text>
</display:column>
</display:table>
</html:form>
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Please, CarefullyChooseOneForum.


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Display:table tag in Struts application