Re: 2.3.20 Bug with s:action or s:select tag

2014-12-16 Thread Roger Varley
No - that marks it for auto-scanning. In the meantime I've gone back to 2.3.16.1 and everything is working again :( Regards On 16 December 2014 at 18:00, Lukasz Lenart wrote: > > 2014-12-16 15:23 GMT+01:00 Roger Varley : > > import org.springframework.stereotype.Service;

Re: 2.3.20 Bug with s:action or s:select tag

2014-12-16 Thread Roger Varley
Oh bugger :( I've got actions failing all over the place - but strangely, not all of them. The config-browser plugin see's my configured namespaces, but lists no actions in any of them. Regards On 16 December 2014 at 16:23, Roger Varley wrote: > > Yes, I do. I've chec

Re: 2.3.20 Bug with s:action or s:select tag

2014-12-16 Thread Roger Varley
forms = Services.listAllPublishedPlatforms(); return SUCCESS; } public List getPlatforms() { return platforms; } } On 16 December 2014 at 16:09, Lukasz Lenart wrote: > > 2014-12-16 15:03 GMT+01:00 Roger Varley : > > Referring to the log file, the dump wa

Re: Struts 2.3.20 Bug?

2014-12-16 Thread Roger Varley
ed that :( > Feel free to re-open the issue or create a new one. > > 2014-12-16 14:35 GMT+01:00 Roger Varley : > > Hi > > > > I have upgraded to Struts 2.3.20 and I'm trying to use the new > > s:datetextfield tag. The creation of the jsp fails with the error l

Re: 2.3.20 Bug with s:action or s:select tag

2014-12-16 Thread Roger Varley
ou post the whole log? Maybe there are some warnings > > 2014-12-16 14:48 GMT+01:00 Roger Varley : > > Hi > > > > After upgrading to 2.3.20 from 2.3.16.1 the following .jsp snippet fails > to > > compile. Reverting back to 2.3.16.1 and it starts to work again.

2.3.20 Bug with s:action or s:select tag

2014-12-16 Thread Roger Varley
Hi After upgrading to 2.3.20 from 2.3.16.1 the following .jsp snippet fails to compile. Reverting back to 2.3.16.1 and it starts to work again. org.apache.jasper.JasperException: tag 'select', field 'list', name 'platformId': The requested list key '#list.platforms' could not be re

Struts 2.3.20 Bug?

2014-12-16 Thread Roger Varley
Hi I have upgraded to Struts 2.3.20 and I'm trying to use the new s:datetextfield tag. The creation of the jsp fails with the error listed below. I've checked and the datetextfield.ftl is not in any of the template directories in struts2-core-2.3.20.jar org.apache.jasper.JasperException: Template

Re: Need to lookup additional data to append to redirection to outside web site

2011-06-21 Thread Roger Varley
On Mon, 2011-06-20 at 20:44 -0500, John Himpel wrote: > Good evening, > > I have an S2 application the needs to: > 1) Verify some input parameters (I know how to do this) > 2) Retrieve some additional data based upon the input parameters (I > know > how to do this). > 3) Then format a "post" type

Re: optiontransferselect don't use hidden input.

2011-05-31 Thread Roger Varley
On Tue, 2011-05-31 at 13:44 +0200, Alejandro wrote: > Hi all, > > With optiontransferselect, I am trying to get the list of double list but it > is impossible if you dont select all them. > > I had seen an input hidden with __multiselect_ but it isn't filled > properly. > > Thanks for all! Can

Re: Redirect and pass as a parameter the original url from an Interceptor

2011-03-17 Thread Roger Varley
On Thu, 2011-03-17 at 12:48 -0600, Alfredo Manuel Osorio Martinez wrote: > I am implementing a Login interceptor which needs to redirect to an > action to first authenticate the user. The problem is that I want to > send as a parameter to that action the original url, the one that the > user was tr

Re: File Download with multiple files. Design question

2010-11-20 Thread Roger Varley
On Sat, 2010-11-20 at 09:41 +0100, Paweł Wielgus wrote: > Hi All, > read about streamResult (I assume You use struts2), and also there is > no need for next action in chain, user can simply check as many files > as he wants and click download what will call downloadAction that will > simply return

Re: Struts 2 Spring Plugin Usage

2009-11-03 Thread Roger Varley
> > I use the convention plugin for Struts and I take advantage of the > spring auto wiring (by name) to automagically inject my service layer. > You can do the same for the rest. Check out the reference guide over at > spring framework to do so. Weirdly I like having my DAO and Service > classes i

Re: Struts 2 Spring Plugin Usage

2009-11-02 Thread Roger Varley
> > If I am understanding you then that is fine. > > I often do the same, as I like to have a DAO as well as a Service layer. > So inject my DAO's into my Service and my Service into my actions. > > Good ole' code by interface approach :) > It's the means that I have to employ to go down the next

Convention plugin blues

2009-07-28 Thread Roger Varley
Hi Is there a setting/property I can set to get the Convention plugin to tell me where & what it's looking for to resolve to the result classes. Having split a Struts 2 (2.1.7) application that was running solely on Tomcat to now serve static content from an Apache Webserver and pass Struts reques

Re: [S2] best practice for reading POST body in an action

2009-01-09 Thread Roger Varley
On Thursday 08 January 2009 18:12:48 John Cartwright wrote: > No, in this case the mime type is not application/x-www-form-urlencoded > and not sent w/ KVP from a form. The body of the POST is all content. > Hmm, then I'm sorry I'm probably not going to be much help. Although I've done quite a bi

Re: [S2] best practice for reading POST body in an action

2009-01-07 Thread Roger Varley
On Wednesday 07 January 2009 17:58:48 John Cartwright wrote: > Hello All, > > Is there a best practice for using the body of a POST request w/in an > action? The request is not key/value pairs but a blob of XML. Before I > dropped back to using a traditional HTTPServletRequest approach, I'd see >

Re: [OT] What slows you down?

2008-06-20 Thread Roger Varley
On Friday 20 June 2008 15:07:17 Al Sutton wrote: > Web Design :). I can code it in a few days, but getting it to look > pretty so that users don't complain, thats a b**ch. > That shouldn't be my problem. I'm a developer not a graphic designer. What would be nice though, would be if it were easier

Re: [Struts 2] Formatting double

2008-06-04 Thread Roger Varley
On Wednesday 04 June 2008 22:49:15 Felipe Lorenz wrote: > Are you brazilian to use a comma for decimal separator? > You might be surprised at the number of countries that use a comma as the decimal separaor as opposed to the dot. http://en.wikipedia.org/wiki/Decimal_point Regards -

Re: i18n Struts Jco Code in Windows English and Polish System

2008-05-23 Thread Roger Varley
On Friday 23 May 2008 13:51:08 Raghuveer wrote: > I am working on Struts ,SAP-JCO . > > This is i18n application running on Tomcat. > I have designed my application in UTF8 charset. > > When Saving the polish characters from application they are saved into SAP > Database properly. > Before Saving i

Re: ajax layout - how to place 2 submit buttons one after the other?

2008-03-31 Thread Roger Varley
> > There are at least three choices: > > (1) Do something via CSS (inline or something) > (2) Modify the existing Ajax theme > (3) Create a new theme > I know I'm probably going to be shot down in flames for this, but why do the Struts 2 tags attempt to control any sort of layout? Why is there n

Re: [OT] XML Preprocessing

2008-03-17 Thread Roger Varley
I've never tried to do this since, normally, you want the XML processor to handle entities such as the & symbol - and if either the input XML or output XML contains these symbols unaltered then you don't have legal XML. If you really need to leave these unprocessed, then perhaps you can replace

Re: Populating dropdown

2008-02-11 Thread Roger Varley
On Monday 11 February 2008 12:01, Jayaveeran wrote: > Hi all, > > I am populating a dropdown in my jsp which has more than 10,000 elements in > it. Since the record size is very huge the time taken for the JSP to load > is very high. I am using the folowing snippet to populate the dropdown. I > am

Re: SessionAware vs ActionContext access to session - confused..

2007-09-12 Thread Roger Varley
On Tuesday 11 September 2007 23:03, Nils-Helge Garli wrote: > You could, but I would recommend using the *Aware interfaces in your > actions. It makes them easier to test. > Hmm.. I've always handled session data by creating an application base action that implements a "getUserData()" and a "setU

Re: Dynamic Tree Example

2007-08-15 Thread Roger Varley
> > What I would really like to do is create a model Petshop application > for Struts 2. I've setup a Google Code site for this purpose, but I > haven't had a chance to seriously pursue it yet. > > * http://code.google.com/p/sq1-petstore/ > > My dream would be to have a full set of use cases, a re

Re: Struts 2 and Tomcat 5.0.27 filter start error

2007-07-13 Thread Roger Varley
On Friday 13 July 2007 18:08, Phillip Blevins wrote: > Greetings, > > I am trying to use a struts 2 application on Tomcat 5.0.27. I > originally had it working on 5.5 but i had to downgrade to 5.0.27 > because thats the version my web service has. I am getting the error > SEVERE: Error filterStar

Re: Spring Action Instantiation

2007-06-20 Thread Roger Varley
On 20/06/07, Dave Newton <[EMAIL PROTECTED]> wrote: ?! I didn't understand a word of that either :-) --- Martin Gainty <[EMAIL PROTECTED]> wrote: > Assuming Spring is your AOP framework > Logging is now an Advised entity > to be injected at compile time or runtime via > 'pointcut' > details

Re: facade stored in Session

2007-06-14 Thread Roger Varley
On 02/06/07, Mansour <[EMAIL PROTECTED]> wrote: Hello every one: I am trying to access my business layer from Actions. However, I need to hold a reference to the business layer facade and access it from any Actions classes. I am saving the reference to servicesFacade in a session and retrieving

Re: Ending session

2007-06-05 Thread Roger Varley
Roger Varley wrote: > I'm sure that I've read that it's possible, using Javascript, to > detect if a client closes the browser & if that's true, then you could > use an AJAX call to invalidate the session. This is possible, but you can't bet on it

Re: Ending session

2007-06-05 Thread Roger Varley
2. if the user simply closes the browser, you have no option but to wait for the session to expire. Maybe all you really want is a shorter session timeout.; but I'm sure that I've read that it's possible, using Javascript, to detect if a client closes the browser & if that's true, then you co

Re: Ending session

2007-06-05 Thread Roger Varley
On 05/06/07, Mansour <[EMAIL PROTECTED]> wrote: I am saving objects in the session. After the browser closes I would like to clean the remaining junk. How do I achieve this ? Implement an HttpSessionListener. The destroy() method will be invoked by the servlet container when the session ends.

Re: Multi lingual web site

2007-05-31 Thread Roger Varley
Using the locale, you should be able to construct a SQL query to load the correct data from the table structure I mentioned. Or you could add language choice as a user selectable option on either your login page (if you use a login) or on your "home" page. Regards Roger -

[S2] Table Tags - Installation

2007-05-29 Thread Roger Varley
Hi I've just downloaded the Struts 2 table tags from Sourceforge. Are there any installation instructions anywhere? Regards Roger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: preInvokeJS in s:submit

2007-05-25 Thread Roger Varley
On 25/05/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: Use "notifyTopics" instead. I've been trying to do this for ages (display a confirmation dialog when the user is about to do something irrevokable) and it never occured to me to use Ajax :-( Is there any example code anywhere? Regards R

Re: Serious memory leak

2007-05-24 Thread Roger Varley
On 22/05/07, Balazs Michnay <[EMAIL PROTECTED]> wrote: Hi, I have just downloaded NetBeans Profiler to see how my web-app performs and realized that it produces serious memory leaks... The interesting part is that I have nothing on my JSP but static struts tags (no dynamic content at all) and

