Q reg servlet and html link tag!
Hi to every one!
Plz help me! Any kind of suggestion, will be gr8!
Now comming to my problem...,
In one servlet am using an html link ,
<a href="./xyz">Hi</a>
Where xyz is another servlet.
What i want is when i click the link "Hi" it should call another servlet which the abv code does.But in this another servlet(i.e.,, xyz servlet) i want to use the name of the link i.e.,, i want to use "Hi" . So plz can anyone suggest me hw shud i go abt?
Plzz help me,, thnkz in adv.
[559 byte] By [
me_n_javaa] at [2007-11-26 17:48:35]

# 1
There is no way of a servlet or any web server side program to know the text of the link onwhich you clicked to get there on its own.
You will have to send that information to the calee servlet as a part of the link
Ex:-
<a href="./xyz?name=Hi">Hi</a>
LRMKa at 2007-7-9 5:00:58 >

# 2
Thnkz a lot for the suggestion!!
It partly solved my problem,, as .,
Now in my program i cant give<a href="./xyz?name=Hi">Hi</a>
As the text "Hi" i gv here was jus to give an example, but in my program this link text (which is "Hi") is a runtime value ,which i get it frm rs.getString(1).
So can u plz suggest me hw do i get this string on to other callee servlet.
Thnkz for the help! Thnkz in adv