Hi to all, I have I problem: I construct for the first time HttpBindingListiner; valueBound, for input data from database into session on
witch will occure in someJsp.jsp. But to get file from database I need an information about that particular user witch for who session is; like user_id - to make some query. So I need somehow to forward that information in valeBound, because that information must be ready before session is created. In jsp:
I had try with setRequest, but I cant getRequest from valueBound, because it must be called from doPost, and when I put doPost, then Listeners wont work inside it.
if I've got your question right: you want to authenticate the user & have the login info before anything else. authenticate the user making the request by any of the four authentication methods: Basic authentication. Client Certificate authentication. Digest authentication. Form authentication.
Once the user authenticated you can obtain the login of the user from the request object: java.lang.String httpServletRequest.getRemoteUser(). There is more to Java security, authentication / authorization; have barely scratched the surface n you've set me on the trail. have experimented with Basic and Form authentication. am requesting the ranch rangers to suggest resources n hard books to start off with.