Servlets Questions

1)What is web.xml?
2)what is the filter?
3)How to we create a new JSTL class?
4)When we are developing the project which collections mostly used?
5)Difference between reqeust.getAttribute,and request.getParameter?

Showing Answers 1 - 6 of 6 Answers

fcasttro

  • Nov 21st, 2007
 

1)What is web.xml?
web.xml is nothing but a deployment descriptor. It describes a web applicants deployment settings.
2)what is the filter?
It is an Pluggable web componenet device it allow us to implement or add  pre processing or post processing logic in our application.
3)How to we create a new JSTL class?
4)When we are developing the project which collections mostly used?
5)Difference between reqeust.getAttribute,and request.getParameter?
getAttribute => Returns an Object, We can set an attribute
getParameter => Returns a String, But no setters in parameter

  Was this answer useful?  Yes

rizwan.amd

  • Sep 1st, 2010
 

1) What is web.xml?
As this is a deployment descriptor, this is mandatory for an web application
to deploy in web/application server. It contains servlets name, url pattern,
load on startup, if your application is using any 3rd party tools and if it
needs any servlet of that to be initiated etc will be there.


4) When we are developing the project which collections mostly used?
List & Maps interfaces are used most with classes like ArrayList, TreeMap,
LinkedHashMap and sometimes Collection.reverseOrder etc


5) Difference between reqeust.getAttribute,and request.getParameter?
Any form (page) data can be accesseed by getParameter() and which ever is
set in jsp or servlet as setAttribute can be accessed with getAttribute()

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions