I am new to JSF, and sweating to find a to connect servlet files to JSF. I have several servlet files to produce a JSF output. The servlet files do the necessary calculations to make the output. It is not realistic to write it into the bean file. Is there a way that I can use/connect these servlet files to make a JSF output?
Thank you, Gregg, for your reply. I am just out of college with very limited experience in programming with 4 days in JSF, so I have to ask you further help. Could you please explain it more in detail?
The basic idea is that your managed beans collect page data and process events. Any business logic like db lookups/queries, calculations, data processing, etc should occur in "helper classes" or "business classes". This is true whether you are using JSF, some other web framework, or simple Servlets/JSP development.
If you are already doing this stuff in your servlet, turn the servlet into one of these helper classes that you call from your managed beans. If all the servlet is doing it gathering data and redirecting to other pages, just trash the servlets. They won't do any good in JSF.
Joined: Apr 18, 2006
This is the intention what I am trying to do with this topic. Could you please look it up to give me your opinion. I am having problems in passing bean parameter that is initiated in File1.jsp. The parameter goes thru the bean file and I should recover the parameter in File2.jsp. When I post it using <form><input ... ></form>, I do not have any problem to open it inside the code block in File2.jsp. But when I try to the same thing using a JSF tag, it never goes thru. It is null when I tried to get it in File2.jsp.