Apache Struts 2 is an elegant, extensible framework for creating enterprise-ready Java web applications.
-1
votes
0answers
10 views
What is the return code of a Interceptors
I am a new bud to struts2. I had a question about the Interceptor return code.
1) what is the return type of a interceptor/custom interceptor? Will it be only success or what happen if i return ...
-3
votes
0answers
8 views
How to display tooltip for a stacked barchart3D in a Webpage(a jsp page) created using Jfreechart in Struts2
I am using jfree Chart to create a stackedbarchart3d and display that chart in webpage using
<img src="<html:url action="chart"/>"/>
in my Dashboard.jsp
-1
votes
0answers
13 views
sj:datepicker of Struts2 change value after submiting form
I have sj:datepicker like below
<sj:datepicker id="start_date_picker" name="fromDate"style="width: 80px"
value="%{fromDate}" displayFormat="mm/dd/yy" maxlength="10" />
I input (select ...
-1
votes
2answers
41 views
How to use jQuery ajax and load at button click?
I need to use jQuery ajax and load at single button click. Because I'm calling the action class to get data from DB and display those data into datatable.
jQuery("#search").click(function(){
...
0
votes
0answers
17 views
How to show a property from an interceptor to JSP?
I want to show some data from the current user on my header (a jsp fragment).
I'm using for now the spring security property to get the username, but that user object has a "person" object with ...
-1
votes
0answers
17 views
Issues upgrading from Struts 2.1.8 to 2.3.14.3
We had to put out a bit of a fire and do an emergency upgrade from Struts 2.1.8 to 2.3.14.3. What are some common upgrade issues that one has upgrading these versions of Struts? I'm really hoping we ...
-1
votes
0answers
16 views
error running struts 2 application on weblogic 10.3.5
I need to configure a mavenized struts 2 application to run on weblogic 10.3.5. The following is the error I get. The maven project works fine without struts but as soon as I include struts2 jar, the ...
-1
votes
0answers
15 views
Struts2 upload file by POSTing
So I'm trying to integrate wami-recorder into my webapp. The webapp currently is built using the Struts2 framework.
There is an example on StackOverflow here on how to integrate wami-recorder into a ...
0
votes
1answer
26 views
Jquery Error - While calling struts action
I'm calling struts action from jquery like below code.
jQuery( "#dialog-form" ).dialog({
autoOpen: false,
height: 300,
width: 350,
modal: true,
buttons : {
"Search" : ...
0
votes
1answer
20 views
Difference between struts URL patterns types?
What is the difference struts2 URL pattern below types?
<url-pattern>*.do</url-pattern>
<url-pattern>/struts/*</url-pattern> and <url-pattern>/*</url-pattern> ...
0
votes
1answer
22 views
jQuery grid for showing the database table details
I am trying to show the table details,i am able to create a table with that,but now i want to do that using jquery grid. jason object that created gives value ...
-3
votes
0answers
18 views
sort is not working in jquery for struts tag
Tag is considering price data as string so sort is not working is there a way to represent that string as numeric .
<td>
$<s:text name="format.number"><s:param name="value" ...
-1
votes
1answer
25 views
I need to browse ONLY folder in jsp - Struts 2.0 [closed]
I need to browse ONLY folder(not) in jsp using struts taglib.
When i am using <s:file>, its taking till the file. But i need to select only FOLDER.
If struts implementation is not there, is ...
-1
votes
1answer
30 views
Configure Hibernate C3P0 Connection Pooling
I'm stumbled upon a problem while developing a Web Application based on Struts2 with Spring and Hibernate.
When I refresh the site a few times, for example 2-4 times, Hibernate is showing up an ...
0
votes
0answers
22 views
struts-jquery-tags not working if use jQuery externally
I my using struts-jquery-tags for datepicker but problem is that when i am using external jQuery with it for my form to make border then this datepicker is not working.
and when I am removing ...
1
vote
1answer
35 views
How to make a struts2 project an executable Application
I have developed a struts2 Project using Apache server and MySQL datebase.
Is it possible to make this application an executable application so that i do not need to give JDK, Apache and MySQL ...
0
votes
1answer
36 views
Struts2 populating form data results in array for Map<String, Object>
Action class
public class ProductAction extends ActionSupport implements Preparable {
private Document product;
}
Model
public class Document {
private Map<String, Object> ...
0
votes
0answers
19 views
getting browser back link using struts2 and sj tag
How to get browser back link using Struts2 sj tags...
i already tried this code....
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
$(document).ready(function() {
...
0
votes
1answer
40 views
how to iterate the session in jsp page?
how to iterate the session and keep the every submit value in same page till the session end?
<html>
<body>
<s:form action="verify">
<s:textfield name="stuname" label="Enter ...
0
votes
0answers
27 views
Form submit not working- Struts 2
I am building an application with struts 2 hibernate spring 3 with mysql as database. When i am trying to submit the form(with 2 file uploads) its not hitting the action at all. If I remove both the ...
0
votes
1answer
31 views
Struts2 dojo submit button render issue
I have struts2 with dojo submit button(ajax call) in dialog window.I want to retain the popup window after submit the button.but its not retain the same form.
<div id="dialog-form">
<form ...
-2
votes
3answers
36 views
session maintain using struts2 and hibernate?
I need to know how to maintain session for one form and multiple input[Name,City,Country] using Struts2 and finally data will stored to database using hibernate.
This form have two buttons:
add ...
0
votes
0answers
19 views
Issue when trying to deploy a Struts2 Spring 3 web application to Weblogic 10.3.5 from eclipse
When I try to deploy a simple (Hello World) application from eclipse to Weblogic 10.3.5, I get the following error:
<Jun 11, 2013 9:28:43 PM EDT> <Error> ...
0
votes
0answers
29 views
How to receive date from datetimepicker and save that into database?
I need to receive a date from user, and save that in database. I am using the following datetimepicker to receive the date, I receive the date as following,
It runs into following exception
...
-2
votes
0answers
50 views
Jquery error : TypeError: jQuery(…).dialog is not a function
I'm trying use ajax submit button in struts2.So downloaded the struts2-jquery-plugin.jar to implement ajax function.But its giving me TypeError: jQuery(...).dialog is not a function
Before its was ...
0
votes
0answers
21 views
can we load jsp from server but js and css through local app in phonegap
We have a application which is based on struts2.
We are planning to create iphone & android app for the same.
While doing so I saw phonegap as best cross development tool.
Want to know whether ...
1
vote
0answers
23 views
How can i build a dynamic scaffolding in a jsp depending the subclass of an entity?
Well,
I have the Vehicle Class,
And I have a car, a bike, a motorcycle, and other classes with inheritance, and the administrator of vehicles (CRUD).
When I search all the vehicles, the ...
0
votes
1answer
49 views
Identifying each field in Multiple file upload
When trying to upload multiple files with Struts2 using ArrayList, how to identify each field? For example, if I have two file fields, File 1 and File 2 and on the client side, I choose to upload only ...
0
votes
0answers
17 views
Need to create xml file using bean class in struts 2.0
I have to generate an xml file as follows from struts 2.0 framework:
<?xml version = "1.0" encoding="UTF-8"?>
<data xmlns="urn:nonstandard:data" ...
-1
votes
1answer
22 views
Class not found with Struts2 and Netbeans
I'm using Netbeans 7.1, and i try to include Struts2.3.14.3 in my J2EE project.
I tried to :
put the .jars in the WEB-INF/lib path
link the .jars in the libraries "folder" of the project in ...
0
votes
0answers
22 views
OGNL exception breaking the normal flow when AOP is in place
I am working on Struts2 and spring integrated project.
I am getting OGNL exception as: -
Error setting expression 'lookupLicProductSKU.udiPID' with value '[Ljava.lang.String;@1feae0f'
...
-1
votes
0answers
19 views
How to play multiple videos in embed tag
I am developing a Struts 2 web application, in this I need to play multiple video one by one on page. For displaying video, I am using embed tag.
<embed class="videopanel" src="C:\Video0129.3gp" ...
1
vote
1answer
29 views
jquery not working in struts 2.0 jsp page
I am trying to disable a <s:textfield>
When I am using the below code its working..
document.getElementById("Animal.dog").setAttribute("disabled", "true");
But if I am using
...
1
vote
1answer
31 views
Server returned http response code 407 for url: "http://struts.apache.org/dtds/struts-2.1.7.dtd
I am new to Struts2. I was trying to execute a simple Struts2 program.
Apparently my struts.xml is not invoking the action.
It shows a warning Server returned http response code 407 for url: ...
0
votes
1answer
77 views
How to maintain popup window after submit action form?
I have page which created by struts2 and in that page have link to open popup window which created using jquery UI dialog model form.
i have created the another form in same jsp page and have action ...
0
votes
0answers
20 views
struts2 jfreechart plugin not running exectue method on action
I'm trying to create a action that creates a chart on a webpage via calling the action with
<img src=" <s:url action='generateChart' />" />
and that fires and calls the method defined ...
-1
votes
1answer
28 views
How to draw jquery bar chart
i have struts2 project where i have values in database and i successfully retrieved those values from my database to the jsp table. Now i want to show those values in the "Jquery bar chart" instead of ...
1
vote
2answers
49 views
Can we return any class object to Interceptor from action class
Can we return any object type to an interceptor from action class methods instead of returning a string, then return a string from the interceptor to identify the required result?
0
votes
2answers
36 views
Migration from Tomcat 7 to JBoss7.1
Previously I was working on an application wich is running on tomcat7 server but now I wan to run it on JBoss7.1 Server . But when I am trying to run it. It is showing me this kind of error . I am not ...
1
vote
0answers
22 views
Displaytag in struts2 checked columns dissappear when changing pages
i have this problem with displaytag...when i check some rows in the table and after go in another page for checking others the checked elements of the previous page disappear.
If i return to the ...
0
votes
1answer
24 views
resteasy not run on tomcat response error code 400 bad request
I'm beginner. I have issue with resteasy and tomcat. My resteasy application run normal on jetty but deploy on tomcat response error code 400 and can not run service.
Here my code:
web.xml :
...
0
votes
0answers
19 views
specifying url pattern for a filter to guard struts 2 actions not working
I wrote a login filter to ensure that certain jsps and actions can only be accessed by logged in users. In Web.xml. I specify the url pattern for these jsps and actions, like this:
...
1
vote
1answer
73 views
How to maintain the session using Struts2 and hibernate?
I need to know how to maintain session for one form and multiple input[Name,City,Country] using Struts2 and finally data will stored to database using hibernate.
This form have two buttons:
add ...
-1
votes
1answer
23 views
Struts 2 Action Error — Doesn't proceed to the next page
These are the files that I have created along with the AccessDenied.jsp and HelloWorld.jsp
but the code doesnt run please help....
package com.Struts;
import com.opensymphony.xwork2.ActionSupport;
...
0
votes
0answers
22 views
How to integrate Struts2 with Thymeleaf?
Does anybody know how to integrate Struts2 with Thymeleaf? I could not find any tutorial regarding integrating Struts2 and Thymeleaf.
1
vote
1answer
25 views
how to compare a single character from a url request parameter in struts2 jsp
I am reading the url parameter which has a single character. It will either be Y or N. I have to write a condition to check if it Y or N and do something accordingly. This is what I wrote but does not ...
2
votes
2answers
33 views
Struts 2 access request.isUserInRole
I'm developing a small Java EE application using Struts 2 and Rest Services over a JBoss AS7 server.
I'm using FORM auth for REST and Web content, and I don't have any problem with REST, but on the ...
0
votes
0answers
34 views
Struts2 - Scope Interceptor not setting property
I am trying to implement Scope Interceptor, let me explain my app.
I want to store user information from DB into session from login window, so i can validate logged user across application.
Yes i ...
0
votes
1answer
12 views
Struts <s:if tag does not evaluate while using information from getters
Trying to evaluate the following but not seem to work
<s:set name="infoType" value='%{"info.aero.aeroType"}' />
<s:if test='%{#infoType == "A"}'>
<span> got it </span>
...
1
vote
1answer
22 views
Validation exception in struts2 action
I have some Action class and try to add a form with validation. But every time when I tried to do it I have got an exception.
Action class code:
public void validate() {
if (name == null || ...