glassfish « API « JSP-Servlet Q&A





1. cookie name is truncated in Servlet 3.0 HttpServletRequest (Glassfish V3)    stackoverflow.com

I'm porting our Web authentication/authorization middleware for use in containers implementing the new servlet 3.0 API (Glassfish V3 in this case). The middleware pulls cookies from the HttpServletRequest filtering on cookies with ...

2. JSP - sendRedirect is not working    stackoverflow.com

I have a simple jsp file:

  String url ="";

    if(aController.find(Integer.parseInt(request.getParameter("id"))) != (null))
   {
        url += request.getParameter("name") ...

5. glassfish does not respect cookiePath (sun-web.xml) when doing httpServletRequest.login    java.net

Glassfish 3.0.1, windows. We have configured sun-web.xml: (...) / (...) JSESSIONID set on UNAUTHENTICATED user has cookie context set accrording to the configuration, but when we invoke HttpServletRequest.login(...) then the session is regenerated using the context path of the servlet. Is this correct or this is bug? In my opinion this is a bug. Is this possible to ...

6. HttpServletRequest.isUserInRole() always returns false    java.net

> Hello, > > > > I have problem with HttpServletRequest.isUserInRole() method on GlassFish v > 3.1. It returns 'true' only once after deploying the application and then > always returns 'false'. HttpServletRequest.getUserPrincipal() works fine. > > > > I use LDAP realm with user groups defined. I have described roles in > , // and > / elements in web.xml ...

8. Problem setting servlet context attribute on GF v2 B08    java.net

I try to create a web app with EJB3.0 persistence support according to the "Book" example from the Java EE 5 tutorial. I registered a ServletContextListener and the contextInitialized() is called. I create the DBAO with the injected EntityManagerFactory and put the DBAO in the context using servletContextEvent.getServletContext().setAttribute(). So far it's just working fine. My problem appears when contextDestroyed() is called ...





13. servletContextListener    java.net

14. Questions about custom ServerAuthModule on httpServlet layer (JSR196)    java.net

you should be able to do that, since the ejb web service endpoints are fronted by the glassfish servlet container. you need to register your sam for the HttpServlet layer and for the appcontextid corresponding to the context path under which your web service endpoint is deployed. I'm not exactly sure how to determine the context path for such an endpoint. ...





17. HttpServlet class not found    java.net

20. javax.servlet.ServletException: PWC1232: Exceeded maximum depth for nested    java.net

at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198) at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:542) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:474) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:366) at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:408) at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:442) at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:115) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198) at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:542) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:474) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:366) at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:408) at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:442) at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:115) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106) at ...

21. JSP's stored in WEB-INF    java.net

Hello, I have stored the jsp files for my web app inside the WEB-INF/jsp folder. This configuration is preventing me from accessing the images that I have stored inside my docroot. I have tried placing the images folder inside the docroot and also inside of the WEB-INF folder, both of which were unsuccessful. The only way I'm able to access the ...