no
If the desktop application you mean would be run on a web browser - Then the answer is YES. STRUTS is an open source framework used for the development of web based java applications using other J2EE technologies like JSP, Servlets and XML.
Struts is an open source Web application framework developed as Apache Jakarta project Struts is based on MVC (Model View Controller) framework. It is used to build Web applications based on Servlet and JSP. So Struts application is a genuine Web application. Struts leverages J2EE design patterns that people find quite useful in building J2EE applications. Because Struts follows these patterns including MVC, Struts is relatively simple to use and learn. A Composite View is a view built using other reusable subviews. A single change to a sub-view is automatically reflected in every composite view that uses it. Furthermore, the composite view manages the layout of its sub-views and can provide a template, making consistent look and feel feel easier to achieve and modify across the entire application. Struts has its own set of custom tag libraries. Struts also support utility classes.
No. JSP and Swings are two contrasting Technologies and cannot be used in the same application. And - JDBC can be used with both types of applications that use either JSP or Swings
Struts2 is very powerful web development framework which can be used to build highly scalable, pluggable web application.
JSP stands for Java Server Pages. JSP is an integral part of any j2ee application. It handles the User Interface (UI) layer of any web based application. It has support to execute java code and also can use HTML and java script. The output of a JSP page is usually viewed in a web browser like Internet Explorer or Mozilla Firefox etc.
Servlet is more faster than JSP, but JSP is more convenient than Servlet and JSP is clearly superior, shorter, simple and easier to use. JSP can be perceived as Java in HTML code. JSP require no explicit compilation as like servlets and can keep in the web application server as HTML file. The web application server in turn compile the java code in JSP and load it in its library for future execution. Servlet can be perceived as HTML in Java code. The servlet is the class file, which would be loaded in the web application server as a program. The program output will be directed to the outstream object which in turn direct to the client as HTML elements.
Firstly, this is wrong question. The right one would be WHEN should you use PHP, not JSP? or, WHEN should you use PHP and WHEN JSP?
Struts is an open source Web application framework developed as Apache Jakarta project Struts is based on MVC (Model View Controller) framework. It is used to build Web applications based on Servlet and JSP. So Struts application is a genuine Web application. Struts leverages J2EE design patterns that people find quite useful in building J2EE applications. Because Struts follows these patterns including MVC, Struts is relatively simple to use and learn. A Composite View is a view built using other reusable subviews. A single change to a sub-view is automatically reflected in every composite view that uses it. Furthermore, the composite view manages the layout of its sub-views and can provide a template, making consistent look and feel feel easier to achieve and modify across the entire application. Struts has its own set of custom tag libraries. Struts also support utility classes.
JSP stands for Java Server Pages. It is the face of any web application. I.e., the stuff you see on a web page can be JSP contents. The JSP uses the features of both Java and HTML to display dynamic contents on a web page. It interacts with Servlets in a MVC architecture to provide the power to display dynamic and advanced data on any given web page.
JSP actions are XML tags that direct the server to use existing components or control the behavior of the JSP engine. JSP Actions consist of a typical (XML-based) prefix of "jsp" followed by a colon, followed by the action name followed by one or more attribute parameters. There are six JSP Actions: < jsp : include / > < jsp : forward / > < jsp : plugin / > < jsp : usebean / > < jsp : setProperty / > < jsp : getProperty / >
The correct term is "JSP Implicit Objects" In any JSP Page, there are a bunch of implicit objects that are available for the programmer to use. It contains a variety of information that can be used to display stuff on the page. The following JSP Implicit Objects that are available for a programmer. • request • response • out • session • config • application • page • pageContext
MVC stands for Model View & Controller. In Swings you can use this as follows: Model - Java Beans View - JFrames & JPanels Controller - Event Handlers