Wednesday, July 30, 2014

How to pass parameters through URL in JSF

To pass parameters through URL in a web application, is to append the parameters into the base URL.

eg, www.google.com?parameter1=value1&parameter2=value2&parameter3=value3.

in JSF, it is nice to pass only 1 parameter through the URL.
When more than 1 parameter pass through the URL, an exception will happen.
Whenever "&" symbol appears in the URL, the exception will happen.

to resolve this problem, what we need to do is to encode the "&" symbol or manually append with the encoded value "&"

eg, www.google.com?parameter1=value1&parameter2=value2&parameter3=value3.


Done!!

LinkWithin

Related Posts Plugin for WordPress, Blogger...