Closed rxue closed 2 years ago
When trying with the forward
approach, after a submit, the URL is changed back to the original jsf
page URL where the request is forwarded to, this could easily confuse the end user => TODO : remove the forward
approach and let end user send request to the jsf page directly for the time being (In the long term this is not a proper approach, either). Then on the page both the search language and explanation language should be given and sent to the jsf form, just like the Google translator
TODO:
Search.java
: separate the concern on result from the Search object, try to use another managed bean from Search.java
Design endpoint URL: localhost/dictionary/search/*, where the star can language code such as cn, fi, en etc. the underlying servlet forward the request with the language code to the search.xhtml