This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
  • 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

Struts2 validation using annotation

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I developed struts2 application using the version 2.0.14 .

Now I want use annotaion in 2.0.14 but the required jar file i.e. struts2-convention-plugin-2.1.6.jar is provided in the version 2.1.

Annotation woks fine in 2.1.6 but i want to run in 2.0.14 .

It throws the below error while integrating annotation to struts2.0.14

SEVERE: Exception starting filter struts2
Unable to load bean: typerg.apache.struts2.convention.ActionConfigBuilder classrg.apache.struts2.convention.PackageBasedActionConfigBuilder - bean - jar:file:/D:/learn/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp2/wtpwebapps/quickstart/WEB-INF/lib/struts2-convention-plugin-2.1.6.jar!/struts-plugin.xml:32:137
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:208)

Please let me know to how to achive annotation (mainly multiple results)

Thanks,
Sarada.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can't just randomly mix Struts versions like that--I rather doubt you'll be able to use the Convention plugin with Struts 2.0; you'd need to use the older Zero Configuration stuff:

http://struts.apache.org/2.0.14/docs/zero-configuration.html
 
He does not suffer fools gladly. But this tiny ad does:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic