This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts.xml [struts2] invocking a method inside action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts.xml [struts2] invocking a method inside action" Watch "Struts.xml [struts2] invocking a method inside action" New topic
Author

Struts.xml [struts2] invocking a method inside action

biny panackal
Ranch Hand

Joined: Apr 12, 2007
Posts: 72
I had listed the part of struts.xml file using which i am executing the giveAnswer method in my action class.




I got the setter and getter method in the Action class GetAnswerConversations. But when i am accessing the value i am getting null . Why it happends

Biny Balan
binypanackal@gmail.com
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9280
    
  17

Biny can you elaborate a bit more what you are trying to say!! Are you trying to say that the properties in the GetAnswerConversations action are not getting set with the request parameters??


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts.xml [struts2] invocking a method inside action
 
Similar Threads
Struts 2 autocompleter not populating from database
Action code reuse
Struts2 and Spring integration
Invoking a simple action generates error
execute method of ActionSupport Class