Hi Pradip,
Yes that way it'd work. I got to know what mistake I was doing in my program. A friend brought it to my notice. In my JSP page, I'd given this servlet's link AND on the onclick event of the link, I was extracting this link's name and submitting the same form (in which this link is put), through JavaScript code.. so we figured what was actually happening was (if we're not mistaken) that two requests were going to the same servlet (via link and via form submitted) and links don't have request parameters it seems, correct me if I'm wrong. So we're still not sure, but we think it could be some sort of concurrent access problem.
I can post the JSP here, if anybody is interested in seeing this scenario (and then explain it to me
)
Thanks to all those who replied!