Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Liutauras Vilda
Jeanne Boyarsky
paul wheaton
Sheriffs:
Ron McLeod
Devaka Cooray
Henry Wong
Saloon Keepers:
Tim Holloway
Stephan van Hulst
Carey Brown
Tim Moores
Mikalai Zaikin
Bartenders:
Frits Walraven
Forum:
Struts
Struts 2 visitor validation not able to get any error message
jainitya jaiyswal
Greenhorn
Posts: 10
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi
I am using the struts2 visitor validation for validation of itratable list.
MyJsp page have
<s:form method="post" name="showShopLogForm" enctype="multipart/form-data" action="showShopLog" theme="simple" validate="true"> <s:actionerror/> <s:fielderror></s:fielderror> <s:iterator value="shopLog.selllogs" status="SellLogs"> <s:textfield name="%{'shopLog.selllogs['+#SellLogs.index+'].closingBalance'}" />
my action-validation.xml=>SelectTrnsferFromShopAction-validation.xml
<field name="shopLog.shopaccountslogs"> <field-validator type="visitor"> <message>Address: </message> </field-validator> </field>
and my bean-validation.xml file=>Selllog-validation.xml have
<field name="comment"> <field-validator type="requiredstring"> <param name="trim">true</param> <message key="errors.required" /> </field-validator> </field>
can anybody help me to point out where I am doing wrong configuration.
Thanks
jainitya
candid java
Greenhorn
Posts: 14
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
here i was found the exact answer by this link
http://candidjava.com/struts-1x-i18n-internationalization-tutorial-with-example-programusing-link
I claim this furniture in the name of The Ottoman Empire! You can keep this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Conditional validation in Struts2
Struts2:Conditional visitor validator not conditional
struts2 action-method-validation.xml not working?
Visitor Validator with a variable context
Understanding public void prepare() +tiles
More...