Questions tagged [servlet-2.5]

A Servlet 2.5 (JSR-154) specification targeted to the Java EE 5 platform.

September 26, 2005, Sun Microsystems, and an expert group for JSR-154 issued technical support release, which should be corrected version of the Servlet API version 2.4. Under normal conditions, these releases JSR expert groups to include a clarification, and useful solutions to improve the existing errors in the field of security in previous versions. However, in this case, it added several innovations that led to the revision and release of version 2.5.

Among the changes and improvements that were introduced in Servlet API version 2.5 are the following:

  • Depending on the platform Java EE 5.
  • Support for annotations.
  • Convenience in writing the application descriptor web.xml
  • Reduces some of the limitations of previous versions of the Servlet API.
  • Clarification of the principles of the servlet for some extreme situations.

When working with Servlet API 2.5 keep in mind the version of containers that support this standard. At this point the latest versions of the servers as Tomcat, Jboss AS, Apache Geronimo support Servlet API 2.5.

27 questions
24
votes
9 answers

Setting an httponly cookie with javax.servlet 2.5

here is a function that sets a cookie: public void addCookie(String cookieName, String cookieValue, Integer maxAge, HttpServletResponse response) { Cookie cookie = new Cookie(cookieName, cookieValue); cookie.setPath("/mycampaigns"); …
aamiri
  • 2,420
  • 4
  • 38
  • 58
6
votes
1 answer

Application does not start with Spring Boot 1.2.1 + Spring Security + Servlet 2.5

I have a Spring Boot application with Spring Security starter that works well in "modern" (i.e. Servlet 3.0+) J2E servers such as Tomcat 7 or Jetty 8. My problem is that I have to run the application in a Weblogic 10.3 server (the Production one),…
Jérémy Buget
  • 168
  • 2
  • 11
5
votes
1 answer

How to deploy Spring Boot app to Tomcat 6 Servlet 2.5

I created a FAQ using spring boot. it needs to be deployed to a tomcat 6 server (servlet 2.5). I need to configure the current parent java app(war) web.xml to point all request to url pattern "/faq/*" for example, to my spring boot FAQ app. I've…
user3780135
  • 91
  • 2
  • 7
4
votes
1 answer

How to get header from response in Servlet 2.3 or 2.5

I know that v3.0 has method getHeader() but what about 2.3? Maybe it possible to get from steam? UPDATE: Actually, I need the HTTP response header RESTful application. In some reason I have decided to do this in servlet filter... but without…
Tioma
  • 2,120
  • 9
  • 35
  • 52
4
votes
1 answer

How can I create HttpOnly cookies using Servlet API 2.5?

I'm working with a web application that uses Servlet API v2.5, running on Tomcat 6, and I need to send HttpOnly cookies to the client. I'm not talking about session cookies generated by the servlet container (which is covered excellently by this…
Brant Bobby
  • 14,956
  • 14
  • 78
  • 115
3
votes
1 answer

How can I use variable substitution in Tomcat's web.xml for the context path

Using Tomcat as my Servlet Container, how can I deploy two identical wars to different contexts and simply use the context path as the variable which will determine which properties file to load? I'm looking to do something like this in web.xml: …
noisebelt
  • 940
  • 2
  • 9
  • 20
2
votes
1 answer

Jersey 2 status code not visible in HttpServletResponseWrapper

The Java servlet API does not provide a getStatus method for HttpServletResponse until version 3.0. I have created a HttpServletResponseWrapper with getStatus to wrap HttpServletResponse and catch the status when it is set. This does not work with…
2
votes
1 answer

Set session tracking mode to cookie in Servlet 2.5

How can i set the session tracking mode to only use the cookies, i can set this in Servlet 3.0 by setting the COOKIE in the web.xml or by using…
Max
  • 711
  • 1
  • 10
  • 27
2
votes
1 answer

Does Spring Boot support servlet 2.5 auto-configuration?

I would like to create a Spring Boot application to be deployed on Google AppEngine infrastructure. GAE currently only supports servlet 2.5 web applications. Is it possible to use Spring Boot - using auto-configuration - in combination with a…
Marcel Overdijk
  • 11,041
  • 17
  • 71
  • 110
1
vote
0 answers

How to generate xy line chart using OrsonPDF using itextPDF and Jfreechart for response on request?

I want to draw a xy line chart on PDF. After clicking on a button on a JSP, a PDF will be generated with xy line chart. So I have used jfreechart to create xy line chart and then wants to print it in PDF format using OrsonPDF. I have seen the same…
Amit K Kushwaha
  • 113
  • 1
  • 7
1
vote
1 answer

Redirection to Angular2 page from Servlet results in 404

I've an old application that is at Java 1.6, Servlet 2.5 and deployed as WAR on a Websphere Application Server 7.x version. Now, I'm trying to add a newly written page with Angular2 framework and typescript. My web.xml has the following servlet…
1
vote
0 answers

JSF and basic authentification

i have an application with basic form authentification, all work fine (i m using servlet 2.5 and JSF2). i need to add an extra parameter in my form (infogerant) in hidden:
1
vote
2 answers

Spring cloud Zuul with servlet-api 2.5

@EnableZuulProxy doesn't work under a servlet 2.5 container. Is there any workaround to get spring-cloud zuul work under a servet 2.5 container? Also I could not find the annotation processor of @EnableZuulProxy. Please provide the class which…
Fahim Farook
  • 1,482
  • 2
  • 14
  • 38
1
vote
1 answer

Spring 4 mvc + security for servlet 2.5 in JBoss5.1.0.GA

I want to use spring 4 with minimal xml configuration for the now new project I am about to develop. I will be using Spring in this project for dependency-injection, mvc, security and jdbc. I will use JOOQ for query generation. (Yes, I need to…
vvra
  • 2,832
  • 5
  • 38
  • 82
1
vote
2 answers

servlet-class references to "org.springframework.web.servlet.DispatcherServlet" that does not implement interface javax.servlet.Servlet

I am new to Spring and trying to deploy and run my first spring web application using Maven.For more details,please refer here(a question I posted yesterday): Now,the problem I am having is: When I am trying the follwing 2 URL's,I am getting an…
Sandeep Chatterjee
  • 3,220
  • 9
  • 31
  • 47
1
2