Questions tagged [servlet-3.0]

Java Servlets 3.0 is a new API that supports extensibility/pluggability, Ease of Development (EoD) using the newer language features, Async and Comet support, Security, and other features being as part of the revision for Java EE 6.

Version 3 of the servlet API adds the following to version 2.5

  • async response
  • multipart support
  • annotation configuration (no web.xml)
  • generics in the API
  • resources (including JSPs) in JARs under META-INF/resources

Links

941 questions
0
votes
1 answer

@WebServlet annotation with tomcat 6

I tried to write a simple web application using servlet. when I tried to execute the frist page it get executed with the url "//localhost:8080/PassingParameter/ParamHtml.html" correctly. When I click the next button the url is changing too…
jona
  • 21
  • 1
  • 6
0
votes
1 answer

Jersey app deployment error

I have a simple jersey based REST Web service where i'm trying to do a test GET run.. Using Jersey 2.7 & Servlet 3.0 container, I have tried configuring the application using the jersey doc ( JAX-RS application without an Application subclass I have…
Yashveer Rana
  • 548
  • 3
  • 15
0
votes
2 answers

How to properly import a pure simple servlet in a JSF Spring config environment?

I have a project developed with JSF and Spring. My intern has to a make a kind of 'web service' to return json that he uses to make some graphics with ajax/jquery queries. We read that jsf was not the best stuff to make a web service style…
ZheFrench
  • 1,164
  • 3
  • 22
  • 46
0
votes
1 answer

Problems with Bean declared as Scope request in Servlet 3.0 configuration

I'm migrating my application from using the web.xml to configure the servlet to use a class implementing WebApplicationInitializer to configure my web application. After migrating everything to that class implementing WebApplicationInitializer I…
alexzm1
  • 563
  • 2
  • 7
  • 14
0
votes
2 answers

Execute/Invoke JQuery (function) from Servlet

I have a JQuery code that opens a Modal Popup. I would like to execute this JQuery code (function) from a method in the Servlet. I want to achieve one of these: Call the JQuery method that is defined in a JSP page from the Servlet. Execute the…
Swag
  • 2,090
  • 9
  • 33
  • 63
0
votes
1 answer

Jetty 9, AsyncResponse not working

I have a spring app which exposes REST API's implemented in CXF. I'm trying to implement long polling for which I used AsyncResponse Along with Suspended. If I run this peice of code in tomcat (maven plugin or standalone) it works. But if I run the…
high-voltage
  • 143
  • 5
0
votes
1 answer

getting time difference between two times in JSP

In my coding Im using jQuery date picker and getting time[08][15][AM] 3 different textboxes from the user manually in the text box. My code is based on a web application to find one workers efficiency . each worker will be entering the work and the…
0
votes
1 answer

Migration from web.xml to JavaConfig

I'm starting a new spring mvc project and I want to do all the configuration with annotation. I think that the problem that I have is migrating the web.xml to the AppInitializer, because when I made the changes and deploy the app with the new…
Rumal
  • 1,452
  • 1
  • 17
  • 31
0
votes
0 answers

getting incorrect page context path in jsp

i want to have base context path set for all jsps, irrespective of having different request path which i have in my controllers, to avoid this i have added to my below code to my layout.jsp section
pappu_kutty
  • 2,378
  • 8
  • 49
  • 93
0
votes
1 answer

Getting no output for BASE64Encoder()

I have tried a lot tested each step of my program, i get output but when i am testing BASE64Encoder() line it is not working,i stuck completely even eclipse not showing any error on BASE64Encoder() line ,I want your help how to get rid of this…
satish
  • 17
  • 1
  • 5
0
votes
0 answers

http 404 from tomcat servlet in 'resources' path

I am use ckeditor ckfinder in my project.but i can not find ckfinder servlet when i use the default mapping. i can find it ,if i change the mapping path in a short path. ckeditor
zt9788
  • 948
  • 4
  • 16
  • 31
0
votes
0 answers

Spring 4 Jar overriding Servlet 3 Api

I am trying to configure my latest Spring application programmatically instead of with an xml file. However, I am running into a problem where when I import the spring-webmvc-4.0.3.RELEASE jar the compiler no longer uses the Servlet 3 api. I need…
Kyle Bauer
  • 83
  • 1
  • 1
  • 9
0
votes
1 answer

How do you get a JSP request string in the servlet?

I am using the apache tomcat servlet API and I am trying to create a page which will print the contents of a spreadsheet. Due to the fact that I am going to be dealing with a large # of cells, I am trying to develop a servlet that will dynamically…
0
votes
1 answer

Will I get the display: none input value in servlet

I have read somewhere in stackoverflow that we will not get the value of checkbox which is display:none using javascript but I am getting the value of checkbox in servlet. Below is my JSP code