Re: actionMessages

2008-07-29 Thread Laurie Harper
[EMAIL PROTECTED] wrote: I am sending an message for the successful submission of the form by using actionMessage .In the struts xml file i have used the redirect action and passed action message as parameter. In the display i am getting the message .But the problem is the message is getting f

Re: Implementing ParameterAware but still getting Unexpected Exception caught setting 'name' on 'class....

2008-07-29 Thread Laurie Harper
Jan Froehlich wrote: Hi there... I have a page with a dynamic number of input fields that is submited to an action that implements ParameterAware. Cause the names of the parameters passed to that action change every now and then I can't write getters and setters for them. Thats what I thought Pa

Re: Struts Taglib + JSP: Best Practices For Complex HTML Attribute Construction

2008-07-29 Thread Laurie Harper
Brian Ferris wrote: I'm not sure what that Struts Taglib "way" to do the following task would look like: I've got a bean on the ValueStack with a "boolean isActive()" getter. When active, I'd like to construct html like: And when in-active, I'd like to construct: The only real differen

Re: [s2] How to force validation to combobox field

2008-07-29 Thread Laurie Harper
No, it isn't. A 'combobox' results in a request parameter just like any other input. It can be validated in the same way as any other input. L. Milan Milanovic wrote: So, comboxbox in Struts 2 cannot be validated, is it true ? Milan Milanovic wrote: Hi, does anyone know how I can force us

RE: Dojo With Struts2.

2008-07-29 Thread Deepak Kumar
Hi, Check the url http://www.roseindia.net/struts/struts2/date/struts-2-datetimepicker.shtml thanks -Original Message- From: sharath karnati [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2008 4:05 AM To: user@struts.apache.org Subject: Dojo With Struts2. Hi All,       Struts2 in

Re: [s2] Do I need to define the struts2 filter?

2008-07-29 Thread ManiKanta G
Hi, You always need to include S2 FilterDispatcher as it is the front controller in S2. In those tiles example the authors assume that the reader is having basic usage knowledge of S2. Thats why they might have excluded the S2 filter config. for ex, consider this... struts2

Re: [s2] Do I need to define the struts2 filter?

2008-07-29 Thread Jeromy Evans
Dave Newton wrote: (Ignore the billing part--for some reason this message wasn't caught by my filter and hit my inbox.) Dave I had the same issue because it was addressed to [EMAIL PROTECTED] not [EMAIL PROTECTED] or Struts Users Mailing List James - Yes, you need both the Struts 2 filt

Re: Background Threads

2008-07-29 Thread Jeromy Evans
Frank W. Zammetti wrote: Is it still the case, given the JDK 1.5 concurrency stuff, that you are still not technically allowed to spawn threads in a J2EE container (per spec guidelines)? Did the latest J2EE spec loosen that restriction maybe? Hi Frank, I don't know of any loosening of tha

Re: [OT] Re: Struts2 and Jquery problem with LightBox or thickbox

2008-07-29 Thread Dave Newton
--- On Tue, 7/29/08, prashanth2 <[EMAIL PROTECTED]> wrote: > i wonder whether dojo has any support to thickbox. Perhaps the Dojo documentation would be helpful. There's no S2 tag for it, but there's no reason you can't use plain old Dojo with S2, just like any other JavaScript library. Dave -

Re: [OT] Re: Struts2 and Jquery problem with LightBox or thickbox

2008-07-29 Thread prashanth2
Yes i can understand, though it is js problem..but iam integrating with s2, and s2 behaves way differently with these frameworks..since s2 has integrated with dojo..i wonder whether dojo has any support to thickbox. newton.dave wrote: > > --- On Tue, 7/29/08, prashanth2 <[EMAIL PROTECTED]> wro

Re: Dojo With Struts2.

2008-07-29 Thread Dave Newton
--- On Tue, 7/29/08, sharath karnati <[EMAIL PROTECTED]> wrote: >     Struts2 included with Dojo. Can you please provide > me how to use Ajax using dojo in struts2. If possible can > you please send some links for this implementation. Have you tried reading the documentation? As a starting point e

Re: [s2] Do I need to define the struts2 filter?

2008-07-29 Thread Dave Newton
(Ignore the billing part--for some reason this message wasn't caught by my filter and hit my inbox.) Dave --- On Tue, 7/29/08, James Carr <[EMAIL PROTECTED]> wrote: > From: James Carr <[EMAIL PROTECTED]> > Subject: [s2] Do I need to define the struts2 filter? > To: [EMAIL PROTECTED] > Date: Tu

Dojo With Struts2.

2008-07-29 Thread sharath karnati
Hi All,       Struts2 included with Dojo. Can you please provide me how to use Ajax using dojo in struts2. If possible can you please send some links for this implementation.   Thanks, Sharath.

Re: [s2] Do I need to define the struts2 filter?

2008-07-29 Thread Dave Newton
In general, you'll want to post to the list instead of emailing list participants directly. Especially me; I bill ;) --- On Tue, 7/29/08, James Carr <[EMAIL PROTECTED]> wrote: > In all the examples of tiles2+struts2 I find online, they > only show using the struts2-tiles-plugin listener in the we

Re: S2 and Spring - exception mapping

2008-07-29 Thread Ramanathan RV
Hey, Thanks guys. I got the answer. Spring indeed releases the connection. On Tue, Jul 29, 2008 at 11:27 PM, Ramanathan RV <[EMAIL PROTECTED]>wrote: > Hello, > > As per spring documentation, it is said that whenever an exception occurs, > spring framework would eventually rollback transaction, i

ServletOutputStream

2008-07-29 Thread Mike Rooney
I created a small webapp that extracts data from a DB, creates an Excel file from that data (using Apache POI), which then streams the file to the end user's browser.  Everything is working fine, however I have to set the Action class' return type to 'NULL' since I am setting the servlet respons

[s2] Do I need to define the struts2 filter?

2008-07-29 Thread James Carr
In all the examples of tiles2+struts2 I find online, they only show using the struts2-tiles-plugin listener in the web.xml (they always omit the rest of the web.xml). Do I still need to include the struts2 filter? When i deploy, it breaks. Claiming the filter is undefined, and only does this in pr

[OT] Re: Struts2 and Jquery problem with LightBox or thickbox

2008-07-29 Thread Dave Newton
--- On Tue, 7/29/08, prashanth2 <[EMAIL PROTECTED]> wrote: > THIS WORKS FINE NOW..:working:, BUT GUYS ANYBODY IMPLEMNTED > THICKBOX/LIGHTBOX > USING AJAX(ANY) FRAMEWORK, if so ur help would be > appreciatable. > The problem with jquery thickbox is , it is loading way > slow..so i dont > think Jquer

Re: Possible to iterate through a java.util.Set using Struts 1?

2008-07-29 Thread Dave Newton
--- On Tue, 7/29/08, Martin <[EMAIL PROTECTED]> wrote: > If you're using Struts 2 use the webwork Iteration tags > Iterates over a collection. > Generates iterators. > Appends several iterators. > Gets a subset of an iterator. > Merges several iterato

Re: Possible to iterate through a java.util.Set using Struts 1?

2008-07-29 Thread Martin
If you're using Struts 2 use the webwork Iteration tags Iterates over a collection. Generates iterators. Appends several iterators. Gets a subset of an iterator. Merges several iterators into one. Sorts an iterator http://cwiki.apach

Re: [S2} REST plugin & Security

2008-07-29 Thread Mike Watson
Thanks Jeromy, Yep, we did get the standard JEE security working in WAS. (Fat-fingered typing in the web.xml was the culprit). I'll have a look at the Sping option if we find the container stuff a bit lacking. Thanks again for your feedback. Mike 2008/7/29 Jeromy Evans <[EMAIL PROTECTED]>: > >

Re: Struts2 and Jquery problem with LightBox or thickbox

2008-07-29 Thread prashanth2
THIS WORKS FINE NOW..:working:, BUT GUYS ANYBODY IMPLEMNTED THICKBOX/LIGHTBOX USING AJAX(ANY) FRAMEWORK, if so ur help would be appreciatable. The problem with jquery thickbox is , it is loading way slow..so i dont think Jquery is the right solution.. prashanth2 wrote: > > I tried to implement

Re: [S2] Testing if session variable is present

2008-07-29 Thread Milan Milanovic
Hi, it is S2, I wrote this in subject of this topis. Thanks, I'll try it. -- Regards, Milan felipe.lorenz wrote: > > Hummm.. Struts 1 or 2? > > This code is to S2. > > > > do something > > > > I didnt test it, so im not sure about the code. > > But try it, and tell us. > > Felip

Re: Possible to iterate through a java.util.Set using Struts 1?

2008-07-29 Thread Ylva D
It's actually a thesis which I've been working on for more than 6 months (and I am trying to finish it now as soon as possible). When the specification for it was written Struts 1 was more accurate, I suppose, but that wasn't my decision. /Ylva Jim Kiley wrote: > > If this is new development,

RE: Possible to iterate through a java.util.Set using Struts 1?

2008-07-29 Thread Martin Gainty
If you want to go that way but Set extends Collection http://publib.boulder.ibm.com/infocenter/wsadhelp/v5r1m2/index.jsp?topic=/com.sun.api.doc/java/util/Set.html Collection supports iterator() method which returns an iterator() Iterator iterator()which you can use to iterate thru the collection

Re: Possible to iterate through a java.util.Set using Struts 1?

2008-07-29 Thread Jim Kiley
If this is new development, I don't understand why you would deliberately choose Struts 1 over Struts 2. Unless your goal is to prove that Struts has too many drawbacks to use. jk On Tue, Jul 29, 2008 at 2:50 PM, Ylva D <[EMAIL PROTECTED]> wrote: > > Yes, I suppose I could do that but then I co

Re: Possible to iterate through a java.util.Set using Struts 1?

2008-07-29 Thread Ylva D
Yes, I suppose I could do that but then I consider that a drawback of Struts. Is there no other way? If there isn't, I think I'd rather use a scriptlet no matter how bad it looks.. (It's also because I'm doing this "Struts project" like a new version of a project where I didn't use Struts and in t

Re: Possible to iterate through a java.util.Set using Struts 1?

2008-07-29 Thread Jim Kiley
Any reason you can't transform the Set into a List at the back end, and then iterate over the List? jk On Tue, Jul 29, 2008 at 2:16 PM, Ylva D <[EMAIL PROTECTED]> wrote: > > Hi everyone! > > I've just started learning Struts (1) and this is my current problem: > I have a java.util.Set which is s

Possible to iterate through a java.util.Set using Struts 1?

2008-07-29 Thread Ylva D
Hi everyone! I've just started learning Struts (1) and this is my current problem: I have a java.util.Set which is saved in the current session and I'm trying to use Struts for checking if it's not empty and in that case iterating through it (from a JSP). This is the beginning of that code:

Re: [S2] Testing if session variable is present

2008-07-29 Thread Ylva D
Hi Milan, If you're using Struts 1 you should be able to use the logic:present tag like this: Hope this helps! /Ylva Milan Milanovic wrote: > > Hi, > > I need to test in jsp if some session variable is present, and based on > that to > show some struts view code or not. How can I do t

S2 and Spring - exception mapping

2008-07-29 Thread Ramanathan RV
Hello, As per spring documentation, it is said that whenever an exception occurs, spring framework would eventually rollback transaction, if any active is present. I am using spring in combination with S2 and I do map all the exceptions taking the user to error page. I am just wondering if when wo

Re: [S2] Testing if session variable is present

2008-07-29 Thread Felipe Lorenz
Hummm.. Struts 1 or 2? This code is to S2. do something I didnt test it, so im not sure about the code. But try it, and tell us. Felipe Lorenz On Tue, Jul 29, 2008 at 9:34 AM, Milan Milanovic <[EMAIL PROTECTED]>wrote: > > Hi, > > I need to test in jsp if some session variable is pres

[S2] Testing if session variable is present

2008-07-29 Thread Milan Milanovic
Hi, I need to test in jsp if some session variable is present, and based on that to show some struts view code or not. How can I do that ? -- Thx, Milan -- View this message in context: http://www.nabble.com/-S2--Testing-if-session-variable-is-present-tp18716278p18716278.html Sent from the St

Re: Is this a wart on the framework?

2008-07-29 Thread stanlick
That is good news! When presented with a new framework to consider, easily being able to present a dynamic web page is sort of a big deal.:rules: If you look across the attributes/docs on the struts tags you find the primary attributes key, name and id are sprinkled around placing the developer

Re: There is no Action mapped for namespace / and action name ...

2008-07-29 Thread John Moose
re-ordered the libraries and builders, forced JDK compiler compliance to 5.0 ( definitely *not* 6.0 !!) in Eclipse and voila...runs great. never *really* thought it was a Struts2 problem ; ) On Tue, Jul 29, 2008 at 9:26 AM, John Moose <[EMAIL PROTECTED]> wrote: > A very wierd situation...I have

Re:

2008-07-29 Thread holod
dojo.event.topic.subscribe("/afterDeleteLaw", function(data, request, widget){ //data : text returned from request(the html) It is my json //request: XMLHttpRequest object //widget: widget that published the topic var _mydata = eval("(" + data +")"); }); and:

Re: S2: s:include tag and s:param

2008-07-29 Thread Eric Nielsen
So I tried the "param." access path last night. That wasn't working, the documentation referenced a "parameters." instead. I managed to get that working with s:component, but no luck with s:include. I don't really care if I use component versus include; however I liked the include slightly bette

Re: Background Threads

2008-07-29 Thread dave.smith
Thanks for the replies. I am using Java 1.5, so I'll definitely look into java.util.concurrent. I do not care about the response from the server, but just about posting the data to the HTTPS server. Thanks, Dave Jeromy Evans - Blue Sky Minds wrote: > > > If you're using Java 1.5+, the stand

Re: Background Threads

2008-07-29 Thread Frank W. Zammetti
Is it still the case, given the JDK 1.5 concurrency stuff, that you are still not technically allowed to spawn threads in a J2EE container (per spec guidelines)? Did the latest J2EE spec loosen that restriction maybe? Ignoring for the moment the fact that we all do it and have been for a long tim

Check if object in list (s:iterator additional constraint)

2008-07-29 Thread netslow
I hello experts. I'm quite new in struts2, and I have a question. I have an action ShowReports which returns two lists of reports: reports and badReports. I would like to show these reports bud I need also check if current report belongs to badReports list, and if it does notify user about it. Wha

Re: There is no Action mapped for namespace / and action name ...

2008-07-29 Thread John Moose
A very wierd situation...I have two projects in the Eclipse workspace -- Tagging and Dashbd They both use the REST plugin and follow the naming conventions, etc. Tagging will build, re-deploy and run perfectly. When I close that project and open Dashbd, build, re-deploy and run I get the Action ma

Re: Is this a wart on the framework?

2008-07-29 Thread Musachy Barroso
We have been trying to remove unused params from the tags, and make them consistent (like adding a 'var' attribute to 'url' tag, and deprecating 'id'), in this case, the 'id' attribute should be removed. All it takes is to add an annotation to the tag class. musachy On Tue, Jul 29, 2008 at 8:43 A

Is this a wart on the framework?

2008-07-29 Thread stanlick
I have been away from Struts 2 for many months and was prompted with this question yesterday: Why does this code throw a null pointer exception? After jacking around with it for nearly an hour I realized that id should be name! It seems the adjoining tags were using the id attribute and

struts record output and entry

2008-07-29 Thread cpanon
Hello I am having a difficult time designing and implementing an interaction of displaying and accepting user input of multiple records at once.  I can create a collection of records, but records are complex, composed of other objects that are themselves composed of text strings that I want rend

Re:

2008-07-29 Thread holod
Thanks newton.dave , I've spent some time experimenting with tag attributes. Now, I have problem with notifyTopics. Please, see my function: 1. dojo.event.topic.subscribe("/afterDeleteLaw", function(data, request, widget){ //data : text returned from request(the html) It is my json //re

Re: [S2] Form doesn't redirect

2008-07-29 Thread Milan Milanovic
Hi Dave, thank you on Ajax reference. I know basically Ajax and I'm using it in my applications for simple updating of data. I just forgot to remove theme="ajax" from submit button and that was the problem, as I said so. -- Regards, Milan newton.dave wrote: > > --- On Mon, 7/28/08, Milan Mila

S2: Implement header issue

2008-07-29 Thread [EMAIL PROTECTED]
Hi, The header in my app shows different resources based on the language parameter. It needs to be insert to each page. There are two appoaches in my mind. 1. Use s:include tag. In this case, lots of data need passing to it using tag, e.g., images, text, 2. Use s:action tag. In thi

Re: There is no Action mapped for namespace / and action name ...

2008-07-29 Thread Pauli Savolainen
Hi, I am having exactly the same problem. I was using Struts 2.1.1, switched to struts 2.1.2 (including the restful and codebehind plugins) and started to get this 'no action found' error. I am quite confident that I did not do anything that should've resulted in this. Of course I cannot be 100% s