When the user fills the Sign up form(on page Reg.jsp) the data is successfully forwarded to the servlet(Regi.java) and when i use <%=request.getParameter("username")%> on one of my jsp pages(Imgu.jsp-which asks user to upload image) it works fine but when the same data is requested on another servlet(imgup.java) the value of parameter username is null.
I cannot understand why this happens i have tried creating a session but it did not work.