51,722
questions
1
vote
3
answers
1k
views
How can I get UTF-8 text in action class in Struts 2?
I'm developing a web application using Struts 2 and Hibernate.
But, I have a problem that, when I start a server and load website then my loading method in the action will be called, but it can't load ...
0
votes
1
answer
262
views
How to display items as hyperlink to different pages in <s:iterator> tag in Struts 2?
I am using Struts 2 <s:iterator> tag to display the result of ArrayList on my JSP page.
My problem is, that I want the item as independent item, so that I can use it for more processing. I want ...
1
vote
1
answer
108
views
Creating a sentence on a JSP page with a hyperlink that will be automatically removed after two days from the deployment date
I am having a requirement to add a sentence on a JSP page with a hyperlink, which it'll redirect to a different page, and this sentence needs to be automatically removed after two days from the ...
0
votes
1
answer
1k
views
Get the return URL from a JavaScript function and send it as a parameter to the action in Struts 2
I have a JavaScript file: informacoesImportantes.js, and in it, I have a function that generates a destination URL to Whatsapp.
I need to get the URL and pass it as a parameter to a qrCode.do action, ...
0
votes
2
answers
2k
views
How to pass multiple params from <display:column> tag to URL in Struts 2?
I am trying to pass in multiple (3) parameters to a URL from <display:column> tag.
I am trying to use the code like this, but the object is passed as null.
<display:column class="nowrap&...
1
vote
4
answers
4k
views
Failing to compile Tomcat's index.jsp example
Whenever I try to run the index.jsp example provided by Tomcat on /jsp/security/protected, I get the following error:
type Exception report
message Unable to compile class for JSP:
description The ...
2
votes
6
answers
18k
views
Tomcat doesn't start my web app
I have installed Apache Tomcat 8.0.9, it is working fine and the startup page appears.
The problem that any webapp i tried to start from the tomcat failed and I got 404 instead, I am new to tomcat ...
0
votes
1
answer
214
views
Implementing mail templates using Struts 2 taglib in custom JSP template
I'm building an app that leverages Struts 2 as the primary framework, but one of the requirements is, that the app sends automated emails.
Since Struts 2 doesn't include much helpfulness out-of-the-...
0
votes
1
answer
2k
views
java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String when using <display:table> tag with HashMap in Struts 2 [closed]
I am creating a table manager. I have already implemented it with simple HTML Table tag.
But now, I want to implement it using display tag.
Basically, this entire page is dynamic, that is if I add a ...
6
votes
3
answers
26k
views
JSTL support in Spring Boot
Though I know that there are some limitations in the JSP support, I want to use JSP with JSTL tags in Spring Boot web application.
An extract of my JSP file:
<%@ page pageEncoding="UTF-8"%>
&...
0
votes
2
answers
558
views
How to view more than one image in a JSP page from database in Struts 2?
I have problem trying to fetch images from the db and then showing them in a JSP page:
ImageAction:
public class ImageAction {
private byte[] itemImage;
public byte[] getItemImage() {
return ...
0
votes
1
answer
574
views
How to save data using Hibernate 4.2.6 + Struts 2 + Netbeans 8.0 + Tomcat 8.0.3.0
When I try to save an Object using the elements listed in the main title subject, I get this error:
target is null for setProperty(null, "tiposClientesIdTipoCliente", [Ljava.lang.String;@...
0
votes
1
answer
476
views
Assigning JSP element value to Struts 2 <s:textfield>
I am implementing logic for updating the user details, so for that I have to run Hibernate query and desire an object of class Applicant.
Now, what I want is to use class Applicant object and use ...
0
votes
1
answer
3k
views
Delete multiple records from MySQL by using checkboxes in JSP [duplicate]
I am trying to delete multiple rows from MySQL database using checkboxes. Here is my code. I only can delete a row by row without checkboxes.
displayfood.jsp:
<%@ page language="java" ...
0
votes
1
answer
819
views
Scriptlets and EL rendering as text in JSP (not compiled)
I have a problem with including taglibs and using the expression language in JSP page. The JSP doesn't want evaluate expressions and returning them like a simple text.
For example, if JSP content
<%...