Questions tagged as 'servlet'

2
answers

Uploading files and data SERVLET

How do I receive files and other parameters in Servlet? Here is the shipping code: <form action="myservlet" method="post" enctype="multipart/form-data"> <input type="text" name="mytext"> <input type="file" name="...
asked by 01.11.2017 / 22:05
0
answers

How to get in Arraylist in a JSP and pass as parameter to a Servlet (Link)

This list has the BookIndicate, BookIndicate, BookIndicate, which is displayed on the page correctly. But I want to create a link to a Servlet by passing the BookId. How do I do this? Here is the code:     
asked by 29.09.2017 / 23:11
1
answer

Java filter for specific pages

How do I control access of pages with Java? I have a filter already implemented, which makes the control whether the user is logged in or not. However, I have a page that I need to verify the user's permission ... The page will only be access...
asked by 25.08.2017 / 01:25
0
answers

How to enable cross-origin in tomcat?

I basically need to enable Cross-Origin in my Tomcat 8.5. I want to know the right way to do this and what are the risks?     
asked by 02.06.2017 / 22:45
0
answers

execute CMD command through JAVA

I'm having trouble running a command in CMD through JAVA. This command is executed by a .jar that is inside a directory "C: \ CopyUtility \ CopyUtility.jar." This is why I need to enter this directory and execute the command. For this I am us...
asked by 08.05.2017 / 01:40
1
answer

Servlet retrieve Object

Is it possible for a servlet to retrieve populated object in the requestParameter? Type coming from Javascript? req.getParameter("objeto"); I have the Person object that has Name Phone in Javascript I submit var obj = {nome: '...
asked by 22.01.2017 / 15:31
1
answer

URL Mapping

When accessing a user's profile, I'll pass the user's name as a parameter. www.site.com.br/busca?usuario=nomedousuario I would like to access it as follows www.site.com.br/nomedousuario Does anyone have the light of the end of the tunn...
asked by 18.09.2016 / 19:35
0
answers

Error when executing servlet querying JAR file [closed]

I created a Servlet that should access a class in java that is in a jAR file on the servlet buildpath, but it is giving an error, I will leave the prints here for anyone who can help me take a look. Thanks!     
asked by 20.09.2016 / 23:22
1
answer

Update JSP Excerpt via Servlet

I have the following case: I have an index.jsp file, which has the structure below: <jsp:include page="templates/header.jspf"/> <div id="view"> <jsp:include page="home.jspf"/> </div> <jsp:include page="templates/f...
asked by 20.06.2016 / 19:05
0
answers

Save image to application folder (File upload) using EJB + Servlet JSP

Good people? I need an example of how to do file upload using technologies, EJB + Servlet + JSP ... I'm working on a project that I need to dynamically insert the images into my application. Hugs!     
asked by 24.05.2016 / 16:20