The Apache Struts web framework is a free open-source solution for creating Java web applications. This framework has reached End Of Life status as of 2013-04-05.
0
votes
1answer
14 views
Execute Java Code based on list of checkboxes in HTML
I have written two methods that will perform different functions based on the parameter passed to it. In this case, it is an array of checkbox values (Strings). On my .JSP I have said list of ...
-1
votes
1answer
18 views
window.location not working with IE
The application is created with struts 1.3:
Deployment details:
JBOSS 7.1.1 final
Windows 2012 Server
Oracle JDK 1.7
We have done fronting JBoss with Apache
JavaScript:
function ...
0
votes
1answer
18 views
integrating JTable with STRUTS HIBERNATE
i'm trying to integrate JTable to display rows from the POSTGRE SQL, i use STRUTS and HIBERNATE to add, update, list and delete DATA from the database.
i have succeded to add rows to the database but ...
-2
votes
0answers
8 views
InvalidPathException :No action config found for the specified url
SEVERE: Servlet.service() for servlet action threw exception
org.apache.struts.chain.commands.InvalidPathException: No action config found for the specified url.
at ...
0
votes
1answer
18 views
Importing data from .xls and .xlsx (Struts and Spring)
I am doing a excel data import and reading through the file. The file format can be .xls or .xlsx.
I have seen the different methods for doing so with both files.
For .xls,
HSSFWorkbook workbook = ...
0
votes
4answers
29 views
How to remove '.do' prefix from url in Struts1?
I have written a web-application in struts 1 framework ,Everything works fine but on form submission when user is forwarded to next page URL which is shown is actionname.do.I don't want this struts 1 ...
-3
votes
1answer
27 views
JasperReports in Struts2: Where should I create jrxml file [on hold]
I am new to JasperReports. I am using Netbean IDE and using sturts2 framework and i have added iReport plugin. Now I have confusion at File path of jrxml that
Where should I create jrxml file?
...
-1
votes
3answers
25 views
display raw xml in popup window using java when a link is clicked
I am using struts 1.x and jsp as view to display.
Want to display the entire xml file as it is in a new pop-up window when a link is clicked in jsp. So far I have managed to open the pop-up window ...
0
votes
0answers
19 views
RestTemplate equivalent for struts2
In spring mvc there's is a class called RestTemplate that you can use to send rest requests in your server side code. See link
http://spring.io/blog/2009/03/27/rest-in-spring-3-resttemplate
Does ...
1
vote
2answers
58 views
HTTP Status 404 - No result defined for action and result input : add <result type=“input”/> prevents submit
I have a form in which I have :
JSP :
<form name="xyz" action="upload">
<input type="file" name="upload"/>
<input type="submit" name="submit" value="submit"/>
</form>
...
0
votes
4answers
29 views
How to access my sql database with android application?
I am new to struts and android. We have developed a struts application. Now, we are looking to develop some modules in android where same functionalities to be developed. So, it requires a database(my ...
-1
votes
2answers
20 views
fetch the value from any one of dropdown list from two dropdown list [closed]
I have two dropdown lists to select value from . What I want is that when the user selects a value from the any one of the list, he cannot select a value from the another list.
-1
votes
0answers
41 views
request getParameter returns null value in IE but fine in other browsers [closed]
Hope someone can help me out on this:
I'm working with struts and have a JSP page which includes a JS file with all javascript coding.
In the JS page i have this:
var param = [{ "name": ...
0
votes
2answers
36 views
No getter method for property value of bean error with nested logic iterate tags
I am trying to iterate an ArrayList "sampleBeanList" in my jsp using logic:iterate. Each SampleBean object contains a variable ArrayList "subBeanList" in it. I am using another logic:iterate tag ...
-1
votes
2answers
14 views
How to use hashmap with display tags in struts 1.x? [closed]
I have created and loaded a map in server side. But I want to display it in client side. I want to create a report. So I am using display tag. I am looking an example to display the hashmap in jsp. I ...
0
votes
0answers
24 views
running struts application in tomcat 7 change url by itself, add ?x
When i am running an application in jDeveloper10.0.3.0 using oCj4 server it run well but when running same application in tomcat7 server after deployment of .war file, its url get changed and it add ...
0
votes
1answer
16 views
I18N properties file location in Struts
I have read a lot on this topic and concluded something is messed up either in my struts-config.xml or some location. I bet is the location of my file.
So I have a file called ...
-1
votes
0answers
35 views
Getting the value of an item in a (struts) drop-down list using javascript
I'm trying to get the value of an item in a drop-down list using javascript.
I have used Struts to create an application. The code looks something like this
<form action="/factsheet" ...
-1
votes
0answers
8 views
ValueList pagination conditional URL
I'm using ValueList to pagination.
<vlh:root value="list" url="SearchCriteria.do?" includeParameters="ActionType|sortHotelBy">
My requirement is that I need to change the URL based on a ...
0
votes
0answers
7 views
De-coupling spring mvc controllers from the next controller or view (best practices)
In spring mvc, how are you guys decoupling the knowledge of the next view/controller from you controllers?
I understand that it isn't so bad for a controller who's purpose it is to prepare data for a ...
0
votes
0answers
32 views
Losing session attributes in a particular JSP
I'm working on a Struts 1 application. I'm setting some session attributes in the Action class. There is a JSP file, the link is below. When a form gets submitted from this jsp, or a another action ...
0
votes
0answers
25 views
dispalytag table align vertically
<table width="100%" >
<tr>
<td>
<%
int rowCount1 = 0;
%>
<display:table id="quotationCreationDetss" ...
1
vote
1answer
27 views
How to send a parameter with an action URL from struts tag in a table
I am populating some values in tag in struts 1 in a table.Now i want to send a value of that table with a URL which is a hyperlink of that table.i am able to call the action but i can not send the ...
-1
votes
1answer
94 views
Reset password implementation in Struts
How to append a class variable having some dynamic value(action class) to a href tag so as to send a password reset link using java mail api.
My send method is :
public String sendEmail() {
try ...
0
votes
1answer
32 views
javax.servlet.jsp.JspException: No getter method for property xxx of bean org.apache.struts.taglib.html.BEAN
I search for long time to this issue.But still i didn't get the solution.Kindly help me to this problem.
I have one JSP file and using struts for my application.When i try to load the page in ...
1
vote
3answers
52 views
ServletOutputStream byte array to pdf corrupt pdf
I use tomcat 7.0.53, Struts 1.2.7, Spring 3.1.1. This is my code:
File file = new File("C:\\pdf\\" + report.getFileName());
FileOutputStream fos = new FileOutputStream(file);
...
-2
votes
1answer
23 views
Null value in json whereas retrieving all the values in log in struts,spring and hibernate
I am using Struts,Spring and Hibernate Integration.I have written a method in DAO implementation to return list object from db.When I trigger the action to call the DAO ,I get correct values in log ...
-1
votes
0answers
23 views
How to execute Struts Action from Java class
I am new to struts framework and actually I am android developer and I want to develop few web services which can communicate with struts web project to fetch data on mobile.
I create web service ...
0
votes
1answer
22 views
how to show form data in struts 1
I need to show data from a form object when a page loads. I call the action execute method which loads and set the data in form object. That action execute method sets "success" in
...
1
vote
1answer
41 views
How to access ActionErrors programmatically?
I know how to create ActionErrors, add some messages and display the messages in the JSP page.
I think ActionError is like a list of error message. Here is the method to threat error that my system ...
0
votes
0answers
29 views
the background doesn't change for optionsCollection tag
I have a <html:optionsCollection property="colorcodeList" style="${test1}"/>
I want the background of each item change. for example if test1 is pink, it shows pink background. If it is red, it ...
1
vote
2answers
56 views
Is it possible to define a varible in java and use that in jsp code?
I have a drop down like below:
<html:select styleId="colorCodeId" property="msSpec.colorcodeId" name="Form" styleClass="form-control">
<option ...
-1
votes
0answers
22 views
How to automatically close records in Struts application
I need to add a feature in an existing Struts 1.3 application (database is SQL Server) wherein records added to the application should be automatically closed after 3 months.
In the application an ...
-2
votes
0answers
33 views
Opening a jsp which uses JSTL in a struts project
I have a JSP file which uses JSTL to query a database and display some information. I have a link to this JSTL page from a different JSP file. When I click the link, it gives a "No suitable driver ...
1
vote
1answer
34 views
Handle JSON Array posted from Ajax in Struts 1.3
I build the JSON Object like this:
var key = //some calculated key
var key = //some calculated value
var list = {item: []};
list.item.push({
"key" : key,
"value" : value
});
Then I ...
0
votes
1answer
22 views
Interchanging the columns in HTML page based on pre-selected configuration in database
I have an application where I need to interchange columns based on the configuration done in some other section. Like for example I have a Listing screen where we show all the data related to a ...
1
vote
1answer
55 views
Struts2 and Tiles3 NoSuchMethodError exception at CompleteAutoloadTilesListener
I want to use Tiles3 with Strut2 so I'm using struts2-tiles3-plugin. I've defined the listener in web.xml and the result-type in struts.xml. When I deploy the war Tomcat returns a ...
-2
votes
0answers
49 views
Add an item in list dynamically with logic:iterate and pass whole list in Action
I could find many examples of logic:iterate to display and modify a list. But, couldn't find one of adding items in the list dynamically. List is being displayed and modified properly but, I am not ...
0
votes
0answers
20 views
Not able to find bean from session scope- to fix veracode trust boundary flaw
I was getting a trust boundary violation flaw from veracode tool for setting the httpsession attribute. The flaw was on the calling setattribute method line.
HttpSession httpSession = ...
0
votes
0answers
18 views
Struts 1 TextareaTag equivalent to TextTag formatValue(Object obj) value
Within my app, I have some custom Java formatters that format data retrieved from a database which may cause display issues. Notably changing characters like ' to the & #39;
As it is a Struts 1 ...
-1
votes
1answer
37 views
setAttribute() and getParameter(), is this right?
I'm working on an Struts1 project where I found that in a place, a value is set using request.setAttribute("") and in another place, that value is retrieved using request.getParameter(""). Is this ...
0
votes
0answers
32 views
unable to convert java web module to struts
I have a JSP and servlet module, with following architecture:
Welcome Page(Index page): SOPage.jsp
Servlet: LoadAction.java
Mapping of "SOPage.jsp" & "LoadAction" in "web.xml"
web.xml:
...
0
votes
2answers
37 views
Spring request url action class mapping
In spring how we map url to action class and function name.
Is it done through Dispatcherservlet.xml file. As i am a newbie in spring and i have sued struts and webwork before . in that we are ...
1
vote
2answers
29 views
Struts <logic:notEmpty> not working or bean property not being written properly to JSP?
I'm beginning on bug fixes for a program with which I have little familiarity. I've changed a section of code on one of the JSPs. I need it to print names with either of the two following formats ...
0
votes
0answers
31 views
Runtime.getRuntime().exec(cmd) hanging from java
Please, help me out this problem.
When I run Runtime.getRuntime().exec(cmd); from Java, the Java process itself is hanged without continue further process. I am setting heap size 1028mb to execute ...
1
vote
1answer
36 views
Struts 1: Entry ActionForm inputs from any Action class
suppose i want to create form with Struts, so my struts-config will like this:
<form-bean name="myForm" type="com.MyForm" />
<action path="/entryyourinputs"
type="com.MyAction" ...
0
votes
1answer
25 views
How would I write a bean to a JSP without it automatically adding a space character after whatever it writes?
I want to format a name as follows:
First M. Last
The issue is that bean:write automatically puts a space after whatever it writes, so I end up with
First M . Last
Is there anything I can ...
0
votes
0answers
37 views
Textarea display of special characters. Struts 1
I'm having problems displaying some special characters within my Struts 1 application, specifically to Textarea fields, NOT normal Text fields. I pull out a bunch of text from a database, some of ...
-2
votes
1answer
60 views
java.lang.NoSuchMethodError: org.apache.tiles.TilesException: method <init>(Ljava/lang/String;Ljava/lang/Throwable;)V not found
Getting above error when starting my struts application.
The following is the export order.
/WEB-INF/src
/WEB-INF/lib/freemarker-2.3.16.jar
/WEB-INF/lib/javassist-3.7.ga.jar
...
-1
votes
1answer
16 views
I want maintain main application session while using editor window with session limit
I have a application with session length set to 15 minutes in web.xml.
I am using RTeditor on one screen, in rteditor the user can enter data continuously for 30 minutes but main application session ...