This action cause an error.
I will write in struts.xml:
lt;struts
lt;constant name=struts.enable.DynamicMethodInvocation value=false /
lt;bean type=com.opensymphony.xwork2.TextProvider name=xwork1
class=karakas.struts.RicoTextProvider /
lt;bean
I have this actions in the same namespace:
action name=doThing class=doThingAction
resultexample1.jsp/result
/action
action name=add class= doThingAction method=add
result type=redirect-action name=success
param
I have two methods in action extending actionsupport in struts2.
WHen I login it should execute only the execute method.BUT
it also fires update another method which I want to call some other time.
THis is my struts.xml
**
action name=login class=login
result
i'm new in integrating JasperReports and Struts 2..my problem is its always
saying that my datasouce is
null so it displays a pdf file with all the labels in it without anything on
the detail part..my datasource
is an ArrayList of Personnel object, i name it reportData.
here is part of my code..
I have quite a elementary question regarding passing parameters to the
server.
In a form I have a parameter passed like:
s:hidden name=oldSop value=%{sop}/
where sop is of class I created.
When I execute the action I get:
No result defined for action myAction and result input
Does this have
Hello all,
I am currently working on a development project for a web system using
Struts 1.2.9. It is a fairly large system that has been under development
for more than three years now.
During the code-test-and-debug cycle we are forced to restart the server
several times, and we have noticed
Hi,
I Have the following requirement in my project and I am new to struts2.
I have to enter the data for Users: say I want to add 10 usernames from
UI and I want to store all this usernames in database.
For EX: my UI Looks like this
USERNAME:
Hello,im having difficulties migrating my 1.1 struts app from websphere 5.1 to
websphere 6.1.in short, the same difficulties as this post:
http://issues.apache.org/struts/browse/TILES-201 Im using RAD
7.0.0.4.Everything works fine on WAS 5.1. Migrating to WAS 6.1 works fine, for
Hi,
I get this bean in my action in order to modify it in my jsp:
Catalogue {
Long id;
String title;
String description;
CollectionProduit produits
}
In this jsp, I have two fieds: title and description, and a table of Produit
with checkboxes.
These ones enable the user to remove the products
First of all it is not the same problem as the TILES-201 issue.
From your stacktrace I suppose that you are trying to render the
.welcomeat tiles definition. Check if:
- you have this definition in your tiles-defs.xml
- Tiles loads correctly the Tiles definition files at startup (i.e. check
the
The problem I'm having is getting validation to run when the wildcard
mapped method is specified in the submit tag method parameter and not in
the form tag action parameter (action-method).
Everything works fine when I set the form action param to specify the
action and method.
If the method
--- wild_oscar [EMAIL PROTECTED] wrote:
In a form I have a parameter passed like:
s:hidden name=oldSop value=%{sop}/
where sop is of class I created.
When I execute the action I get:
No result defined for action myAction and result
input
Does this have to do with the fact that the
S2 will handle indexed form names properly, so you
could have an action property defined as, say, List
usernames and name the form elements username[0]
etc.
http://struts.apache.org/2.x/docs/type-conversion.html
may help, towards the bottom.
d.
--- Rajagopal_Yendluri [EMAIL PROTECTED]
wrote:
1.It is defined as follows, which works fine i was 5.1.
definition name='.welcome' path='/layouts/mainLayout.jsp'
put name='title' value='' /
put name='header' value='/header.jsp'/
put name='headertitle' value='/header_title.jsp'/
put name='menu' value='/welcome_menu.jsp' /
put name='body'
yup, the href is what counts (or the action in the enclosing form if
the submit doesn't have an href)
musachy
On 10/24/07, Dave Newton [EMAIL PROTECTED] wrote:
Howdy,
If you have an s:submit.../ with method='' or name='method:foo'
attributes and set theme='ajax' is the method
Yes I´m sure, I only changed the Jars and replaced the contextRelative
attribute in my JSPs and in my Struts config.
Meanwhile I wrote my own ForwardAction with copy paste and changed the
following code:
Current code in ForwardAction:
ActionForward retVal = new ActionForward(path);
My code:
Okay, thanks.
New project will be in 2.1 anyway, I think, which
gives me a few more options :)
--- Musachy Barroso [EMAIL PROTECTED] wrote:
yup, the href is what counts (or the action in the
enclosing form if
the submit doesn't have an href)
musachy
On 10/24/07, Dave Newton [EMAIL
I think the problem might be that there may not be a way to configure a
different TextProvider.
Consider the object factory example, in this case guice :
struts
bean type=com.opensymphony.xwork2.ObjectFactory
name=guice
class=com.google.inject.struts2.GuiceObjectFactory/
A failed type conversion will incur a field error as well.
wild_oscar wrote:
newton.dave wrote:
--- wild_oscar [EMAIL PROTECTED] wrote:
In a form I have a parameter passed like:
s:hidden name=oldSop value=%{sop}/
where sop is of class I created.
When I execute the action
I want to implement an audit trail in my application. Basically, I want to
record every database change, in the form previous value, new value, who
changed it, when.
I want to debate with you the best strategy in terms of minimization of data
transfer between the browser and the server and
Depending on the DB you can implement this using triggers and log your audit
trail directly in the DB itself.
-Rod
-Original Message-
From: wild_oscar [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 25, 2007 14:36
To: user@struts.apache.org
Subject: Audit trail - implementation
2007/10/25, Hans Hedung [EMAIL PROTECTED]:
2.
No you're absolutely correct about that.
In the was 5.1 log I can read
[2007-10-25 16:53:54:616 CEST] 3dff516d WebGroup I SRVE0180I:
[StoreMasterWeb.war] [/StoreMasterWeb] [Servlet.LOG]: action: init
[2007-10-25 16:53:55:304 CEST] 3dff516d
As a matter of fact, I have implemented an audit trail solution with triggers
in the past. I am trying to think of an alternative in the business layer
now, although implementing it directly in the database is an option if I
find this approach to be too troublesome.
Rod Bollinger wrote:
We just did the very same thing. Here is how we did it
We are using JPA/Toplink for our database layer, so our
implementation is highly dependent on that.
We then used an approach based on this blog entry:
http://tapestryofthoughts.blogspot.com/2007/05/glassfish-and-audit-
logging.html
Hi,
Junit is unable to run getText() and retrieve text resources from a package.xml
file, because it appears to be a functionality that is provided by the
ActionSupport super class. Is there a way to setup my Junit test case to be
able to run that code? I've setup my test case to use a mock
I have a requirement, where on each page load, I hit some Servlet or Action
(Can be modified accordingly). Should i use a IncludeAction here or there is
a better or elegant way to achieve this?
H.
--
View this message in context:
Is there a logical explanation for this struts-plugin.xml file to declare the
stand alone interceptors autowiring and sessionAutowiring which are already
declared identically in struts-default.xml? I am either missing something
fundamental here or 19 hours is too long to work without ceasing.
Good Day,
I am trying to use the 2.1.0 build of the dojo plug-in and I am getting an
InvalidReferenceException. The issue
https://issues.apache.org/struts/browse/WW-1757 helped to resolve the issue
on the 2.0.9 build but now even the @s.dateTimePicker / or
@s.datetimepicker / does not seem to
Good Day,
I got the following exception when using the nightly build of the 26 Oct
2007 of core and the latest dojo plugins build from svn. I put the
parseContent in the @s.head parseContent=false and it seems to have
fixed the problem. The documentation seemed to point that the parseContent
Hi,
I'm trying to setup action mappings for URLs similar to the examples below:
1. GET: /states= action = StatesController, method=index()
2. GET: /states/ca = action = StatesController, method=show(),
params=[id=ca]
3a. GET: /states/ca/cities/sacramento = action = StatesController,
Hi Mark,
No such problem encountered on
https://svn.apache.org/repos/asf/struts/struts2/trunk @ rev 588199, last
changed 2007-10-25 21:02:52 +1000
although I'm using JSP.
Just a quick check for a small mistake though: you are using the head
tag from /struts-dojo-tags rather than /struts-tags
Hi Mark,
I'm not sure that it helps, but I'm able to get the datetimepicker to
work (in JSP) using
https://svn.apache.org/repos/asf/struts/struts2/trunk @ rev 588199, last
changed 2007-10-25 21:02:52 +1000
The only new issue I did encounter was due to the requirement to enable
non-US
The class com.opensymphony.xwork2.config.providers.XmlConfigurationProvider
in method register(...) use this logic for checking
if (containerBuilder.contains(ctype, name)) {
Location loc =
LocationUtils.getLocation(loadedBeans.get(ctype.getName() + name));
if
33 matches
Mail list logo