• 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
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

How to pass form bean to a MultiActionController

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Can we pass command form bean to a MultiActionController?
This topic has been already discussed.

https://coderanch.com/t/420748/oa/MultiActionController-Command-Object-type-com

I am using a MultiActionController class. From the JSP i want to pass the field values to the MultiActionController. Using SimpleFormatController we can easily send it by adding commandName and commandClass in the *-servlet.xml file. Is it possible with MultiActionController.

i am using ServletRequestUtils to get the form values. Is it a correct approach? Is it a violation of Spring framework? please advice.

String firstName = ServletRequestUtils.getStringParameter(request , "firstName");
String lastName = ServletRequestUtils.getStringParameter(request , "lastName");


Thanks
Selva
 
If you look closely at this tiny ad, you will see five bicycles and a naked woman:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic