Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF y servlet  RSS feed

 
Jose Maria Lanza Toraya
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hola, estoy haciendo un proyecto con JSF y para escanear he usado un servlet ya que tenia un applet. Mi pregunta es:

� Como puedo pasar el nombre del fichero, que esta en string desde el servlet al bean?? El problema es que no tengo facesContext.

Un saludo cordial
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Welcome to JavaRanch!

As this is an English-only site, I'm going to post a translation. Babelfish says:


Hello, I am making a project with JSF and to scan I have used servlet since tapeworm an applet. My question is: As I can pass the name of the file, that this in string from servlet to bean? The problem is that I do not have facesContext. A warm greeting


Maybe this makes sense to somebody who knows JSF.
 
Marilyn de Queiroz
Sheriff
Posts: 9080
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think "tapeworm" should be "I had" (an accent mark makes a difference)
 
Richard Green
Ranch Hand
Posts: 536
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i dont get it
 
Tim Holloway
Bartender
Posts: 18709
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answer: JSF beans are just regular J2EE objects, so a servlet would construct or modify them in the normal way.

In other words, if you create a session object in a servlet, all JSF needs to use it is to have the object defined in the jsf-faces-config.xml file using the same object name as the servlet stored it under, with scope defined as session.

No magic.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!