I think your code should function if you replace this line :
response.setHeader("Refresh","10;url="/SiteAvailabilityServlet?ursel="+selectedUrl);
With this :
response.setHeader("Refresh","10;url=/SiteAvailabilityServlet?urlsel="+ selopt);
What changed is this :
- An
"
was taken away from the URL in the header, I don't see why it should be there ; - It's
urlsel
notursel
; - Why
selectedUrl
? It's the name of the session attribute, what you want is the value of the session attribute. Since your have that (selopt
), you might just want to use it.
Your HTML may want to be better taken care of, as far as this line is concerned, an "
is missing :
<form method="get" action="/SiteAvaialabilityServlet>
So replace it with this :
<form method="get" action="/SiteAvaialabilityServlet">
Hope all those typos are not in your original code.
P.S : Please do correct the code in your question to help everybody help you :).
Best of luck.