GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  J2EE  >  Struts
Go To First  |  Previous Question  |  Next Question 
 Struts  |  Question 92 of 102    Print  
Action Class is Thread safe if i declare method for database connections before the execute method and when you try to access what will happen for application

  
Total Answers and Comments: 1 Last Update: November 27, 2007     Asked by: Sreekanth Konda 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
November 27, 2007 11:50:58   #1  
Charles        

RE: Action Class is Thread safe if i declare method fo...
As long as your connection object is not declared as a class level object, (ie an object declared outside all functions), and as long as the connection object being declared is not static, the program will run fine. (Assuming that the method for creating a connection returns a connection object)
 
Is this answer useful? Yes | No

 Related Questions

Answered by asreeni on 2005-04-08 03:24:40: The core of the Struts framework is a flexible control layer based on standard technologies like Java Servlets, JavaBeans, ResourceBundles, and XML, as well 
Latest Answer : Struts is an opensource frame work designed based on MVC architechture which is used     to develop webapplications.It is famous because of Centralized controller and loosely coupling nature. ...

Latest Answer : This is the class from which business logic of stutsbegins,which contains execute method ..This class contains all deployment information of particualar Action object.This class determines where the result must send once its processing is complete ...

1. Action Servlet2. Action Classes3. Action Form4. Validator Framework5. Message Resources6. Struts Configuration XML Files7. View components like JSP 
Latest Answer : thanks. ...

Is there any way to put my custom name to LIB folder which i am going to place in WEB-INF folder of struts application?
please answer this question 
Read Answers (4) | Asked by : gskumar

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 
Latest Answer : But how can I use the Swing, or any other technology for front end view? ...
Read Answers (10) | Asked by : Amit Mudgal

please post the answer 
Latest Answer : Aditya, Exactly you are correct. ActionServlet uses Command design pattern by calling the action classesprocess() method of RequestProcessor uses template method desigb pattern by calling sequence of methods.Action classes are used to transfer the HTTP ...
Read Answers (24) | Asked by : sudhakar

I have linux OS.I installed Tomcat 4. in Linux.Now, i have to deploy My web application into that using WAR file.Please tell me steps....and also steps for the creating the WAR file too.
Read Answers (4) | Asked by : Rahul Bandgar

Latest Answer : Static methods are BAD BAD thing, should b always prohibited. They bind u to a concrete class. Remeber the first good practice of OOP, always program to interfaces rather than classes. Use a factory with singelton rather than a static method. However ...
Read Answers (4) | Asked by : samidurai.v

Latest Answer : Object is the super class for Action and ActionForm as there are no immediate super classes . ...
Read Answers (8) | Asked by : nagendra

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.
Read Answers (6) | Asked by : Soumen Trivedi


 Sponsored Links

 
Related Articles

Using XMLType for Handling XML Data in the Database

Using XMLType for Handling XML Data in the Database Being an object type XMLType can not only be used to store XML data in the database but also to operate on that data via its built in methods Regardless of the storage model you choose XMLType provides a set of XML specific methods to operate on XM
 

Using Oracle Database for Storing, Modifying, and Retrieving XML Data

Using Oracle Database for Storing Modifying and Retrieving XML Data With Oracle XML DB you have various XML storage and XML processing options allowing you to achieve the required level of performance and scalability One of the most interesting things about Oracle XML DB is that it allows you to per
 

Performing XSLT Transformations inside the Database

Performing XSLT Transformations inside the Database Now that you have the employees XSL stylesheet stored in the database and the xmlusr schema is permitted to access the hr employees table you can create a script that will instruct the database to build an HTML page based on the data stored in hr e
 

Moving All the XML Processing into the Database

Moving All the XML Processing into the Database In the preceding example the database server performs only a part of the XML processing while the rest is still performed by the PHP engine Specifically the database server generates an employees XML document based on the records from the hr employees
 

Performing XML Processing inside the Database

Performing XML Processing inside the Database When building XML enabled applications on top of Oracle there are many advantages to performing the XML processing inside the database when compared to performing it on the client The key advantages to perform XML processing inside the database are as fo
 

N-Tier Architecture: Data Access Layer

N Tier Architecture Data Access Layer In an N Tier architecture the data access layer consists of components that aid one in the process of accessing the database When it is used correctly the data access layer serves as an abstract level for the structures of the database Simple changes that are ma
 

Application Development in .NET

ASP NET 2 0 Tutorials Application development in NET Client Side Application Development Client applications are applications that run on the client system or the desktop of the user They are closest to the traditional windows based applications and they display forms or windows on the desktop enabl
 

N-Tier Application Partitioning

N Tier Application Partitioning Application partitioning is a vital process as it provides one with the opportunity to clearly define an even distribution of an application s presentation process and key data components without which you may find yourself feeling quite lost The components may be dis
 

N-Tier Application Manageability

N Tier Application Manageability While it is a fact that N Tier applications tend to provide almost limitless scalability the desire to change or add new forms of functionality can present a challenge in more than one arena Growth on a large scale can make capacity planning quite hard When available
 

C++ Pure Virtual Function and Base Class

C Pure Virtual Function and Virtual Base Class In this C tutorial you will learn about pure virtual function declaration of pure virtual function and virtual base class virtual base class and how to implement a virtual base class explained with examples mosgoogle center What is Pure Virtual Function
 

Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape