Hi Thanks, this makes sense - I need to sit down and shake my head to get into the event-driven mode :)
Regards Hermod -----Opprinnelig melding----- Fra: Matthias Wessendorf [mailto:[EMAIL PROTECTED] Sendt: 22. november 2004 14:11 Til: 'MyFaces Development' Emne: RE: Weird question? Ah, now I see :-) Well what you could do is this: index.jsp --> <jsp:forward page="welcome.jsf"/> in weclome.jsp you could refer to a backingBean (welcomBacking,java) public class WelcomeBacking { private String tippOfTheDay; //getter+setter public WelcomeBacking(){ //connecting to DB or else tippOfTheDay = myTempDBaccessObject.getTipp(); } } in welcome.jsp file you could use a tag like <h:outputText value="#welcomeBacking.tippOfTheDay"/> to be able to do this your WelcomeBackingBean-clazz must be described in faces-config.xml in managed-bean-facility. btw. with this you will be also able to read HTTP-params in constructor of a BackingBean on a request like: http://host:port/app/listDetailsOfCustomer.jsf?id=654567865 JSF delivers an ExternalContext for accessing HTTP-Parameters HTH, Matthias > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Monday, November 22, 2004 2:05 PM > To: [EMAIL PROTECTED] > Subject: SV: Weird question? > > > Hi > > Yes. I am looking at JSF for the next generation of a current > Struts based application. When the user gets the first > (index.do) page presented, the Struts Action has looked up > news etc from the database to present on the frontpage. > > Regards > Hermod > > -----Opprinnelig melding----- > Fra: Matthias Wessendorf [mailto:[EMAIL PROTECTED] > Sendt: 22. november 2004 12:58 > Til: 'MyFaces Development' > Emne: RE: Weird question? > > > Could you be more detailed on that? > > I guess you mean the *preActions* ? > > Like http://host:port/myApp/showFormpage.do > that Action does something and *forwards* > to a JSP, that contains a HTML-form > for using formbeans? > > Do you mean this? > > Regards, > Matthias > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > Sent: Monday, November 22, 2004 12:21 PM > > To: [EMAIL PROTECTED] > > Subject: Weird question? > > > > > > Hi > > > > There is one question that I have not been able to fand an > > answer to. Since in JSF there is no notion of a > > FrontEndController, hence no way of calling an initial Action > > like you do in struts which can be used to prepopulate the > > request/session with data - How do you propose to do this in JSF ? > > > > Hermod > > > > > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > > * * * * * * * > > > > This email with attachments is solely for the use of the > > individual or entity to whom it is addressed. Please also be > > aware that the DnB NOR Group cannot accept any payment orders > > or other legally binding correspondence with customers as a > > part of an email. > > > > This email message has been virus checked by the virus > > programs used in the DnB NOR Group. > > > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > > * * * * * * * > > >
