aspose file tools
The moose likes Struts and the fly likes Problem with <html:form> Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Problem with <html:form>" Watch "Problem with <html:form>" New topic
Author

Problem with <html:form>

Mnau Lubi
Ranch Hand

Joined: Mar 17, 2010
Posts: 32
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
Karthik Jayachandran
Ranch Hand

Joined: Feb 18, 2009
Posts: 36



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

Joined: Mar 17, 2010
Posts: 32
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Problem with <html:form>
 
Similar Threads
multibox error
Iterator and multibox
How to get unchecked multibox
howto settle multibox problem ?
multibox - nullPointerException