Questions tagged as 'jsp'

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
2
answers

Sort by Value in DataTables

I'm using the Bootstrap SB Admin2, which makes use of the DataTables component. In my jsp page I'm loading the following table: <table class="table table-striped table-bordered table-hover" id="dataTables-example"> <thead>...
asked by 05.03.2015 / 21:33
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
2
answers

Pass JSP model to SpringMVC controller

Could someone please explain to me how to fix the error of my JSP? This form will serve to register products in my system, it receives a list of product categories from the database. My Controller ProductController.java: import java.util...
asked by 16.09.2014 / 06:36
2
answers

JSP - Use request in a method

I'm trying to use a request within a method as follows: <%! public void method() { RequestDispatcher disp = request.getRequestDispatcher("t2.jsp"); disp.forward(request, response); }; %> But...
asked by 28.11.2016 / 15:39
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

Spring MVC in HTML pages without JSP

1 - Is it possible to use data sent by Spring Controllers in HTML pages (using HTML5 tags), not to use JSP? 2 - If it is not possible, how can I make JSP pages with Spring MVC with minimal Java code intrusion on pages? 3 - Does the Bootstr...
asked by 10.07.2014 / 01:22
1
answer

Implement the Filter Access Control - JSP

Can you help me implement a filter access control in java? This was the implementation I tried to do so far, but I could not get it to work. public void doFilter(ServletRequest request, ServletResponse response, FilterChain chai...
asked by 17.05.2016 / 18:01
1
answer

How to mount a link in the JSP with the value of an input?

Is it possible to create a link (href) or an action (form) by taking the value of an input to pass to a @PathVariable of a method in the controller? My code is the following in the controller: @RequestMapping(value="atendimentos/{numeroCham...
asked by 04.02.2016 / 15:05
1
answer

How to open a JSP inside a JSP through a Servlet?

I'm using a Script, but I'm not using Servlet to do the desired action inside my index.jsp page, and do not use this Script below to open a JSP file inside my index.jsp home page. <script src="//ajax.googleapis.com/aj...
asked by 21.06.2015 / 16:54