Forums de discussion

Redirect URL

thumbnail
hamza jemai, modifié il y a 10 années.

Redirect URL

Junior Member Publications: 40 Date d'inscription: 04/12/12 Publications récentes
Hi gays,
i'am using liferay 6.1.1 and i want to get an ID from portlet URL, I redirect my user page to anather portlet when clicking a button with jsf, and this my rederect function

public void redirect(Integer id) {
try {
FacesContext.getCurrentInstance().getExternalContext().redirect("http://localhost:8080/web/guest/test"+id);
} catch (IOException e) {
e.printStackTrace();
}
}


my URL will be like this : http://localhost:8080/web/guest/test123" and it point to anather page not that i want (http://localhost:8080/web/guest/test) can i resolve this with anather methode.

Thanks