Re: [S2] Results Based on URL File Types

2007-05-24 Thread Roger Varley
I'm still a newbie as well so take this with a pinch of salt. I would try doing it this way; http://www.domain.com/struts2/queryName?param1=foo,param2=xml http://www.domain.com/struts2/queryName?param1=foo,param2=json http://www.domain.com/struts2/queryName?param1=foo,param2=html http://www.domai

Re: [S2] Inappropriate Error Message

2007-05-23 Thread Roger Varley
Usually this means that there is something other than the BOM before your This is repeatable by using a bogus class name, so that suggests that Struts/Spring is the root cause. Regards Roger - To unsubscribe, e-mail: [EMAIL P

[S2] Spring Injection

2007-05-23 Thread Roger Varley
Hi I suspect that this going to be a stupid question but please bear with me. I have a BaseAction for my application that extends ActionSupport and all my actions extend BaseAction. BaseAction recieves a reference to a Service bean, through which my actions obtain objects from my Business Layer,

[S2] Inappropriate Error Message

2007-05-23 Thread Roger Varley
I'm developing using Struts 2 with the Spring plugin within Netbeans 5.5 using the embedded Tomcat as the servlet engine. If I screw up my Spring applicationContext.xml by incorrectly specifying the path to the class in a bean element, then when I try to deploy the project I get the error message

Re: [s2] unexpected Tomcat shutdown everyday

2007-05-23 Thread Roger Varley
Unfortonutalely, I don't have any class that invokes System.exit() nor Spring scheduler. Nothing particular happens before tomcat shutdown (see logs). And No database is backed up or restarted during this time. This is really strange (and critical) and I suspect that it comes from Struts. Tomca

Re: [S2] Problem with ! notation

2007-05-21 Thread Roger Varley
Is dynamic method invocation turned on? As an aside, why is dynamic method invocation turned off by default. From experience this suggests that either the functionality is experimental, or is not the sort of thing you should be using unless you have good reason and know what you're doing. Are

Re: [S2] Problem with ! notation

2007-05-21 Thread Roger Varley
On 21/05/07, Roger Varley <[EMAIL PROTECTED]> wrote: > > You might have to post config snippets... I'm assuming > Tiger is the webapp? > Dave Forget the previous post - it's working after a fashion. http://localhost:8084/Tiger/StartOrder.action runs OK and ca

Re: [S2] Problem with ! notation

2007-05-21 Thread Roger Varley
You might have to post config snippets... I'm assuming Tiger is the webapp? Yes, Tiger is the webapp. My struts.xml contains /startOrder.jsp My struts.properties is located in WEB_INF/classes along with the struts.xml file and contains struts.devMode = true struts.enable.DynamicMethodInvoc

Re: [S2] Problem with ! notation

2007-05-21 Thread Roger Varley
Is dynamic method invocation turned on? ("Hey dynamic method invocation... you sure are looking good today," he cajoled, breathily.) It wasn't. I've changed the struts.properties file from struts.enable.DynamicMethodInvocation = false to struts.enable.DynamicMethodInvocation = true and restar

[S2] Problem with ! notation

2007-05-21 Thread Roger Varley
Hi I'm trying to call a method on my action using the ! notation as explained in the CRUD demo. If I call my action from the browser bar as http://localhost:8084/Tiger/StartOrder.action then the execute() method runs. If I call http://localhost:8084/Tiger/StartOrder!execute.action then I get the

Re: How to get Exception info when I use global exception mappings?

2007-05-21 Thread Roger Varley
Thanks for your help, I got it. As an aside, it may be worth pointing out that exposing your users to a detailed StackTrace is not usually considered to be a good idea. Firstly, a stack trace means nothing to your users and may actually intimidate them, and secondly, if your application is web

Re: Action View wiring

2007-05-16 Thread Roger Varley
On 16/05/07, Mansour <[EMAIL PROTECTED]> wrote: Mansour wrote: I found it. I'll post it just in case someone needs it. I used "%{id}" instead of "${id}" and EL expression is evaluated immediately on the first load. I don't know why. I 'd love to hear explanation form someone. But it's working aft

Re: Struts 2, Popup window ?

2007-05-16 Thread Roger Varley
1. I am on a page and would like the user to click on a link which would invoke my popup window picker. Sorry, but what is a popup window picker? I've a need to display popup windows in my application & I've tried googling and can't find anything. Incidentally, has anyone tried overriding the

[S2] Ajax Forms

2007-05-09 Thread Roger Varley
Hi Is it possible to insert/update the value of a tag in a form using Ajax? I've listed the data entry jsp and the Ajax response jsp page below. When the form is loaded at start up, I see the text values and an empty text field from the ajax response. After entering a value into productCode fiel

[OT] Framework needed

2007-05-04 Thread Roger Varley
Hi Sorry for the off-topic post, but if anyone is likely to know the answer they'll probably be here. In the same way that we have Hibernate, Ibatis et al for mapping between RDBMS and Java objects, does anyone know of a framework that will map between SAP R3 Remote Function Calls and Java objec

[S2] tag problems

2007-05-03 Thread Roger Varley
I'm sorry to keep harping on about this but some of the attributes of the tag used in a .jsp do not render in the output HTML. Examples are In both cases, neither the disable or onclick attributes appear in the rendered HTML If I've misunderstood the use of the tag or haven't RTFM'd the righ

Re: [BEER] Re: Books

2007-05-01 Thread Roger Varley
On 27/04/07, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: I don't know what information I can or can't give out, so suffice it to say you won't be waiting too much longer for books specifically on S2... and no, before anyone asks, I'm not writing one :) Is this the one that you're hinting at h

