Re: 2

2008-05-06 Thread Ian Meikle
Hi, Thanks for the response. We are using S2 2.0.11.1 and in this version the "format" attribute does not exist in So you suggestion will not work for us. Regards Ian CSC Solutions Norge AS Registered Office: Sandsliåsen 57, 5254 Sandsli, Norway Registered in Norway No: 958 958 455

Re: struts2 migration

2008-05-06 Thread Jeromy Evans
kal stevens wrote: We use EL/JSP in some of our pages, and I have been told by a coworker that after 2.0.9 EL is disabled. So moving would be difficult, unless there is some way to re-enable it? What is the standard way of referencing variables. EL expressions are disabled within the attri

Re: Struts 2 Annotation Validation Problem

2008-05-06 Thread Wes Wannemacher
I could be wrong in my assumption, but I became suspicious when the action class wasn't in the stacktrace... On Tue, 2008-05-06 at 20:48 -0400, Jim Kiley wrote: > It's weird and confusing that inherited methods don't make it into the proxy > class. Took me an age to figure it out, in no small p

Re: Struts 2 Annotation Validation Problem

2008-05-06 Thread Jim Kiley
It's weird and confusing that inherited methods don't make it into the proxy class. Took me an age to figure it out, in no small part because I couldn't find an easy way to inspect the proxy class's methods. My workaround was to eliminate the @Transactional annotation entirely, and I'm hoping tha

Re: Struts 2 Annotation Validation Problem

2008-05-06 Thread Wes Wannemacher
Sorry I didn't catch this earlier, but I had the exact same problem. It would seem that when you use Spring's @Transactional annnotation, the class gets proxied... Which I would think is okay, except for the fact that inherited methods (such as ActionSupport.input()) do not make it into the proxied

Re: Struts 2 Annotation Validation Problem

2008-05-06 Thread Jim Kiley
I solved this problem and I figure that nabble might want to record the end reason for the bug. Another method entirely, elsewhere on ProductDetailAction, had a @Transactional annotation. It didn't need one -- I was using injected transaction management and the OpenEntityManagerInViewFilter. Why

Re: Why does struts assign indexedValues from 2nd index.......please help

2008-05-06 Thread Laurie Harper
I can't tell you why the parameters are being passed out-of-sequence (I would guess they're being shuffled through a HashMap somewhere) but it's easy to deal with: simply have your setter grow the list as necessary to accommodate the passed index. Something like this: public void setFriend

Re: Does Execute and Wait Interceptor work with ServletRequestAware interface?

2008-05-06 Thread Laurie Harper
mojoRising wrote: I am using the Execute and Wait Interceptor on my login action. This action needs to access the HTTPRequest object so that it can get the HTTPSessionId, and the request headers and store all of this in the database as well as putting the userObject in the session itself. Docume

Re: Why does struts assign indexedValues from 2nd index.......please help

2008-05-06 Thread venkat reddy
I've tried another example also... ListForm.java = package com.myapp.struts.formbeans; import org.apache.struts.action.*; import javax.servlet.http.*; import java.util.*; /** * * @author Sai */ public class ListForm extends ActionForm { private int size = 3; private List f

Why does struts assign indexedValues from 2nd index.......please help

2008-05-06 Thread venkat reddy
I wanted to find a way to handle dynamic number of arguments for my poll-posting form which should be able to handle dynamic number of choice fields. So i maintained a list (pollChoices --> java.util.List type) for maintaining dynamic number of choice fields. ==

Does Execute and Wait Interceptor work with ServletRequestAware interface?

2008-05-06 Thread mojoRising
I am using the Execute and Wait Interceptor on my login action. This action needs to access the HTTPRequest object so that it can get the HTTPSessionId, and the request headers and store all of this in the database as well as putting the userObject in the session itself. Documentation says that w

Re: [struts] Struts Taglib

2008-05-06 Thread Dale Newfield
Michael Gagnon wrote: I've added a custom taglib in my project I would like to use struts URL tags in this. Ideally my tag handler would generate s:url and s:a tags that could then be processed by struts. I don't see a way to do this though A tag is a Java object. You can always instantiate

Re: 2

