Aneel Ansari

Greenhorn
+ Follow
since May 16, 2005
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 Aneel Ansari

Hi,

Http headers are set by client are used to inform server about software the client is using and how the client would prefer a server send back requested information. From a servlet, HTTP request headers can be accessed by calling several methods. In your case as you just wanna know who is accessing you application, you can implement

request.getHearderNames();
request.getHeader(headerName);

Note: getHearderNames() method returns Enumeration

Hope this will help.
[ January 31, 2008: Message edited by: Aneel Ansari ]
16 years ago
Hi Dhwani mathur

The tip I am gonna give to you is not really related to your question, but still a good tip.
Please remember whenever you try to use UPDATE or INSERT statement the execution of the query should be like this "stmt.executeUpdate(sql);". what i saw in your code was, "stmt.executeQuery(sql);" which is bad practice, because you will never know what happened after the execution of your query.

best of luck

Aneel Ansari
[ January 16, 2008: Message edited by: Aneel Ansari ]
16 years ago
Hi there,

Actually I need to generate XML and then store it into oracle bu using JSP.
Very kind of you people if someone provides me relevent links or guide me in this.

thanks
Aneel Ansari.
17 years ago
JSP
i drink 10 liter water in a day
18 years ago
i think Ben is right

i go with ben, servlets and JSP are going very fine in their ways.
18 years ago
in my opinion we can call servlets (event driven)
18 years ago
as my thinking you have choosen right path to make your look and feel nice and i think that its enough
18 years ago