Skip to main content

All Questions

Tagged with
0 votes
1 answer
34 views

java.lang.ClassNotFoundException: javax.servlet.jsp.tagext.BodyTagSupport

I have the following code in a JSP file for the tags which is included in all of my JSP files at the top: <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%> &...
Tan's user avatar
  • 1,537
0 votes
0 answers
24 views

Separate Content-Disposition from HTTPServlet Response Writer

I asked the question earlier about Content-Disposition breaking JSP code. Although I didn't find an optimal solution, I did come to the conclusion of using a popup window to download the file. This ...
Anirudh Giran's user avatar
0 votes
1 answer
253 views

How to provide protection against Cross Site Request Forgery (CSRF) attacks for an old web application built on Java and struts2 framework [duplicate]

How to provide protection against Cross Site Request Forgery (CSRF) attacks for an old web application built on Java and struts2 framework? Tried adding filter before servlet, stuck over there.
Varun Pattar's user avatar
-2 votes
1 answer
326 views

How to change code of struts tag into spring or jstl tag?

<bean:define id="user" name="form" property="user2" type="document.result" /> This is the example of my code. I was trying to convert my struts code ...
Data Set's user avatar
1 vote
2 answers
109 views

org.apache.jasper.JasperException: "equal symbol expected" when using JSTL c:out as value of Struts1 html:checkbox

I am using JSTL and Struts1 and I am getting org.apache.jasper.JasperException: "equal symbol expected" on the line with <html:checkbox>: <%@ taglib prefix="c" uri="...
star lord's user avatar
1 vote
1 answer
209 views

How to access the nested tag of a struts tag?

I am using the following JavaScript code to set the value of an element. document.getElementById('alert['+i+']').innerHTML = "alert"; The element is nested in a Struts set tag. (The ID ...
MicSar's user avatar
  • 21
0 votes
1 answer
401 views

Call Stuts 2 Action Method with Parameter from Variable in JSP [duplicate]

There's a similar thread that was never answered properly. I'm trying to call a Struts 2 Action method from a JSP using <s:property> and this method takes a param. The value I'd like to pass is ...
gene b.'s user avatar
  • 11.5k
1 vote
0 answers
87 views

How to automatically select the dropdown which is pulling from the database by using id as an input

I am trying for a week that, Scenario: The table Alphabet having 3 values with two columns ID Alphabet 1 A 2 B 3 C This values are pulling by java code which shows in JSP as Dropdown. ...
simla's user avatar
  • 13
1 vote
1 answer
1k views

Unable to find forward in struts

FormBackup.java package beans; import javax.servlet.http.HttpServletRequest; import org.apache.struts.action.ActionErrors; import org.apache.struts.action.ActionForm; import org.apache.struts.action....
suriya's user avatar
  • 13
0 votes
0 answers
240 views

How to get Array of Objects values from one Action Class to another Action Class in Struts 2?

I'm working an a project where I need the Array of Objects values from One Action Class to another. The flow goes something like this: Try1.java --> first.jsp --> Try2.java I'm not able to get ...
Shambhavi R's user avatar
1 vote
1 answer
332 views

repeated Freemarker warning message - Rendering tag out of Action scope

I have a Struts web application (core V2.5.30) running on Tomcat9 / Ubuntu server. The syslog file is getting numerous instances of error messages similar to the following. There are no directly ...
grover's user avatar
  • 13
1 vote
1 answer
316 views

How to implement the equivalent of html:cancel in Struts 2?

I'm migrating an application from Struts1 to Struts2. In Struts 1, we have <html:cancel> tag to bypass the form bean validate() method upon clicking. But in Struts 2, I'm not aware of any ...
Shambhavi R's user avatar
0 votes
0 answers
371 views

confirm() function is not working in Chrome & FireFox || document.depositNotifInfoForm deprecated

In a legacy java struts application, this code in the jsp page is working fine on Internet Explorer but not working in the Chrome & FireFox. <a id="alertSubmit" class="button&...
Varun Tiwari's user avatar
1 vote
1 answer
104 views

How to get source path and alternate text values from properties file in Struts2 for inserting images? In Struts1 altKey and srcKey were used for this

I would like to know what the replacement is for the altKey and srcKey attributes in the <html:img> tag in Struts 2. What I want to achieve is to be able to insert an image with source path from ...
Shambhavi R's user avatar
0 votes
1 answer
504 views

ValidateForm class in Struts 1.X

Using the ValidateForm from Struts 1, we will be able to validate the FORM used in the Struts, I went through number of links (https://cwe.mitre.org/data/definitions/103.html) still not able to figure ...
Harry's user avatar
  • 3,202

15 30 50 per page
1
2 3 4 5
72