The way I do it is to have page1.jsp make a call to a backing bean method that fills global variables with data. Note that my backing beans that do this are defined in the session scope. Another way to do it would be to pass the necessary information via the <f:param> tag. You can imbed that tag within a commandLink, for instance, and when the user clicks the button the appropriate action method will be executed, and in that action method you can retrieve the value passed on <f:param>.
HTH, Aaron Bartell -----Original Message----- From: Bjørn T Johansen [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 23, 2005 3:27 AM To: [email protected] Subject: Populating a web page? In Struts I can use the action method to call some method to get the data and populate the form, but what is the best way of doing this in myfaces (JSF)? I.e I am on one page and going to another, but before rendering the other page I need to get some data from a database... Regards, BTJ -- ---------------------------------------------------------------------------- ------------------- Bjørn T Johansen [EMAIL PROTECTED] ---------------------------------------------------------------------------- ------------------- Someone wrote: "I understand that if you play a Windows CD backwards you hear strange Satanic messages" To which someone replied: "It's even worse than that; play it forwards and it installs Windows" ---------------------------------------------------------------------------- -------------------

