• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with <html:form>

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!

Using this code:



I am getting the error:



I tried with /searchfriend.do as well but I get the same error. AS I understand, the mapping points to the struts-config file where all the mappings are made, but there I have:



Can anyone help me please?

Thank you in advanced
 
Ranch Hand
Posts: 93
Python Redhat Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


In struts-config.xml file, check whether form-bean definition for the Form is provided, like

And in action mapping declaration, specify the name of the 'form-bean' to the action's name attribute, like
 
Mnau Lubi
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks it works .

Just for the records:

If anyone has a problem like this, first read: http://struts.apache.org/1.x/userGuide/building_controller.html

And then, you have an example here (although the struts-config.xml is not showed): http://www.java2s.com/Code/Java/J2EE/StrutsCreatingtheController.htm
 
reply
    Bookmark Topic Watch Topic
  • New Topic