change the value of variable on click at link

Hello,i wrote a servlet, which has different links. The servlets contains avariable called nr.Now, if you click on the link, the variable nr should change its value.Example: the link <a href="...."How can I solve this problem?Best regards>
[294 byte] By [dasfa] at [2007-10-2 13:07:29]
# 1

What ?

I'm guessing you're asking: How do you return a different value based on a link the user clicks on ?

All you need to do is add a different parameter to each link, for example:

<a href="/myapp/myservlet?nr=1">link 1</a>

<a href="/myapp/myservlet?nr=2">link 2</a>

<a href="/myapp/myservlet?nr=3">link 3</a>

.

.

.

<a href="/myapp/myservlet?nr=99">link 99</a>

etc...

munyula at 2007-7-13 10:32:36 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...