Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Data Transmission from a JSP Page to the Struts Action class

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi , i am having a query of Data Transmission from a JSP Page to the Struts Action class ??

How the Data from the JSP Page will be automatically set to the Setter Methods of an Action class ??

Thanks.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Via type conversion.

I'm not sure what you're asking.
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[quote I'm not sure what you're asking.




The question i am asking is that , how the username in the <s:textfield name="userName" /> is mapped to userName in HelloWorld Action class ??

 
nobeltr ozgur
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All the form properties is stored on the ValueStack.
Action class contains the form properties and the corresponding getter and setter methods
we set the the values of forms in action
The name attribute of the UI tag is the one which links the property on the ValueStack.
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic