I am new in Struts2 and don't know how to use servlet concept in Action class.however, I am able to call Action class but not able to retrieve values through getParameter.
Please Help me regarding this.Thanks in Advance
Try to small example first with struts2. Where is execute method in ActionClass? Why are you calling doGet method here? How to get the request object in Struts2?
ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
Joined: Feb 29, 2012
Mohana Rao Sv wrote:Try to small example first with struts2. Where is execute method in ActionClass? Why are you calling doGet method here? How to get the request object in Struts2?
Actually i want to retrieve list of cities on the basis of dynamic value of textbox.I am trying to implement through ajax. The execute function id down below in action class. I have replaced doget method with execute method as follows
Now I am getting values from:
The DAO class is as follows where i am fetching cities:
subject: Help regarding getParameter-How to use servlet concept in Struts2 Action