This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
JSF newbie here! Can anyone help me with this one? I have an app that can get 3 types of request: create, update, read I need to get the params off the request and display the appropriate page. Currently I am doing this in a scriplet in index.jsp. code looks like:
This is no good (probably for a number of reasons) mainly because I can't test it. I had envisaged using a managed bean and UrlParameterListener.
I have that declared in faces-config.xml and configured in url-parameter-configuration.xml. I have a bean with an action method thus:
When I sent a request localhost:8888/Customer?action=update&customerid=1298 I get a blank page, index.jsp which has no content.