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
Post a Comment