RE: [S2] Datetimepicker in Struts 2.1.0

2007-10-25 Thread Rajagopal_Yendluri
Hi ... I am not able to use the datefimepicker, when I use the following code: Only Label is displaying no... date and time in JSP.. Regards, Rajagopal -Original Message- From: Jeromy Evans [mailto:[EMAIL PROTECTED] Sent: Friday, October 26, 2007 10:36 AM

Re: Highlighting the invalid field

2007-10-25 Thread Jeromy Evans
Hi Ashish, If you're using Struts 2, and the xhtml/css_xhtml theme, the template for each field in the form includes "controlheader-core.ft" that provides the logic to include the html to report field errors. Here is an extract: <#assign hasFieldErrors = parameters.name?exists && fieldErrors?e

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

2007-10-25 Thread Igor Vlasov
The main goal: I want to get i18n strings from properties files in UTF-8 encoding. The secondary goal: Load current locale setting from JSTL config variables like Config.FMT_LOCALIZATION_CONTEXT and its locale variable value Thus I will use jstl-fmt tags and strust i18n support TOGETHER :

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

2007-10-25 Thread Jeromy Evans
Don Brown wrote: You are correct, #3 isn't possible right now with the rest plugin, however, it is certainly on the near-term roadmap. What is needed is the ability to define wildcards in the namespace, also known as url templates. For example, you could do something like @Namespace("/states/{s

Re: [S2] Problem while retrieving data from JSP

2007-10-25 Thread Igor Vlasov
I think you must put the ID's in hidden fields and then they will fill up with id's from your collection on jsp page In save method wou will analyse the recieved data. kaouki wrote: > > Hi, > I get this bean in my action in order to modify it in my jsp: > Catalogue { > Long id; > String title

Highlighting the invalid field

2007-10-25 Thread ashish agarwal
Hi All, I am developing a form using jsp. If validation fails then I want those fields to be highlighted . I am able to print error message on top but not able to highlight the text( for example UserName(if it contains less characters)). Please somebody suggest some solution for this. Thanks A

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

2007-10-25 Thread Don Brown
Currently, the TextProvider impl is not pluggable. Note that Action classes themselves can implement TextProvider (and usually do via ActionSupport), so they can customize it all they need. What is your usecase for having your own TextProvider? That class is only used in a few places, so perhaps

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

2007-10-25 Thread Don Brown
You are correct, #3 isn't possible right now with the rest plugin, however, it is certainly on the near-term roadmap. What is needed is the ability to define wildcards in the namespace, also known as url templates. For example, you could do something like @Namespace("/states/{state}") on your Cit

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 (throwExceptionO

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 locale

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

[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,

[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 parseConten

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. Sc

[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: http://www.nabble.com/-S-1.3-IncludeAction-or-any-other-Alternat

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 h

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

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: > > Dep

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 CE

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 strateg

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 serv

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: >>> >>> >>> >>> where sop is of class I created. >>> >>> When I execute the action I g

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 : What this does is create a bean provider with a given name of that type. The constant portion is actually the configuration

Re: [S2] [S2.0.9] 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 <

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] - Types in form parameters

2007-10-25 Thread wild_oscar
newton.dave wrote: > > --- wild_oscar <[EMAIL PROTECTED]> wrote: >> In a form I have a parameter passed like: >> >> >> >> 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 wi

Re: [S2] [S2.0.9] 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 with "method=''" or "name='method:foo'" > attributes and set "theme='ajax'" is the method attribute/nam

RE: struts-tiles migration issues

2007-10-25 Thread Hans Hedung
1.It is defined as follows, which works fine i was 5.1. 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

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]> wrot

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: > > > > 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 variable > is of a

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 i

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

[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; Collection 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 from the ca

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 start

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: textbo

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 th

[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: 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 var

[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..

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 ** login.jsp login.jsp /pages/main.jsp

struts2 actionerror & actionmessage

2007-10-25 Thread cuong.van.truong
I have this actions in the same namespace: example1.jsp doThing In a jsp file a form have a action="add" and in the action class(doThingAction.java) I add a message to actionmessage.