Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how can we execute servelt?

what the use ".war" or ".jar" file creation

Answer Posted / ramesh

Whenever client send the request for the first time server will create servlet object and after that it was using that object until we undeploy or shutdown the server
Generally we deliver the project to the client in the form of jar files . Suppose the project is a webbased project we deliver that project in the form of war files . Suppose that project is a normal core java project we deliver that project in the form of jar files. But to create jar or war files we use 'jar' command only , but the extension will be changed

ex:jar -cvf myproject.jar
jar -cvf myproject.war

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between generic servlet and http servlet?

1039


How can we create deadlock situation in servlet?

1491


If some new data has entered the database, explain how can a servlet refresh automatically?

1354


Why is a constructor needed in a servlet even if we use the init method?

1213


Which HTTP method is non-idempotent?

1184


What is httpservlet class?

1229


How do cookies work in servlets?

1106


What is the life-cycle of servlets?

1182


List out the difference between ServletConfig and ServletContext?

1103


List some life cycle methods of a servlet.

1110


request parameter how to find whether a parameter exists in the request object?

1062


How can the referrer and the target urls be used in servlet?

1061


I have a requirement Here we have a ResultSet object that will contain 50 records i need to print those recors in to a webpage(i.e; view according to MVC architectures that mybe servlet or jsp) . Here i need to print the records 10 per page that is 1 to 10 in page one and 11 to 20 in page two like remaining will be appeared in other pages we need to display those page numbers whenever we click on that page number we will go to that page and display 10 records like we will display 5 pages it is like this << 1 2 3 4 5 next >>

3016


What is meant by cookies?

1136


What are the phases of servlet life cycle?

1167