Should not be easy in a proper way. 

1) Look at the Tomcat Authentification process.
look how the UserName and Password from the form are passed to the Jaas login 
module.
and then add a parameter and get it in the jaas login module, then up to the 
portlet (see 2).

but you may have to modify Tomcat... which is not recommended.
may be all the parameters from the form are passed to the login module. Then do 
as in 2) to retrieve them.

2) add the parameter to the username (concatenation with a special separator), 
then create your own jaas login module (similar to the one provided), and parse 
the username to retrieve the name and parameter.
use javascript to concatenate the name with the extra parameter.
In the jaas login module : make your own Principal (inherited from java 
Principal), with the added parameters. In the porlet, retrieve the parameter 
from your Principal.

3) in the html form : add some javascript to write a cookie with the parameter. 
Then, in the javascript, send the form httprequest.
in the portlet render method, retrieve the cookie (it should be in the list of 
cookies in the httprequest). use the helper in this post :
http://jboss.org/index.html?module=bb&op=viewtopic&t=104250

just curious : parameter what for ?



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028770#4028770

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028770
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to