I found this question Redirect to external URL in JSF I want to accomplish similar thing, But I also want to add http header while redirecting, to be more specific I am getting a request to my JSF application where user enter some information. based on that information I pull out some details from my DB.
Now I need to redirect to another external url(different application) and add some information in Http header which that application can read like key value pairs.
example "userName" "anyuser".
what is the simple way to do that in JSF 2?