Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Passing Parameters from one JSF page to another page

843842Jan 10 2006 — edited Jun 4 2006
Hi,

I am new to JSF and I have quick question on passing parameters.

I have a JSF page say product.jspx here, I have productId set dynamically in a hidden field. I want to be able to access the productId in my second page set it to hidden field and pass the value to my Database code and insert values etc.

Currently I am trying to pass the values as follows
context.getCurrentInstance().getExternalContext().redirect("faces/component.jspx?productid=500");

Is this correct appoach?
How do I access the value in my second page.

Will adding request.getParameter("productid") in my second page work?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 2 2006
Added on Jan 10 2006
4 comments
378 views