Logically there is only difference between form bean and Action Form that is form bean that we define extends the Action form. Form beans contains the setter and getter of the bean elements. We...
Type: Posts; User: deeptiagrawal; Keyword(s):
Logically there is only difference between form bean and Action Form that is form bean that we define extends the Action form. Form beans contains the setter and getter of the bean elements. We...
Define a class with all the data members declared as private so that they are not publically accessible to any other class and all the methods that works upon or uses these data members as public. In...
Method overloading help you to perform same/similar task but with different parameter list. Suppose you are writing a program to calculate the area of figures.
With the help of function overloading...
Is javac a command to complie the java source file into byte code OR it is the name of the compiler available with JDK ?
No you need a struts-config file also which specifies the action class & action form name. The struts config determines the path of a Jsp page once a jsp page is being submitted & u need to the...
hello,
Daisy deepa is correct it will give an compilation error stating : "reference to A is ambiguous, both method A(A) in A and method A(java.lang.String) in A match
A a=new A(null);"
We define the name & path of the Action Servlet in the Web.xml.Web.xml is the deployment descriptor of the application. Thus,whenever any request has been made by submitting the JSP page control goes...
You first check your JSP that whether you have given the action path in your JSP or not eg. login.do in your JSP.Then check in your struts config also same path with same case of the alphabets &...
WEB-INF folder contains Wex.xml,Strut-config.xml,all the TLDs etc,.class files, libraries etc.
Java Standard Edition(J2SE) comprise of the core java such as swing,AWt etc which is used to develop desktop-based applications.
Java Enterprise Edition(J2EE) comprise of the adavced things like...
You create the object of the form bean class in your Action class2. Use the object to access the form bean values in Action2.
No we cannot the change of the WEb.xml because there are certain which is defined as standards as we cannot change the name of folder webapps in the Tomcat server same way we cannot change the name...
You always deploy the the WAR file in the Tomcat. When you start the Tomcat, the WAR File unwars itself(i.e. it create folder into the webapps folder with the name of the WAR File). So in this way...
Hi,
You will display the data in a jsp so you can use <table><tr><td></td></tr></table> tag to display ur data in a tabular form in a jsp.
When we submit any request it goes Action servlet if ur action servlet comprise of different taskaction thn u can return different values for Action forward object. Accordingly you can change the...
Yes u can have 2 or more number of struts config but there would be only 1 web.xml.
Struts framework is based on MVC architecture. When we put some values in the jsp file (whatever the view component is) & submit that page it contains the action path which is mapped to a action...
Hi
The difference between the two is that the first one creates the reference of string class & second creates the object of the string class that acquires some memory & will have the value "Hai"