• 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

how values are mapped?

 
Ranch Hand
Posts: 401
Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
how view values are automatically mapped to ActionForm bean?
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
tu necesitas instanciar la clase del ActionForm en el Action

FrmActionForm frmActionForm =(FrmActionForm) form;

String var=frmActionForm.get...()

(FrmActionForm es tu FormAction con gettes y setters)
 
Rauhl Roy
Ranch Hand
Posts: 401
Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
this is not what i was asking about...

i want to know about how the formbean variable are mapped with jsp variables.

who does this work[i know this is done by struts fream work but i want to know how exactly this happens internally]

thanks in advance

regards,
rahul
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Struts uses Apache Commons BeanUtils to perform this function. When a form is submitted, the Struts RequestProcessor examines each of the parameters sent with the request, looks for an appropriate setter method on the ActionForm bean and calls it, passing the appropriate data. For example, if a parameter named "userName" is sent with the request, Struts will look for a method named "setUserName" on the ActionForm and call that method passing the parameter value.
[ July 26, 2008: Message edited by: Merrill Higginson ]
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jesus,

Just a friendly reminder that this forum is conducted using the English language. If you wish to ask or respond to a question in another language, that's fine, but we ask that you also provide an English translation so that all can understand the exchange.

Gracias!
[ July 26, 2008: Message edited by: Merrill Higginson ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic