Re: S2 insertnig key and pojo(as its value) into a map

2008-02-15 Thread Maxx
Hello, I seriously doubt it is actually really working like presented in the Struts doc. As explained in a previous email today (entitled "Unable to make Type Conversion work in Struts2"), I'm currently facing a problem with this "Type Conversion" in a very *simple* example... Greets, Maxx -

JSP Tree

2008-02-15 Thread naveen k
Hi, I am using struts1.1 for my application. I want to show some links in tree view on JSP page. How can i do that in JSP pages? Is there any predefined tag for that? If possible can any one send me a sample code. Naveen

RE: and AJAX

2008-02-15 Thread Stanley, Eric
Been, there done that. Anything out there with a real example? -Ryan -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Thursday, February 14, 2008 4:23 PM To: Struts Users Mailing List Subject: Re: and AJAX start here http://struts.apache.org/2.0.11/docs/select.ht

Re: radio tag - how to have the items order vertically?

2008-02-15 Thread Jeromy Evans
Dave Newton wrote: --- Jeromy Evans <[EMAIL PROTECTED]> wrote: Unfortunately the the cssStyle is applied to the input, not to the label as well. On this note I'm wondering if anybody has any desire for the default theme to have things like label styles, an "id" on the (which I need

Re: radio tag - how to have the items order vertically?

2008-02-15 Thread Dave Newton
--- Jeromy Evans <[EMAIL PROTECTED]> wrote: > Unfortunately the the cssStyle is applied to the input, not to the label > as well. On this note I'm wondering if anybody has any desire for the default theme to have things like label styles, an "id" on the (which I need for hiding/showing etc) an

Re: radio tag - how to have the items order vertically?

2008-02-15 Thread Jeromy Evans
xianwinwin wrote: Thank you Jeramy! I tried to use the cssStyle for a while and came up with this: list="groups"/> Unfortunately the the cssStyle is applied to the input, not to the label as well. As you're using a list to create the radio buttons you have little option but to create

Re: radio tag - how to have the items order vertically?

2008-02-15 Thread xianwinwin
Thank you Jeramy! I tried to use the cssStyle for a while and came up with this: the result came up with a 'twist' the name-of-group comes after the radio button image --> http://aycu20.webshots.com/image/43859/2003464400042803302_fs.jpg any idea how to fix it, so it will be on the same line

Re: More sitemesh struts2 problems

2008-02-15 Thread daveck
SOLVED! By adding the following to decorators.xml. /struts/dojo/* /struts/ajax/* /struts/simple/* daveck wrote: > > sitemesh is taking the content from the first pair of tags in the main.jsp > (my main decorator) and putting it in the > tag of the page

Re: How to pre-select options in

2008-02-15 Thread Laurie Harper
jpiser wrote: I am new to Struts 2 and if anyone can help me out I would greatly appreciate it. I am populating a select box with a list of job titles. After posting the form I want to the list to remember the previous selection. (Ridiculously simple stuff right?) But, I am missing something b

Re: Custom Tags for Struts2

2008-02-15 Thread Laurie Harper
Jeremy's post is the best HOWTO I've seen... There's also the source code for all the existing tags which you can use as reference material. L. lbastil wrote: Is there any complete Howto or Tutorial right now on this issue? Should be really of interest ... Thank you, Basti Jeromy Evans - B

Re: S2 insertnig key and pojo(as its value) into a map

2008-02-15 Thread Laurie Harper
ravi_eze wrote: hi, i have a form which holds a textfield (name:username). I need to wrap this username into an object user and insert it into a map as the value object for the key 'field0'. Action class: User user; //with setters and getters. Map map = new LinkedHashMap< .., .. >();//with s

Re: [LAZY] I could research this, but crunched for time... using different messages?

2008-02-15 Thread Laurie Harper
Struts only differentiates the two message types, so you would have to pick one of your three categories and arrange for those messages to be stored under a different key. You'd then need to use something other than the html:messages tag to display them, since that tag only knows about the two

Re: Upgrade from Struts1.1 to Struts1.3.8- UnknownHostException: java.sun.com

2008-02-15 Thread Laurie Harper
Haroon Rasheed wrote: Recently I have upgraded from Struts 1.1 to Struts 1.3.8. I get the following exception during server-startup.( when I run Resin 3.1.3 -with out internet access). My Server starts successfully without any Struts issues if I've internet access. I checked for all the DTDs/XS

Re: Struts 2 client side validation and preparable interceptor?

2008-02-15 Thread Laurie Harper
jpiser wrote: I have a couple of questions regarding the preparable interceptor: 1. By implementing the preparable interface alone I can have my prepare() method called before my action. Great, no problem. But If I want to utilize multiple prepare methods, e.g. prepareInput(), prepareCreate(),

Re: [struts] Dynamic Results

2008-02-15 Thread stanlick
I like this idea *more*! I'll write the JIRA on this plug-in and include a suitable fix for the glaring oversights. On Fri, Feb 15, 2008 at 10:30 AM, Dale Newfield <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > I think if dynamic parameters are supported in the mappings, they should >

Unable to make Type Conversion work in Struts2

2008-02-15 Thread Maxx
Hello, Refering to http://struts.apache.org/2.x/docs/type-conversion.html , I'm currently trying to make Type Conversion working on a really simple example. And unfortunately, nothing's working. Below are the sources. Could someone please tell what I'm doing wrong (I suspect something with the OG

[LAZY] I could research this, but crunched for time... using different messages?

2008-02-15 Thread Rick Reumann
Struts 1.1.. How would I display validation messages different than other standard messages that I want to display? I'm using a common messages header, but I'd like to modify it so that I could display errors differently. It probably has to do with how I'm saving messages... For example for Valid

Error with action call from div

2008-02-15 Thread Paranoid_Fabio
Hello. I've the following problem I'm stuck with: A tabbed panel with some divs: . in the widget, i get the "loa

Re: Dynamic Results

2008-02-15 Thread stanlick
>While in "real life" you actually *do* catch more flies with vinegar than >honey, it's suggested that when dealing with actual people you follow the >*spirit* of maxims such as this, necessitating the need to occasionally i>gnore any underlying untruths. Your current tactic is sub-optimal. What..

Re: [struts] Dynamic Results

2008-02-15 Thread Dale Newfield
Dale Newfield wrote: It sounds like a reasonable set of patches could be made to xwork instead. If parse were made a result attribute (rather than a parameter), then the framework could be modified to conditionally do the parsing before setting values on the result (rather than the result its

Which bundled plug-in is best?

2008-02-15 Thread stanlick
I am going to work on the bundled JFreeChart plug-in so it will behave according to the user declaration. Before I begint, I would like to have a model plug-in to compare against. In the meantime, what do you guys think should be expected from a plug-in? 1. Logging 2. Profiling 3. Impl

Re: Dynamic Results

2008-02-15 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > I think if dynamic parameters are supported in the mappings, > they should be supported whether the sample of documentation > utilizes them or not. It isn't the "mappings" that support dynamic parameters. It's the result implementations. What you are trying to s

Re: [struts] Dynamic Results

2008-02-15 Thread Dale Newfield
[EMAIL PROTECTED] wrote: I think if dynamic parameters are supported in the mappings, they should be supported whether the sample of documentation utilizes them or not. Do you agree that bundled plug-ins should pass a baseline compatibility test? It sounds like a reasonable set of patches coul

Re: Dynamic Results

2008-02-15 Thread stanlick
I think if dynamic parameters are supported in the mappings, they should be supported whether the sample of documentation utilizes them or not. Do you agree that bundled plug-ins should pass a baseline compatibility test? You can respond without consideration of volunteering your own time! I dec

Upgrade from Struts1.1 to Struts1.3.8- UnknownHostException: java.sun.com

2008-02-15 Thread Haroon Rasheed
Recently I have upgraded from Struts 1.1 to Struts 1.3.8. I get the following exception during server-startup.( when I run Resin 3.1.3 -with out internet access). My Server starts successfully without any Struts issues if I've internet access. I checked for all the DTDs/XSDs & TLD files which hav

Re: Dynamic Results

2008-02-15 Thread Ian Roughley
My mistake, I was thinking of a similar problem where I needed to pass a static param to the next action being invoked. In this case, the parameter had to be declared in the result stanza, but was not intended for the result type. We also didn't want it to be noise on the action. In this cas

Re: Dynamic Results

2008-02-15 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > I would propose that plug-ins shipped with the core work according to the > documentation. > [...] > I am willing to help if necessary and eligible. File a JIRA and include a patch. For completeness, the l

Re: Dynamic Results

2008-02-15 Thread stanlick
Actually when OGNL fails to locate a setXXX(String) on the result when encountering result parm"${width} " it fails with 2008-02-15 09:17:25,991ERROR [http-8080-2] ( DefaultActionInvocation.java:createResult:198) - There was an exception while instantiating the result of type org.apache.struts2.d

Re: Parameters in URL

2008-02-15 Thread Maxx
OK, understood. Did you try what I advised you? To make it clear, what is the JSP code of the other links/actions..? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Struts 2 client side validation and preparable interceptor?

2008-02-15 Thread jpiser
I have a couple of questions regarding the preparable interceptor: 1. By implementing the preparable interface alone I can have my prepare() method called before my action. Great, no problem. But If I want to utilize multiple prepare methods, e.g. prepareInput(), prepareCreate(), etc.. that does

Re: Dynamic Results

2008-02-15 Thread Ian Roughley
I think you'll find this happens will all the result types and not just the chart result. If you have additional info in the result config as parameters, it will try to set is on the result type, fail with an exception, and then set it correctly on the action. As to a resolution... as both re

Re: Parameters in URL

2008-02-15 Thread Paranoid_Fabio
I'm talking about the current url and the other urls next to the switch locale call. 1) i call myAction and the url=.../myAction.action 2)I click the english flag. The code executed here is the one i posted: en_US 3)The main admin page is shown and the url beco

Réf. : RE: Javascript issue encountered with

2008-02-15 Thread matthieu . martin
Hi, The tag actually was in a div loaded in AJAX, and thanks to you it now works just fine ! Thanks a lot ! Matthieu Internet [EMAIL PROTECTED] 15/02/2008 15:23 Veuillez répondre à user@struts.apache.org Pour user@struts.apache.org cc Objet RE: Javascript issue encountered with He

RE: Javascript issue encountered with

2008-02-15 Thread LEONARD Julien (Consulting for ACCOR Hotels)
Hello, Do the tag is in a div loaded in AJAX ? If you load the tag in a ajax div, js will not be included. In this case try with this : Julien -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Envoyé : vendredi 15 février 2008 15:15 À : user@struts.apache.org Obje

Javascript issue encountered with

2008-02-15 Thread matthieu . martin
Hi all, I am facing a particular problem, and I didn't find help on the web so I'm turning myself to you. I use in my Struts 2 application the UI tag . The parameters work fine and everything's displayed correctly on the screen. Nevertheless, the buttons just don't work. Nothing happens and I

Re: Evaluate a string property containing some OGNL expression

2008-02-15 Thread Maxx
Currently searching, I found something that might be related : it's a security fix about "recursive OGNL parsing" http://struts.apache.org/2.x/docs/s2-001.html (related to WebWork bug WW-2030). As I can read: *As of XWork 2.0.4, the OGNL parsing is changed so that it is not recursive* ... is my pr

Re: Ajax tabbedPanel and sitemesh problem

2008-02-15 Thread daveck
Yes. Shortly after I sent this message I added it in. Now I'm having another problem. The contents of the tag of the page being decorated is being replaced with the contents of the first html tag in the decorator. Jeromy Evans - Blue Sky Minds wrote: > > Is it possible your decorator

Re: Evaluate a string property containing some OGNL expression

2008-02-15 Thread Maxx
Well... Enough if it would only be for a presentation purpose, and as said I already have & use this : the aforementioned multiple tags. But when you have, let's say, about 50 , each corresponding with a single myObj.someSubList(X).someSubMap[Y](Z).subObj or myObj.someSubList(X).someSubMap[

Re: Evaluate a string property containing some OGNL expression

2008-02-15 Thread stanlick
If the object graph is too deep to easily code to in the web page, perhaps you could "pull up" the low level lists with a method at the top of your graph? I understand the frustration with verbose evaluations to get a simple String! Let's suppose you have Country--->State--->City--->Street--->Li

Re: Evaluate a string property containing some OGNL expression

2008-02-15 Thread Maxx
Of course the JSP if for prensentation. But this kind of "complex" OGNL expression is computed as each iteration of multiple tags (that's why I put some X/Y/Z variables, each resulting of a %{#someStatus.index} expression). In fact, the myObj is exposed by the Action class through regular getMyO

Re: Parameters in URL

2008-02-15 Thread Maxx
On Fri, Feb 15, 2008 at 9:46 AM, Paranoid_Fabio <[EMAIL PROTECTED]> wrote: > > I'm sorry but I meant "includeParams=none". I wrote it correctly in the code > but I posted it wrong. > The result is the same, params are included in the url. Which url(s) are talking about now ? If, as said above,

Re: Evaluate a string property containing some OGNL expression

2008-02-15 Thread stanlick
Could you put the "tricky & deep" dive code in your action and use simple OGNL expressions on your pages? I find when web pages start looking like myObj.someSubList(X).someSubMap[Y](Z).subObj.fieldName I am writing complex code in the *wrong* place. Remember what the web page is for... presentati

Evaluate a string property containing some OGNL expression

2008-02-15 Thread Maxx
Hello, As I wasn't able to find this out at the moment, I'm posting my question here : Would it be possible, within Struts2 tags, to evaluate a (String) property which contains the OGNL expression referring to an other property?? Example : testValue = // print 1

Re: Dynamic Results

2008-02-15 Thread stanlick
Thanks Dave -- You really are good at exploring the idiosyncratic realms! Since one should not have to crawl around in the bowels of a framework to discover why straightforward coding does not, I would propose that plug-ins shipped with the core work according to the documentation

Re: CharacterEncoding bug in Struts2?

2008-02-15 Thread Asgaut
Hi Laurie, And thanks for your quick answer! Here are my comments. I tried that first, changing the default encoding (in struts.xml) to utf-8. That works fine, in java and in our web application. The problem is our Sybase database which is configured to ISO-8859-1. And as our JDBC driver (jconn2)

Is Saxon incompatible with Struts 2?

2008-02-15 Thread Eduardo Yáñez Parareda
Hello, I've to use Saxon 8 within a Struts 2 application but I'm having the following exception: http://legalizate.blogspot.com

Re: German/Turkey etc decimal use comma in input fields.

2008-02-15 Thread Jeromy Evans
Ned Collyer wrote: Should something like this be in the core? its a couple of lines and ensures internationalisation for BigDecimals (which you should be using for any monetary stuff). I haven't found the code, but xwork apparently has BigDecimal conversion. I'm not sure if the problem is t

Re: tons of useless logging slowing my app down

2008-02-15 Thread Antonio Petrelli
2008/2/15, Giovanni Azua <[EMAIL PROTECTED]>: > > My setup is: > - Struts 2.1.x built from trunk > - I import only commons.logging.jar and not log4j (is not allowed). Well, if you don't use Log4J, then Commons Logging defaults to JDK 1.4logger. This link may help you: http://java.sun.com/j2se/1.

tons of useless logging slowing my app down

2008-02-15 Thread Giovanni Azua
hi, I have just bumped into the same logging issue as others have. I basically get tons of this: WARNING: Could not find property [theme] Feb 15, 2008 9:53:06 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn My setup is: - Struts 2.1.x built from trunk - I import only commo

Re: Parameters in URL

2008-02-15 Thread Paranoid_Fabio
I'm sorry but I meant "includeParams=none". I wrote it correctly in the code but I posted it wrong. The result is the same, params are included in the url. The code is: en_US Paranoid_Fabio wrote: > > Hi, i'm new to struts. I'm developing a web a