Re: [struts] Thanks! Works also with redirect actions...

2007-11-08 Thread Dale Newfield
Dave Newton wrote: mySuccess ${fooId} ${barId} Arguably, yes, and for a couple of reasons. Off the top of my head I don't recall what will happen if the param isn't found, though (or is null, etc.) From reading the code it adds "¶m=" even if the param has no value, which differs f

RE: [S2] Action can not redirect with extend pattern?

2007-11-08 Thread Dave Newton
??? --- TANG Xigen <[EMAIL PROTECTED]> wrote: > thanks very much again! > > > i forgot i add a validation module! > > thanks! > > -Original Message- > From: Dave Newton [mailto:[EMAIL PROTECTED] > Sent: 2007Äê11ÔÂ9ÈÕ 10:59 > To: Struts Users Mailing List > Subject: Re: [S2] Action c

RE: [S2] Action can not redirect with extend pattern?

2007-11-08 Thread TANG Xigen
thanks very much again! i forgot i add a validation module! thanks! -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: 2007年11月9日 10:59 To: Struts Users Mailing List Subject: Re: [S2] Action can not redirect with extend pattern? Hello, Most likely your logon action

Fw: [S2] ArrayList of Object as datasource in JasperReports

2007-11-08 Thread Martin Gainty
can we see your copy of apps/reports/templates/hr004.jrxml M-- - Original Message - From: "carmi_cd" <[EMAIL PROTECTED]> To: Sent: Thursday, November 08, 2007 8:31 PM Subject: Re: [S2] ArrayList of Object as datasource in JasperReports > > here is the complete struts.xml > > exten

Re: [S2] Action can not redirect with extend pattern?

2007-11-08 Thread Dave Newton
Hello, Most likely your logon action is failing validation and trys to find the "input" result (which doesn't exist). If you have action methods that should not be validated you have several options, including: - create method-specific (action alias specific) validations - exclude additional me

[S2] Action can not redirect with extend pattern?

2007-11-08 Thread TANG Xigen
Hi All I write a simple self "PlatformActionSupport" to let it's children can redirect to result "start" when url like "*!start.action", but when i test my code, i find some works fine, some doesn't! [ Father PlatformActionSupport ] @SuppressWarnings("serial") public abstract class PlatformActi

Re: [S2] ArrayList of Object as datasource in JasperReports

2007-11-08 Thread carmi_cd
here is the complete struts.xml Login_input /apps/Menu.jsp /apps/modules/Toolbar.jsp /apps/SessionExpired.jsp

Re: help with struts 2 + jfreechart plugin example

2007-11-08 Thread swaddee
swaddee wrote: > > I recently started using struts 2 by experimenting with webwork and then > moving to struts 2. I want to produce some charts using jfreechart. After > getting the example > (http://wiki.opensymphony.com/display/WW/JFreeChartResult) to work using > the webwork framework I tri

Re: Dojo custom build and Struts ComboBox widget

2007-11-08 Thread Jeromy Evans
Max Pimm wrote: I am trying to make a custom build of dojo for my application in order to speed it up a bit. (See threads "[s2] Struts head tag KILLS (> 10s) page load time" and "How to improve dojo performance in Struts 2.0.9") I have followed the instructions for doing this are carefully a

Re: OGNL struts property

2007-11-08 Thread Dave Newton
To continue, the first one (probably; I'm still a little fuzzy on OGNL sometimes) works because if a property isn't found in the action it will continue looking on the stack until it finds it or runs out. Now, as to why #2 "doesn't work", I'm a little hazier on that: perhaps when OGNL has an expre

Re: OGNL struts property

2007-11-08 Thread Musachy Barroso
in OGNL there is always an object that is the "root", so %{name} is actually calling root.getName(). The "#" is used to reference something else than the root. In your views, your action will be the OGNL root (unless some tag pushes something to the stack), to refer to your property you would need

Re: [OT] Tomcat 5.0.28

2007-11-08 Thread Dave Newton
I believe the OP mentioned that the port was changed on one of the server instances. However, there are also several other ports that might conflict depending on the setup, so it's still a good idea to do a sanity check on port assignments. That said, this is really better address on a Tomcat-rel

Re: [OT] Tomcat 5.0.28

2007-11-08 Thread sriharsha . chevuru
The problems should be thrown up in the logs, when you start the Tomcat. My first guess would be, both instances are pointing to the Default port i.e. http 8080. You would need to change the default port to a different port . "Shabada, Gnaneshwer" <[EMAIL PROTECTED]> 11/08/2007 12:02 PM

[Solved] [S2] Retrieving values from the valuestack for the tag

2007-11-08 Thread Justin Frost
Here is what I figured out so far. headerRow is a vector of ReportCell, not ReportRow. So for the headerRow I had to create a getHeaderRow method in my action class. public Vector getHeaderRow(){ Report report = getReport(); return report.getHeaderRow();

Tomcat 5.0.28

2007-11-08 Thread Shabada, Gnaneshwer
Hello I am going off the topic, but wanted to know if you gurus out there tried to install multiple instances of Tomcat on single windows XP machine. I downloaded the zip file and extracted then created two diff folders for 2 intended tomcat instances under my main installation dir. Copied conf, te

Re: [S2] ArrayList of Object as datasource in JasperReports

2007-11-08 Thread j alex
Can you paste the entire struts.xml ; ensure that you have : On Nov 7, 2007 8:51 PM, carmi_cd <[EMAIL PROTECTED]> wrote: > > hi actually i tried using that tutorial and got a pdf with no data in it > only > page and column titles. > i dont know why.. > > Stacktrace of my sun application serve

Re: [S2] Retrieving values from the valuestack for the tag

2007-11-08 Thread Dave Newton
--- Gary Affonso <[EMAIL PROTECTED]> wrote: > The debug tag is poorly documented, I think it > requires the dojo library. Or something. :-) You can't tell me that http://struts.apache.org/2.x/docs/debug.html isn't the acme of documentation (I'll add something). In any case, no, it doesn't requi

ServletRedirect vs ServletActionRedirect (was: [struts] Thanks! Works also with redirect actions...)

2007-11-08 Thread Gary Affonso
Dale Newfield wrote: So it is clearly indicated that "redirectAction" is recommended over "redirect", but I neither understand why, nor quite what it is that this result type does... If so, the new request needs to have the same URL (which must be encoded) no matter which result type generated

Re: Struts 2.1 release date?

2007-11-08 Thread Ted Husted
And it will probably stay that way. We just wanted to get something out for people to try, while we work toward applying the rest of the outstanding patches. So far, we're about half-way through that process. * https://issues.apache.org/struts/browse/WW/fixforversion/21863 Of course even with al

Re: [S2] Retrieving values from the valuestack for the tag

2007-11-08 Thread Gary Affonso
Justin Frost wrote: Well, you're doing exactly (almost) what I suggested

Re: [struts] Thanks! Works also with redirect actions...

2007-11-08 Thread Dave Newton
--- Dale Newfield <[EMAIL PROTECTED]> wrote: > So it is clearly indicated that "redirectAction" is > recommended over "redirect", but I neither > understand why, nor quite what it is that this > result type does... Precisely for the reasons stated; it adds a layer of abstraction that understan

Re: Struts 2.1 release date?

2007-11-08 Thread Dave Newton
Just to be clear, this is not a "release" in the strict sense of the word; it is currently a test build. Dave --- Pedro Herrera <[EMAIL PROTECTED]> wrote: > > I´m using 2.1 release. No problems...(to me). Dojo > plugin is working very > well !!! > > Herrera > > > > > Crocker, Patrick-2 wro

Re: [struts] Thanks! Works also with redirect actions...

2007-11-08 Thread Dale Newfield
Gunnar Hillert wrote: Thanks for your helpful post! Interestingly, this also works with redirect actions. Hrm... The javadoc for ServletActionRedirectResult says: This result uses the ActionMapper provided by the ActionMapperFactory to redirect the browser to a URL that invokes the specified

Re: [struts] [S1.3]Strange problem with validation.xml's Regex

2007-11-08 Thread Dale Newfield
Dale Newfield wrote: enthucoder wrote: I am validating a condition : Input should not contain any of these characters &,",<,>,%,(,) And to achieve this my RegEx is : ^[^(\&|"|<|>|%|\(|\))]+$ > That should be: ^["&<>%()]*$ D'oh! That should be: ^[^"&<>%()]*$ -Dale -

Re: [struts] [S1.3]Strange problem with validation.xml's Regex

2007-11-08 Thread Dale Newfield
enthucoder wrote: I am validating a condition : Input should not contain any of these characters &,",<,>,%,(,) And to achieve this my RegEx is : ^[^(\&|"|<|>|%|\(|\))]+$ That should be: ^["&<>%()]*$ (using + instead of * at the end adds the restriction that the field must contain at least

Re: Struts 2.1 release date?

2007-11-08 Thread Pedro Herrera
I´m using 2.1 release. No problems...(to me). Dojo plugin is working very well !!! Herrera Crocker, Patrick-2 wrote: > > > Working with Struts 2.0.x as an MVC framework has been a very enjoyable > experience. Working with Struts 2.0.x with the built-in Dojo > integration has been a frustra

Re: [S2] Retrieving values from the valuestack for the tag

2007-11-08 Thread Justin Frost
This is the jsp I am using with no success. I thought it would be straight forward. Obviously I am missing something.

Re: [S2] Retrieving values from the valuestack for the tag

2007-11-08 Thread Gary Affonso
So your container heirarchy is... Report - contains a Vector of ReportRow (called headerRow) - contains a Vector of ReportCell (called dataColumn) Shouldn't this just be a matter of a couple of nested loops? Something like... Does that (or the corrected syntax for that id

Dynamic tree

2007-11-08 Thread Peter Bliznak
Hi new to 2.0 ajax tags so I need some help on tree tag. I am trying to build tree and since it rather big one I would like to get data from server incrementally -- only when I click on tree node. I found tree docs at http://struts.apache.org/2.x/docs/tree.html and at the very bottom of the pag

Dojo custom build and Struts ComboBox widget

2007-11-08 Thread Max Pimm
I am trying to make a custom build of dojo for my application in order to speed it up a bit. (See threads "[s2] Struts head tag KILLS (> 10s) page load time" and "How to improve dojo performance in Struts 2.0.9") I have followed the instructions for doing this are carefully as possible from

Re: Struts 2.1 release date?

2007-11-08 Thread Antonio Petrelli
You can download the test build: http://people.apache.org/builds/struts/2.1.0/ But beware that no vote has been called to declare its quality. IMHO it won't be more than beta. Ciao Antonio 2007/11/8, Crocker, Patrick <[EMAIL PROTECTED]>: > > > Working with Struts 2.0.x as an MVC framework has bee

Re: ajax integration with struts

2007-11-08 Thread Ted Husted
On Nov 7, 2007 7:54 PM, Lalchandra Rampersaud <[EMAIL PROTECTED]> wrote: > I would like to integrate ajax within a struts app, but I have no idea how > to go about doing that. The key point is that when a script makes an "Ajax request" (XHR), the server doesn't know it came from a script, and han

Struts 2.1 release date?

2007-11-08 Thread Crocker, Patrick
Working with Struts 2.0.x as an MVC framework has been a very enjoyable experience. Working with Struts 2.0.x with the built-in Dojo integration has been a frustrating experience to say the least. Looking at the 2.x docs, I see that the struts-dojo-tags taglib (http://struts.apache.org/2.x/docs/

Re: confirm subscribe to user@struts.apache.org

2007-11-08 Thread Heidy Gutiérrez Guzmán
On Oct 22, 2007 8:47 AM, Martin Wilmes <[EMAIL PROTECTED]> wrote: > On Monday 22 October 2007 15:39:49 [EMAIL PROTECTED] wrote: > > Hi! This is the ezmlm program. I'm managing the > > user@struts.apache.org mailing list. > > > > I'm working for my owner, who can be reached > > at [EMAIL PROTECTED]

Write text in HTML format

2007-11-08 Thread Odelya Glick
Hi, I have a text in Oracle DB separated to new lines. I would like to write it in the bead:write with the lines separated as in HTML. So I added a method in the bean propert: public String getBody() { String convertedBody = IOTextUtil.convertPlainTextToHTML(body);

Re: Manually obtain previous action parameters after action "chaining"?

2007-11-08 Thread jjgould
There was a good suggestion about using the MessageStoreInterceptor, but I am really trying to avoid using Session-based storage for my application, having been indoctrinated into the RESTful camp at the 2007 Colorado Software Summit :) I just discovered that both actions (the one that gets the v

Re: ajax integration with struts

2007-11-08 Thread Ingo Villnow
I would suggest you to view the "javawebparts" tools (http://javawebparts.sourceforge.net/) After integration, you can render a calendar like this: Greetings, Ingo Lalchandra Rampersaud schrieb: > I am making a calendar so I just want to update parts of the page. >

Re: [S2] Retrieving values from the valuestack for the tag

2007-11-08 Thread Justin Frost
I want to iterate over the dataColumns to get the "value" from each dataColumn. I am trying to add S2 to an existing project. So the Vector code is old, circa 2001. Thanks for you help. newton.dave wrote: > > --- Justin Frost <[EMAIL PROTECTED]> wrote: >> private String value; >> >>

dynamic use of and struts

2007-11-08 Thread Ingo Villnow
Hello, i want to use the swapper with dynamic filled values, like this: Now i want to fill the "TEST"-value dynamically from a JavaBean. Is there any way, for example: ?? Any ideas? Thank you very much. Ingo from Berlin --

OGNL struts property

2007-11-08 Thread
Hi, Can any body explain the following to me, I don't quite grok it. I have added a property value via my action ActionContext ctx = ActionContext.getContext(); ctx.put("contextKey", "developer.page.logout"); In the jsp I have the following: 1 2 3 4 This results in an output: 1 d

Remove uploaded file

2007-11-08 Thread Odelya Glick
Hello, I have a code to upload a file using FromFile and I would like to add a "remove" button" to the file. How do I do it? Thanks Odelya - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA

[ANN-OT] Dojo 1.0.0 release

2007-11-08 Thread Pedro Herrera
"Dojo 1.0 Mon, 11/05/2007 - 14:31 — alex Today is the day the Dojo has been working toward steadily for more than 3 years: Dojo 1.0." -- View this message in context: http://www.nabble.com/-ANN-OT--Dojo-1.0.0-release-tf4770042.html#a13644271 Sent from the Struts - User mailing list archive at