Questions tagged as 'servlet'

1
answer

dynamic path out of context in servlet

To get the dynamic path within the project is easy, just run the code: String path = this.getServletContext().getRealPath(""); Here it is returned: /home/pedro-pazello/development/servers/apache-tomcat-7.0.42/wtpwebapps/img_uploader/...
asked by 23.02.2014 / 16:45
1
answer

Problems using JSTL

I'm implementing a WEB application with J2EE, but I'm not able to list the data coming from the ServletListCourses to the Liste.Jsp page that uses JSTL. public class ServletListarCursos extends HttpServlet { private static final long...
asked by 11.02.2015 / 11:31
2
answers

Show session time remaining

I'm working with JSP and Servlet. I want to display on the jsp page the time remaining to expire the session I set in my web.xml: <session-config> <session-timeout>30</session-timeout> </session-config> Has anyon...
asked by 04.02.2015 / 20:38
1
answer

"java.lang.String can not be cast to ..." using access control in Servlet

I have a system made for my company and together I have the new website. I can log into the system normally with the accounts registered in the database, but when I insert a filter in the servlet, I get the message:    java.lang.ClassCastExce...
asked by 11.10.2015 / 00:32
1
answer

What programming should be done to use Spring Security with Jboss with annotations?

As per requirements of a project that is in the research phase, I need a large distributed system to work properly with Spring, right now I'm having a hard time integrating Spring Security 3.2 with JBoss EAP 6.3. It's a bit difficult to defin...
asked by 08.06.2015 / 21:12
1
answer

How does Android automatically update the calendar?

I'm developing an app that stays connected on a local network, but without internet. I am using an APC 8750 link without battery, ie when I hang up it loses the calendar. How does Android automatically update the calendar? If in the case Andro...
asked by 10.03.2014 / 03:00
1
answer

Two pages using the same Servlet

I have my main page (index.jsp) use the servlet for some small things. Then redirect to the final page.jsp. This page will use the servlet as well, since I need the user to choose the functions (buttons) he wants to use. My question is: Can I u...
asked by 03.11.2014 / 22:17
1
answer

How to use the servlet context listener to start a servlet as soon as the application loads?

I have the following servlet declared in web.xml and would like it to be initialized before any of the other servlets of the application: <servlet> <servlet-name>ListarFilmesIndex</servlet-name> <servlet-class>b...
asked by 02.11.2015 / 10:41
1
answer

How to include .jsp file in the solution?

I'm developing Java web applications using JSP's. I have a file called header.jsp , which contains links to CSS files and other things that are important to my system that is in the root directory. I have a folder that has other .jsp...
asked by 11.11.2014 / 04:24
1
answer

How to bring a JSP page to the content of a postgis query?

I have postgis with a database that I have downloaded from ibge and I need to make an application in javaweb that reads the name of a municipality and brings back the data in the svg format and displays on the screen the region passed as a param...
asked by 16.06.2016 / 03:11