-
-
-
-
-
-
-
Insert and Retrieve Images
How to insert and retrieve images in STRUTS through MySQL database and how to get path of image (or file) from local system?
-
-
Sub Class of Action Class
class A extends ActionSupport{ }class B extends A{}Is B also acts as an action class or not? Explain
-
-
Can we use any other technology than JSP to construct a view ?
Yes, other than JSP we can use Swing, JSF, Cocoon etc as a front end for our struts application. Here is a link to the article for using struts with swing as front end
-
-
-
-
-
-
-
-
-
type="com.test.LoginForm"/>
path="/login"
type="com.test.user.login.LoginAction"
name="loginForm"
validate="false">
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) form).getPassword();
Choice 5
String password = form.getPassword();
">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) form).getPassword(); Choice 5 String password = form.getPassword();
Struts Interview Questions
Ans