Re: [S2] Change struts-default.xml content

2007-10-25 Thread Igor Vlasov
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

struts2 actionerror actionmessage

2007-10-25 Thread cuong.van.truong
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

Re: Why does update action fire on load

2007-10-25 Thread zul;jami
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

[S2] JasperReports and Struts2 DataSource was null error

2007-10-25 Thread carmi_cd
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..

[S2] - Types in form parameters

2007-10-25 Thread wild_oscar
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

XML configuration and performance

2007-10-25 Thread Tomás Pollak
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

Multiple Textboxes with same name.

2007-10-25 Thread Rajagopal_Yendluri
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:

struts-tiles migration issues

2007-10-25 Thread Hans Hedung
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

[S2] Problem while retrieving data from JSP

2007-10-25 Thread kaouki
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

Re: struts-tiles migration issues

2007-10-25 Thread Antonio Petrelli
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

struts2 validation - wildcard mappings and the submit tag method parameter

2007-10-25 Thread Lindell, Andrew
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

Re: [S2] - Types in form parameters

2007-10-25 Thread Dave Newton
--- 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

Re: Multiple Textboxes with same name.

2007-10-25 Thread Dave Newton
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:

RE: struts-tiles migration issues

2007-10-25 Thread Hans Hedung
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'

Re: [S2] [S2.0.9] s:submit method=.../ v. Ajax

2007-10-25 Thread Musachy Barroso
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

RE: Problem with ForwardAction after update from Struts 1.2.9 to 1.3.8

2007-10-25 Thread Samuel Fleischle
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:

Re: [S2] [S2.0.9] s:submit method=.../ v. Ajax

2007-10-25 Thread Dave Newton
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

Re: [S2] Change struts-default.xml content

2007-10-25 Thread cilquirm
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/

Re: [S2] - Types in form parameters

2007-10-25 Thread cilquirm
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

Audit trail - implementation strategies

2007-10-25 Thread wild_oscar
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

RE: Audit trail - implementation strategies

2007-10-25 Thread Rod Bollinger
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

Re: struts-tiles migration issues

2007-10-25 Thread Antonio Petrelli
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

RE: Audit trail - implementation strategies

2007-10-25 Thread wild_oscar
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:

Re: Audit trail - implementation strategies

2007-10-25 Thread Brian Trzupek
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

unit testsing struts 2 code that contains resource calls like getText()

2007-10-25 Thread Session A Mwamufiya
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

[S 1.3]IncludeAction or any other Alternative?

2007-10-25 Thread enthucoder
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:

struts2-spring-plugin-2.0.9.jar

2007-10-25 Thread stanlick
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.

[S2] Datetimepicker in Struts 2.1.0

2007-10-25 Thread Mark P Ashworth
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

[S2] Head parseContent in Struts 2.1.0

2007-10-25 Thread Mark P Ashworth
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

[S2.1] url action mapping problem (restful)

2007-10-25 Thread Jeromy Evans
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,

Re: [S2] Head parseContent in Struts 2.1.0

2007-10-25 Thread Jeromy Evans
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

Re: [S2] Datetimepicker in Struts 2.1.0

2007-10-25 Thread Jeromy Evans
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

Re: [S2] Change struts-default.xml content

2007-10-25 Thread Igor Vlasov
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