2008-05-06 Thread Volker Karlmeier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, i did it like that: in package_??.properties (?? for the locale) dateformat=dd.MM. in my jsp: Maybe it works for you ~ volker Ian Meikle schrieb: | Hi, | | In the doc for it says: "The value sent to the server | is a locale-indepe

Struts Taglib

2008-05-06 Thread Michael Gagnon
I've added a custom taglib in my project. One of these tags does some logic to generate a series of links. Given one target URL, I want to create X links to that URL with one changed parameter. If the given URL has parameters, I want them to all be preserved except for one named 'pageNumber' which

Re: struts2 migration

2008-05-06 Thread kal stevens
We use EL/JSP in some of our pages, and I have been told by a coworker that after 2.0.9 EL is disabled. So moving would be difficult, unless there is some way to re-enable it? What is the standard way of referencing variables. My boss prefers that I not disable errors, is there a way to disable

Struts tag to safe print a value

2008-05-06 Thread Graham Leggett
Hi all, I have been trawling the docs, but haven't yet found a tag listed that will do this. I need to display some text on the screen, which may contain newlines, or stray html tags. I'd like the newlines converted to , and have other html tags stripped/quoted or otherwise rendered harmless

RE: Upgrade from 2.06 to 2.011.1 Error

2008-05-06 Thread Hoying, Ken
Thanks, Dave. I saw the short blurb in the release notes on the changes for security. I did not see any work around. The only one I have been able to come up with is to use the previous versions TLD with the new code. I am not sure that I want to have to rewrite all of my JSP pages to not use J

Re: Upgrade from 2.06 to 2.011.1 Error

2008-05-06 Thread Dave Newton
--- "Hoying, Ken" <[EMAIL PROTECTED]> wrote: > After upgrading my libraries and TLD from 2.06 to 2.0.11.1, I am > getting the following error. > > 2008-05-06 10:42:36,648 ERROR (http-0.0.0.0-8080-2:) > [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/sca].[ > jsp]] Servlet.service

Re: need post operation after action.

2008-05-06 Thread Dave Newton
--- "Fernandes, Filipe" <[EMAIL PROTECTED]> wrote: > I used wildcard mapping to define several methods that may be > called for a struts action class. But each of those methods > contain duplicate lines of code that need to be called before > the method returns. > > Is there a way in struts to

Upgrade from 2.06 to 2.011.1 Error

2008-05-06 Thread Hoying, Ken
After upgrading my libraries and TLD from 2.06 to 2.0.11.1, I am getting the following error. 2008-05-06 10:42:36,648 ERROR (http-0.0.0.0-8080-2:) [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/sca].[ jsp]] Servlet.service() for servlet jsp threw exception org.apache.jasper.Jas

need post operation after action.

2008-05-06 Thread Fernandes, Filipe
I used wildcard mapping to define several methods that may be called for a struts action class. But each of those methods contain duplicate lines of code that need to be called before the method returns. Is there a way in struts to wire up a post operation after the action method (whichever it ha

Re: Struts 2: Action chaining behaving differently when validations fire

2008-05-06 Thread Paweł Badeński
I just came up with another idea. You could also try to move validation up the stack, so it's happening before chain.. It might be tricky tough (as Struts spec states: "Sometimes the order of the Interceptors makes a difference."). best regards Pawel --

Re: Struts 2: Action chaining behaving differently when validations fire

2008-05-06 Thread Paweł Badeński
2008/5/5 egetchell <[EMAIL PROTECTED]>: > > I just re-read my post and noticed that the Struts configuration for the > testB action somehow got mangled. The correct configuration for TestB is > > > > > testA > display > > I'd suspect that validation errors are being chained to

Re: Support for Struts 2 in NetBeans IDE

2008-05-06 Thread Rohan Ranade
Yes. A test release is out and we will be releasing the first version soon. As a developer of the plugin, I would like to know your feedback on the plugin. -Rohan Pedro Herrera wrote: I found this NetBeans plugin. Is it working well ? https://nbstruts2support.dev.java.net/ netBeansPluginStrt

about birt use in struts 2

2008-05-06 Thread hns
hi i am one developing reporting apllication in struts 2.0.11 and using sitemesh 2.3 plugin for decorate it now my problem is that when i use my decoraters and my birt tag in jsp like in finalpara.jspi have give tag "> <% if(request.getParameter("pendingzone") !=null) {%> <%} %> par