Question: Assuming the class LoginForm contains a String property named "password", how does the LoginAction class access the attribute called "password" in the above request? Explain why.Choice 1 String password = request.getParameter("password"); Choice 2 String password = request.getAttribute("password"); Choice 3 request.getParameterNames().getParameter("password"); Choice 4 String password = ((LoginForm)
Why is the action class is singleton in nature? Isn't this creates a bottleneck for the requests?
Latest Answer: both are same ...
Latest Answer: Yes.We can make Action class, DAO class without form class. In this case, we can get the form elements by using HttpServletRequest.getParameter("elementName");Mahes ...
Latest Answer: both are same ...
Ans: No , when we go one page to other page then we using both , but no togetherotherwise browser incompatible problem arise.
Latest Answer: Use ForwardAction class to carryout this task ...
Is there any way to define a default method for every in the action mapping of Struts-Config.XML file? If yes then how? Give a piece of code demonstrating the same.
Latest Answer: in action mapping we specify action class for particular url ie path and diffrent target view ie forwards on to which request response will be forwarded. We also specify to which page control should go if there is validation error for ex input property ...
Latest Answer: Object is the super class for Action and ActionForm as there are no immediate super classes . ...
Latest Answer: Hi to allAs Madhav specified (Struts follows MVC architecture and has many design patterns which it uses inside(ex Frontcontroller,Value Objects). )what are the other design patterns which it uses inside and can it be brief ...
View page << Previous 3 4 5 6 [7] 8 9 10 11 Next >>

Go Top