challenge: how to login a user from a custom Tag?
Hey. The question is in the title.
This is the doEndTag() function inside a TagSupport implentation class :
publicint doEndTag(){
String j_username = pageContext.getRequest().getParameter("j_username");
String j_password = pageContext.getRequest().getParameter("j_password");
// HOW TO USE THESE 2 STRINGS FOR LOGING THE USER?
return EVAL_PAGE;
}
I can do basic authenticaton (I'm using tomcat btw), it's fine but I need to do this because the client is a Flash and not an html page. Any help is welcome, thanks!

