web.xml

Prevent the user from making a GET request to a page

I am sorry if my question does not make any sense. So here is what I have: 2 pages, A.jsf and B.jsf. When I press a button in A.jsf, the code set the value of an object and redirect to B.jsf. Contain of B.jsf will depend on which object I set in A.jsf (which depend on which button I click). Therefore, I dont want to allow the user to typ...

How do I configure my web.xml to use Spring with noelios Restlets?

There is a lot of information and examples out there for combining Spring with Restlets, and it is somewhat confusing. Can anyone provide a simple web.xml and *-servlet.xml to demonstrate how I would combine Spring with Restlets? Specifically, I want the restlets to be created by Spring, and I want to use annotations for injecting res...

app engine incoming mail handling

I am developing a Google App Engine application. I wish to receive mails under '%username%@appid.appspotmail.com', where %username% belongs to a user of the application. I just can't figure out what to define in web.xml file. Any similar solution such as mails to: '%username%[email protected]' 'usermailbox.%username%@a...

com.sun.faces.config.ConfigurationException: no web.xml present

I programmed an application with JSF and some other fraeworks. Then I destroyed my metadata with maven and then I created a new project and imported all my classes and config files into the new project. So that I have clean metadata. The Project can be built without problems now. But when I want to start it onto tomcat I get the followin...

JBoss AS 5.1: Overriding context parameters when deploying a Servlet webapp

Is there any way to OVERRIDE a webapp's context parameters (already defined inside its WEB-INF/web.xml with default values) when the webapp.WAR is being deployed to the JBoss AS 5.1? Apache Tomcat has a nice feature whereby if a webapp WAR file is being deployed using the Tomcat Manager, you have the option of supplying an XML configura...

Websphere App Server 6.1: Redeploy after web.xml change required?

In WebSphere Application Server 6.1, is it necessary to redeploy the application (WAR/EAR) every time a change is made to a web.xml descriptor file? ...

iText Generated PDF Viewing Problem in IE7

Hi Friends, I am generating a pdf using iText. When I open the pdf through the link it does not open in IE 7 but works fine in Chrome. I also noticed if I remove the / from web.xml then it opens perfectly fine in IE 7. My security-constraint in web.xml is: Entire Application / I have to use the /* because of s...

Lookup library that retrieves values based on paths.

I would like a library that works just like servlet mappings without the servlet container. It should support concepts such as /* maps the default value /exact maps exact path maps /prefix maps any path that begins with "/prefix" *.suffix maps any paths that end with "suffix". Imagine something like a Map that accepts str...

How to read context-param values from web.xml with a normal Java class

I know it it is easy to read the context-param values from web.xml with a Servlet. But is it possible to read the value with a normal java class? ...

Skin problem with richfaces on Weblogic 10.3

Hi guys, I have a big problem with richfaces and weblogic 10.3. I use seam 2.2.0 on weblogic for my project. All jsf and richfaces fonctionnalities work fine except one. The skin doesn't work, nothing is skinned so my application has none css and it's very dumpy. What is wrong in my configuration ? Thanks. Here is my richfaces confi...

What is a servlet's "display-name" for?

The <display-name> element appears to be a valid sub-element of the <servlet> element as per the Servlet 2.5 deployment descriptor XSD. That is, according to Eclipse's XML validator, this: <servlet> <servlet-name>FooServlet</servlet-name> <display-name>FooServlet</display-name> <servlet-class>com.bar.servlet.FooServlet</serv...

Why after configure this, request can be redirected to acegi ?

<filter> <filter-name>Acegi Filter Chain Proxy</filter-name> <filter-class> org.acegisecurity.util.FilterToBeanProxy </filter-class> <init-param> <param-name>targetClass</param-name> <param-value> org.acegisecurity.util.FilterChainProxy </param-value> </init-param> </filter>...

Spring security- switching between HTTPS and HTTP

Hello, I am working on a spring based application which will be delivered to several clients. I would like to find a way to override the securiy settings defined in web.xml either at runtime (to switch between HTPP and HTTPS), either to load another web.xml without unpacking and editing the web.xml from the application jar. Thanks fo...

JSP Login Authentication Script failing (MySQL-backend) web.xml servlet mapping?

Hi guys, I am just starting out with JSP in NetBeans 6.9.1 and im trying to make a basic login script for user authentication (sessions will be added later; These are made automatically for every JSP page right?) The problem I am having is the following. I followed the tutorial at: http://www.roseindia.net/jsp/loginbean.shtml ** I mad...

How to specify filter priorities in java web apps?

Hello I wish I could define two filters like this <filter-mapping> <filter-name>SecurityFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <filter-mapping> <filter-name>ContextFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> with the same pattern /* in my web.xml file, and ...

How to implement complicated servlet mapping in web.xml descriptor

Hi all! I faced with next task: I have an host, for example host.com and web-application on it. Application written on Java (JSP/Servlets+Struts2). I need to implement such HTTP-request to servlet mapping: if user enters address in browser like http://host.com/admin.action, where admin.action - existing action, defined in struts.xml, t...

Why is creating Servlets in Eclipse breaking my web.xml?

Being somewhat lazy, I was rather happy to find that I could create a new servlet source code by going New -> Servlet, instead of going New -> Class and then editing the class into a servlet. However, I have discovered that every time I create a new servlet in Eclipse, Eclipse modifies my web.xml. Specifically, it modifies the top elem...

JEE web.xml: How to exclude a single page from a <url-pattern>

I want on all pages BUT ONE (header.jsp) to include-coda like in this code: <jsp-property-group> <url-pattern>*.jsp</url-pattern> <include-coda>footer.jsp</include-coda> I just don't get how I can limit the Pattern to exclude header.jsp ...