UserName Availability

Hi guys,

I have made registration form in JSP..I want to keep one button next to User Name field to check the username availability...what I want is when user input in User Name field and press this button then another window should get opened and display that username on that page...I am checking that username's availability on that page...but how do I retrieve that username from registration form and send it to that pop up window?... I tried session but didn't work...also tried to send it through link but it appears blank....can you please guide me?....

appreciate your help...

vishu

[618 byte] By [vishu007a] at [2007-10-2 19:59:00]
# 1

have you tried using setAttribute and getAttribute.

request.setAttribute("user",username);

RequestDispatcher dispatcher=request.getRequestDispatcher("nextpagelink");

dispatcher.forward(request,response);

and in new page

String name=(String)request.getAttribute("user");

Hope it works

Innovaa at 2007-7-13 22:38:30 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...