Re: [S2] Newbie Passing S2 variables to javascript functions

2007-04-30 Thread Roger Varley
Without seeing the error and the JSP code that generated it, it's hard to tell you what's wrong. However, remember that Javascript runs on the client, after the page has been generated. View the page source to see what the syntax error is. In this case, it's probably the lack of quotes around the

Re: [S2] Problem with Form Tag

2007-04-30 Thread Roger Varley
Did you tried set readOnly? Are you using ajax theme? If yes, maybe this is the problem. Try the others theme. In the most of cases, this won't affect the ajax behavior of application, once submit has its theme setted to ajax. I'm using the simple theme. I've now also found that specifying the

[S2] Newbie Passing S2 variables to javascript functions

2007-04-27 Thread Roger Varley
Hi Within a tag I have the following statement (because status seems to disappear when the iterator exits) and I use the expression %{#indexValue} within other struts s: tags without a problem. I now need to pass this value to a javascript function i.e onclick="enableField(%{#indexValue})" but

Re: [S2] Problem with Form Tag

2007-04-27 Thread Roger Varley
On 27/04/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote: Put disabled in the fields instead of in the form. That's no good for me. If you click on a field within a disabled form, the onclick() event is triggered, but if you leave the form active and disable each field individually the onclick

[S2] Problem with Form Tag

2007-04-27 Thread Roger Varley
Hi I've got this snippet in my .jsp file but the disabled attribute is not being rendered into the final html, so all the forms are active. What am I do

Re: [S2] Newbie. Authentification Interceptors

2007-04-25 Thread Roger Varley
On 25/04/07, Zoran Avtarovski <[EMAIL PROTECTED]> wrote: For what it's worth we use a combination of both JAAS and a custom AuthInterceptor. JAAS handles authentication and the AuthInterceptor manages authorisation. This leverages off the strength of JAAS and has the flexibility required for our

[S2] Newbie. Authentification Interceptors

2007-04-24 Thread Roger Varley
Hi I notice that there have been a few threads over the last couple of days where people have been talking about implementing login authentication via a Struts2 interceptor. Could someone simply outline the reason why they would want to do it this way rather than using container authentication?

[S2] (Newbie) Using Preparable

2007-04-20 Thread Roger Varley
Hi Can someone please explain the point of the Preparable interceptor and prepare(). What do I gain over doing everything in the execute() method of my action. Obviously there must be some advantage otherwise Preparable wouldn't be there, but I can't see it at the moment. Regards Roger

Re: [S2] Going nuts with

2007-03-15 Thread Roger Varley
[...] Which is actually what you asked. Doh! Thanks very much. It was the #request. bit I was missing. I also didn't realise that I could specify the values that uses! Are there any in depth tutorials out there or books in the pipline, 'cos I'd never have got that from the Struts2 site. Re

[S2] Going nuts with

2007-03-14 Thread Roger Varley
Hi I have this fragment of .jsp code When this runs I see the text "Index" and the value of #status.index followed by the text "variable" but the value of #indexValue is no

{S2] Newbie: Sharing a POJO between two or more actions

2007-03-14 Thread Roger Varley
Hi I need to share an object between two actions. As I'm familiar with servlet programming I reached for the SessionAware interface and share the object that way. And it works. However. the Javadoc for SessionAware discourages the use of this interface as it ties the actions to a servlet environm

Re: s2] Is this a sensible way of doing in-line editing in a table?

2007-03-12 Thread Roger Varley
Following on from this, could anyone point me towards a tutorial/example code on how to deal with an indexed edit technique when I also need to use paging. For example, I have to do a similair thing to the OP however I am restricted to editing 10 lines per page. This would be easy if I could pass

Re: [S2] Newbie question about HTTP Sessions

2007-03-08 Thread Roger Varley
Yes - you are right. The sessions are generated automatically by the container (tomcat, etc). Thanks. In a servlet based web-app I would create the session object programatticaly with httpServletRequest.getSession(true). I just wasn't sure if Struts 2 was creating the session for me since I a

[S2] Newbie question about HTTP Sessions

2007-03-08 Thread Roger Varley
Hi A couple of newbie questions. Firstly, does Struts2 automatically create an HTTP Session or do I need to explicitly create it. Early experimentation suggests that it's automatically created as I'm seeing the JSESSIONID parameter in the Urls generated without doing anything, but I'd like to be

Re: Using Struts Tag to create HTML tag

2007-02-28 Thread Roger Varley
Either use JSTL as previous poster mentioned or use the tag to create the div name. Actually after replying to your previous e-mail I had that doh! moment and tried "> which worked. This, for some reason surprised me that it worked, but I'm getting this sensation with quite a lot of Struts2 a

Re: Using Struts Tag to create HTML tag

2007-02-28 Thread Roger Varley
On 28/02/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- Roger Varley <[EMAIL PROTECTED]> wrote: > I'm using the tag with the status > attribute to get the iterator count. From this I want > to dynamically construct an HTML tag class="columnX"/> where

Using Struts Tag to create HTML tag

2007-02-28 Thread Roger Varley
Hi I'm using the tag with the status attribute to get the iterator count. From this I want to dynamically construct an HTML tag where X is the value of the iterator status count. Can I actually do this and if so, how or do I need to provide this information from my action class Regards Roger

[S2] Odd tag behaviour (Newbie)

2007-02-26 Thread Roger Varley
Hi I'm using Struts 2.0.06 and I have a simple jsp page <%@ taglib prefix="s" uri="/struts-tags" %> which is rendering as HostName frozen.brake.co.uk Start Time: 2/26/07 HostName grocery.brake.co.uk Start Time:

[S2] Equivalent of Servlet init() method?

2007-02-22 Thread Roger Varley
Hi I'm a struts2 newbie & I've just got the hello world app running. I'm now trying to convert a simple servlet app to struts2. In the original servlet I use a singleton factory class which I initialise/setup in the servlets init() method and use it in the servlet service() method. What is the eq

Struts & Workflow

2006-10-18 Thread Roger Varley
Hi I'm looking at the possibilty of using Struts for my next project, which is to replace an internal intranet application that uses an applet with a servlet based framework. Among the many "challenges" is the need, because the applet is basically a multi-screen data entry program, to have absolu