• 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
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

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
 
No one can make you feel inferior without your consent - Eleanor Roosevelt. tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic