java - How to get requests related to error in JSF page and pass to managedbean -


i need requests related error in jsf page. why because, need request attributes in managedbean related jsf page.

current doing in jsf page is:

<f:event type="prerenderview" listener="#{emailmanagedbean.sendemailforerrorpage(requestscope['javax.servlet.error.request_uri'],requestscope['javax.servlet.error.message'])}" /> 

where emailmanagedbean managedbean associated jsf page. sendemailforerrorpage method in managedbean.

what need need pass javax.servlet.error object sendemailforerrorpage method, can attributes there, instead of passing each attributes parameters.

how can done?

thanks in advance.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -