Can this method work?
public String sayHello(){
return "Hello.jsp?name=" + "laala";
}
I am unable to access, query string using the above method. I tried ${param.name} as well as request.getParameter(“name”). They both return null. Please help!
Either fire a redirect..
.. or if you’re already on JSF2, then just define them in navigation case:
(although the
.jspfile extension less or more hints that you’re not on JSF2 yet)When using the JSF2 navigation case, if you want the new URL get reflected in the browser address bar, you need to add a
<redirect/>entry, else it will just do a forward.