rxue / dictionary

Practice in Java EE
1 stars 0 forks source link

Improvement on search jsf #14

Closed rxue closed 2 years ago

rxue commented 2 years ago

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

rxue commented 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

rxue commented 2 years ago

TODO: