prettyfaces

Remove jsessionid from URL

偶尔善良 提交于 2019-11-29 22:24:08
I'm working on a project with the following technologies: Spring ShiroFilter PrettyFaces Tomcat server While I'm deploying it on tomcat server, I'm getting a "JSESSIONID 456jghd787aa" added at the end of the URL. I was trying to resolve this but I'm not able to do that. For tomcat 7 add this to web.xml <session-config> <!-- Disables URL-based sessions (no more 'jsessionid' in the URL using Tomcat) --> <tracking-mode>COOKIE</tracking-mode> </session-config> The following filter may solve your problem (from http://randomcoder.org/maven/site/randomcoder-website/cobertura/org.randomcoder.security

Primefaces FileUpload with PrettyFaces and JSF 2.2.3

廉价感情. 提交于 2019-11-27 09:09:18
I'm having some problems with PrettyFaces on the pages I use <p:fileupload> . When I disable the PrettyFaces filter on the page, everything works just fine. When I put it back, I can see the HTTP traffic on the webbrowser, but my fileupload handler is never fired. This is some relevant part of the code. Any help would be appreciated! My .xhtml <h:form id="formImportarSNs" enctype="multipart/form-data"> <p:fieldset legend="Admin Panel"> <p:fileUpload value="#{adminPanelBean.file}" mode="simple"/> <p:commandButton ajax="false" actionListener="#{adminPanelBean.upload}" value="confirm" /> </p

URL rewriting solution needed for JSF

半世苍凉 提交于 2019-11-27 02:51:38
问题 Suppose the following application landscape: +-----------------+ | App server | +-----------------+ | | +-------+ | ear1 | | | | +-web1 (/ctx1) +--<-- http://localhost/ctx1/xxx/ --+ +--<-- http://www.example.com/xxx/ | | | | | | | proxy | | ear2 | | | | +-web2 (/ctx2) +--<-- http://localhost/ctx2/yyy/ --+ +--<-- http://abc.example.com/yyy/ | | | | +-----------------+ +-------+ As you can see, proxy ( nginx in my case) is forwarding requests to to a single application server instance, which in

Spring - Rewrite one URL to another

帅比萌擦擦* 提交于 2019-11-27 02:31:31
问题 I have a Spring 2.5 application that contains a Flash banner. I don't have the source for the Flash component but it has links hardcoded to certain pages that end in .html I want to be able to redirect those .html pages to existing jsp pages. How can I have Spring resolve a few .html pages to .jsp pages? My project looks like: WebContent | -sample.jsp -another.jsp WEB-INF | -myapp-servlet.xml -web.xml I want localhost:8080/offers.html to redirect to localhost:8080/sample.jsp Can I do this

Fileupload and PrettyFaces and JSF 2.2 [duplicate]

六眼飞鱼酱① 提交于 2019-11-26 09:57:52
问题 This question already has an answer here: Primefaces FileUpload with PrettyFaces and JSF 2.2.3 3 answers I\'ve tried the solution from: Primefaces FileUpload with PrettyFaces and JSF 2.2.3 But it doesn\'t work for a few files (tested under tomcat 7.0.50). One of the files is: http://ftp.carnet.hr/misc/apache//xerces/j/source/Xerces-J-src.2.11.0-xml-schema-1.1-beta.zip Has someone a better solution for this problem (other than removing the urlmapping)? EDIT: There is no error/exception thrown!