Questions tagged as 'struts2'

1
answer

How do I get a list of Strings in a select from Struts2?

I have a select on my page that should have its value and its legend populated through a list of Strings that come from my Action. I'm sending the list correctly because I see the combo have the number of elements of the same size as the list...
asked by 14.02.2014 / 22:31
1
answer

Struts2 with Spring Security plugin Oauth2

I would like to know if it is possible to use the Spring Security Oauth2 plugin with Struts2 or if this plugin has any restrictions that only allow SpringMVC to work?     
asked by 19.02.2014 / 13:49
1
answer

Struts2 - Is it possible to access an action backend method in the JSP?

I'm using Struts2 to build a web application. I have a method in a class called BaseAction , where all other Actions extend it, as written below: public boolean isUserFullyLogged() { final Boolean isLogado = (Boolean) this.ret...
asked by 31.03.2014 / 20:28
2
answers

How to call a Java method using jQuery?

I need to call a method that adds a ArrayList to what the user reported in dynamically generated tags when they click "add". Any suggestion? I was trying to do it using AJAX, but I have not been successful yet. The value entered by the...
asked by 16.10.2014 / 20:34
1
answer

What are the features and functionality of Apache Struts?

I do not know what the structure and functioning of this framework is, but from what I've read about it, it's been used a lot in Web development. What are the features and functionality of Apache Struts ?     
asked by 06.06.2015 / 20:14
0
answers

(Struts2 - JEE) I used extends from an action class and in the class call my execute () does not run

So, guys, I've never had a problem with the execution of project action classes, but this time I wanted to reuse the code from another class and when using extends in the call, it only runs prepare () and validate () . I would like to know if...
asked by 17.06.2016 / 14:47
1
answer

Problems in implementing JSP using Struts2

After executing the following jsp : <%@ taglib prefix="s" uri="/struts-tags"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEn...
asked by 19.11.2014 / 20:35
2
answers

How can I copy and paste on a screen?

Personal greetings, I have a generic javascript util.js file with a function to not allow copy and paste. $('input').bind('copy paste', function (e) { e.preventDefault(); }); On a specific page, I need a given field to copy and pa...
asked by 19.07.2018 / 20:25
1
answer

How to recognize each element of the iterator-tagged list of Struts 2?

I made an iterator to cycle through a list, adding inputs to be changed. When the field with the class dataFimVigenciaPlanoVigente is changed, a jquery function is called to change also in the object in java. However any input I change it always...
asked by 06.11.2014 / 14:22
1
answer

How to correct the error in the Log?

I'm using Struts 2 on Tomcat, and I can run the code. However, I'm having this error in the log.    java.lang.ClassNotFoundException: org.apache.struts.action.ActionServlet And I have no idea what it is. I've been searching and I can not...
asked by 30.06.2014 / 12:51