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
1
vote
3 answers

Not getting Text Area value with file upload JSP and Servet 2.5

I am trying to submit a form with text fields, text area, file field etc in a JSP form. I am using commons file upload for this form. Here is my JSP form:
Gourav
  • 813
  • 2
  • 10
  • 23
1
vote
0 answers

Use javax.servlet 2.5 plugin in Juno

While developing plugins for Eclipse, I want to use the javax.servlet plugin that comes bundled with Java EE eclipse. I found that However, the version packaged with Juno comes with servlet 3.0 specs. Is there a way to install and use the plugin…
Neel
  • 2,100
  • 5
  • 24
  • 47
0
votes
0 answers

Multipart file not uploading

I upload file from JSP but unable to get it in controller @ModelAttribute . File Controller.java @RequestMapping(method = RequestMethod.POST) public String createTestConfig(Model model, @Valid @ModelAttribute("myConfig") myConfigDTO myConfig,…
surm
  • 167
  • 2
  • 11
0
votes
0 answers

Tomcat 6 vs 7 broke default and jsp servlet requests (404)

We're migrating around 20 web contexts from Tomcat 6.0.48 to Tomcat 7.0.76 but we're facing an issue with the requests handled by the servlets configured in the parent web.xml (tomcat7\conf\web.xml). The problem is that requests for /some_file.html,…
Dani Rodríguez
  • 72
  • 3
  • 13
0
votes
0 answers

What does Jersey2 follows? Servlet-2 or Servlet-3 specifications

I was curious to know if Jersey2 follows Servlet-2.5 specs or Servlet-3. I was using log4j2 into my jersey webapp project and the way it is needed to configure depends on the Servlet types. For reference…
Kuldeep Yadav
  • 1,664
  • 5
  • 23
  • 41
0
votes
1 answer

Tomcat log filter not encoding response body properly

When adapting a log filter from using javax.servlet.servlet-api:2.5 to 3.0.1 for Tomcat I ran into a problem. Part of the log message is properly encoded in UTF-8, while the other part has some encoding problem (unknown encoding). The problem:…
Peter G.
  • 7,816
  • 20
  • 80
  • 154
0
votes
1 answer

Doesn't work Spring Boot legacy in my project

I am new in Spring Boot and I am trying to use it in my project which is configured with servlet 2.5. When I run it with Eclipse Maven Plugin with the goal "spring-boot:run" the execution returns the following error: `[Tomcat-startStop-1] ERROR…
0
votes
2 answers

Spring mvc compatibile with Servlet 2.5

I have developed some rest services with Spring mvc 3.0.9. In some case I have an exception. It depends that my spring version use Servlet 3.0 api (my application server is jboss eap 5.1). What is latest spring mvc version compatible with Servlet…
Michel Foucault
  • 1,724
  • 3
  • 25
  • 48
0
votes
1 answer

Does Spring Session require servlet 3.0?

I'm looking at using the Spring Session library (http://projects.spring.io/spring-session/) and was wondering does using this API require a servlet 3.0 container? Will it work/run on a servlet 2.5 container?
Eric
  • 362
  • 1
  • 4
  • 15
0
votes
1 answer

Can I keep web.xml version 2.4 even if I am actually using Servlet-api jar version 3.0

My application currently uses servlet-api.jar version 2.4 for compilation. The jar gets packaged with the code and is deployed on the tomcat server. The Web.xml also has the same version
Jeril Nadar
  • 175
  • 3
  • 10
0
votes
1 answer

Add servlets programmatically with tomcat 6

I have seen lot of examples for Servlet3.0, but I couldn't find a single answer with Servlet2.5. But I'm sure there should be a way to do it. Can anyone tell me how to add a servlet programmatically with tomcat 6. Thanks.
sura2k
  • 7,365
  • 13
  • 61
  • 80
0
votes
1 answer

Web application in other web application

I am a student, I write final work at university, with Java EE I work half a year. Below is what am looking for: I need to create a web application (servlets/jsp) as a JAR file which can be added in another web application in WEB-INF/lib folder.…
Sergey
  • 879
  • 1
  • 11
  • 16
1
2