mukesh chandan

Greenhorn
+ Follow
since Jun 24, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by mukesh chandan

Hi friends..
i am very new to jsf and looking for some help from you ..
this is a very basic question for you
please help

Application application =
FacesContext.getCurrentInstance().getApplication()

what does statement says
thanks all....
14 years ago
JSF
hi all
i am very new to jsf
and looking for some good study online materials for jsf..
i need help from you all..
if you know some good online sites for jsf please help..

thanks all...
14 years ago
JSF
thanks bhavesh...
i got it alright...




14 years ago

arthik babu wrote:
Hi,
How can I get the servlet name from the Http Request / Servlet conext?

Arthik



hi arthik...
hope you know about DD(deployment descriptor)..
here a servlet class is mapped to the url pattern through a servlet name...
and i think there is no method in HttpRequest interface that will give you servlet name...
you also better check this
http://java.sun.com/javaee/5/docs/api/javax/servlet/http/HttpServletRequest.html";
and if you check ServletContext interface you will find

java.util.Enumeration getServletNames()
Deprecated. As of Java Servlet API 2.1, with no replacement.
This method was originally defined to return an Enumeration of all the servlet names known to this context. In this version, this method always returns an empty Enumeration and remains only to preserve binary compatibility. This method will be permanently removed in a future version of the Java Servlet API.

java.util.Enumeration getServlets()
Deprecated. As of Java Servlet API 2.0, with no replacement.
This method was originally defined to return an Enumeration of all the servlets known to this servlet context. In this version, this method always returns an empty enumeration and remains only to preserve binary compatibility. This method will be permanently removed in a future version of the Java Servlet API.

or you find out
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletContext.html




14 years ago
thanks rahul...

and welcome to javaranch
14 years ago
hi all..
why we have two abstract classes called GenericServlet class and HttpServlet class...
can we work only with GenericServlet class?

thanks to all..
14 years ago
hi all...

why there is a need to synchronise servlet context methods like getAttributes() method..

thanks all...
14 years ago
thanks
seetharaman..

i want to know why we synchronise context like getattributes() method..
14 years ago
Hi all..
i am new to servlet and jsp..
i want to know that why we synchronise service method while dealing with context attributes..

thanks all..
14 years ago