servlet « Servlet « JSF Q&A





1. How to integrate JSF with custom servlets?    stackoverflow.com

I'm just getting started on JavaServer Faces and it looks very attractive. However I'd like to use my own servlets in the same web application as JSF. This might be really obvious, ...

2. JSF Servlet Arch Help needed    stackoverflow.com

i want a mechanism in my web app as described below: user will enter mydomain.com/CompanyName , depending upon the CompanyNameit will show its logo and its customized page, and i will take ...

3. How can I pass two values to a Java servlet?    stackoverflow.com

I am developing a JSF application which has a servlet to display binary images. I have it working with one parameter but wanted to pass two parameters. It only seems to ...

4. Problem showing image from a database with JSF via a Servlet    stackoverflow.com

EDIT: The reason for this issue was due to bug unrelated to the servlet. I'm working on a JSF2/JPA/EJB3 project that enables users to upload photos of themselves and stores them in ...

5. Running servlet from faces-config    stackoverflow.com

It will be hard to explain.. So, in a.jsp I have something like this:

<h:form enctype="multipart/form-data" >
                 ...

6. How to disable specific parts of an application in jsf?    stackoverflow.com

I have a JSF application in which I have different servlets and facelets. The server is on real IP. Now what I want is that, one servlet be accessible from anywhere ...

7. Help creating servlet in existing jsf project    stackoverflow.com

I'm trying to create a servlet inside a JSF project. This is the first servlet that I've created and I'm using http://www.servletworld.com/servlet-tutorials/simple-servlet-example.html as an example to get me started. The ...

8. pass data to a servlet    stackoverflow.com

Basically we have a JSF app that dynamically generates a link to a servlet, which serves up the PDF file. I need to pass the path of the PDF to the ...

9. Display on-the-fly generated image on a jsf web app.     stackoverflow.com

I have a web app (JSF 2.0) that should display some images. I read in this thread and implemented an image servlet to send images to the client. Problem is, I am ...





10. Questions about the correct way of using servlets    stackoverflow.com

I want to create a servlet that will allow me to upload image files from the client to the server. I am helping myself with the tutorial i found at apache ...

11. How to properly use isUserInRole(role)    stackoverflow.com

To prevent a user role from performing an action.

  1. Example 1: The role "administrator" is the only role allowed to perform destroy action.
  2. Example 2: Any role different from "guest" can perform ...

12. JSF provide very basic REST get method    stackoverflow.com

Is there a way to have a doGet method in a @ManagedBean and define a URL on which this bean will react. I am using JSF and want to provide a really ...

13. How to register a JSF 1.2 PhaseListener in a Servlet.init()?    stackoverflow.com

Is it possible? FacesContext.getCurrentInstance() returns null.

14. How to get real path in JSF in a SessionListener    stackoverflow.com

my requirement is as follows: INFO: icefaces upload component, uploads the files to relative folder and creates for each user a sub-directory in that folder with the sessionId. Requirement: at the sessionDestroyed for ...

16. Equivalent of servlet init() in JSF    coderanch.com





17. How to imbed servlet in JSF    coderanch.com

18. JSF y servlet    coderanch.com

19. Problem navigating to JSF from servlet    coderanch.com

21. invoking face servlet    coderanch.com

If, as I think you're saying, you want to accept a login and (if successful) forward to a JSF pag view. In this case, the URL of the JSF page yo want to bring up is what you want to be forwarding to. The Faces Servlet will be invoked automatically when you do that.

22. JSF and servlets    coderanch.com

JSF and servlets work together just file. The only restriction is that since JSF is itself accomplished via a servlet and only one servlet can receive an HTTP request, you have the choice of using JSF or of using a user-defined servlet, but not both on the same request. That's not the handicap it may seem to be. A servlet is ...

23. JSF invoking Servlet    coderanch.com

24. How Faces Servlet works in JSF???    coderanch.com

25. How can I use JSF inside a Servlet?    coderanch.com

There already is a servlet that uses JSF tags to generate a web page. It's the JSF Servlet. JSF isn't just a set of taglibraries, it's an entire infrastructure. Before you break the rules, you need to know how they work. What it looks like you actually really intended to do was dynamically generate JSF page source and then apply it. ...

26. Problems using displaytag + faces: + webflow: servlet conflict    coderanch.com

ResponseOverrideFilter *.faces ResponseOverrideFilter *.htm extensionsFilter Faces Servlet extensionsFilter /faces/myFacesExtensionResource/* Acegi CAS Processing Filter /* Flow System Cleanup Filter *.htm ...

27. how to trigger a servlet from JSF    coderanch.com

public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { JasperReport jasperReport = getJaserReport(); ByteArrayOutputStream pdfStream = new ByteArrayOutputStream(); net.sf.jasperreports.engine.JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, new HashMap(), new JREmptyDataSource()); JasperExportManager.exportReportToPdfStream(jasperPrint, pdfStream); pdfStreamByteArray = pdfStream.toByteArray(); Debug.println("stream to bytearray"); FacesContext context = FacesContext.getCurrentInstance(); response = (HttpServletResponse)context.getExternalContext().getResponse(); Debug.println("start OutputStream"); OutputStream os = response.getOutputStream(); response.setContentType("application/pdf"); // contentType response.setContentLength(pdfStream.length); response.setHeader("Content-disposition", "attachment; filename=myTest1.pdf"); os.write(pdfStream); // fill in ...

28. Does jsf supports servlets?    coderanch.com

30. JSF with Servlets    coderanch.com

31. Faces Servlet    coderanch.com