posted 23 years ago
Reply to the questionin detail.well,friend ,let me explain my problem exactly.i am developing a shopping cart kind of project,in the first screen,i am providing a login screen that only registered users can get into it.so once a registered userlogs into the site or shopping ,the username is carried on to the nextpage.(here is where my session starts.)i have captured the username into a hidden form field here.so,after the login detection screen,it is very well showing me the category list of the items that i have.Here the user is just subjected to click on any category of items to have a detailed list based on the category.so,i have planned to go for a generic servlet firing(on clicking the hyperlinking).But,the hidden field where i am storing the username is showing null,when i am trying to display that in the generic servlet that i am using for a detailed list.
I am just trying to do something like welcome back+username,as long as he stays in my site,maintaining the session.if it is servlet chain of type HTTPServlets only,then it is working absolutely fine,but when u try to insert a generic one in the middle,it is not able to retrieve it.
2.I also have another kind of strange problem.through a servlet,i am hyperlinking to a static html page,and i am able to retrieve the servlet variables using servletcontext.This is also working absolutely fine when i am using servletrunner.This is happening because i am setting my classpath,where i am calling this servletrunner.But when u use javawebserver,how do u set ur classpath?,or how do i make my servlet contexts working?