Re: redirect does not work with Tiles.

2008-08-07 Thread Antonio Petrelli
2008/8/7 Griffith, Michael * <[EMAIL PROTECTED]>: > I cannot make result go to a new page. Chaining the result > does work, but the response shows my entire tile set showing up in the > inside tile, which is not what I want either. Version of Struts and Tiles? Antonio -

Re: configuration doc for struts 1.3,tiles with Rad 7.5

2008-08-07 Thread Antonio Petrelli
2008/8/7 sam thothi <[EMAIL PROTECTED]>: > If i change it to 1.3 , then i get the following error in the tiles plugin What error? Is there a stack trace? If yes, post it here. Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: struts2 map of maps

2008-08-07 Thread JeffShelley
Thanks Dave. It actually looks like adding the ticks doesn't work (though I'll confirm that IS a reason why it wouldn't work). It's good to know someone's gotten something similar working, though... I'll keep tinkering with it. Is there any word on getting a more verbose error message than th

Re: Struts 2 select tag

2008-08-07 Thread srini vasan
Hi, If you are trying to retrieve the arraylist data assigned in the action u need to do the following. If this is ur problem try the below code For ex : private ArrayList aldata;//ArrayList declaration and in jsp u need to add it as On Mon, Jul 28, 2008 at 11:43 PM, Deepika Appana <[EMAIL

Re: Popup window

2008-08-07 Thread Frans Thamura
On Fri, Aug 8, 2008 at 9:08 AM, mujoko mujoko <[EMAIL PROTECTED]>wrote: > Dear Struts 2 users > > > I'm trying to create poup window in struts 2, > Could you please to give sample code for this task in struts 2? > > taka a look our cimande project http://www.sf.net/projects/cimande we use a lot

Re: Tree Control events problem..

2008-08-07 Thread Narayana S
Did any one see this mail ? :( On Thu, Aug 7, 2008 at 12:52 PM, Narayana S <[EMAIL PROTECTED]> wrote: > Hi, > > in my project i need to use a tree control, i have started looking > at tree tag of struts, but though i wrote some event handle, it is not at > all executing any events. he is

Popup window

2008-08-07 Thread mujoko mujoko
Dear Struts 2 users I'm trying to create poup window in struts 2, Could you please to give sample code for this task in struts 2? regard -- Mujoko

Re: ApplicationResources.properties and JavaScript

2008-08-07 Thread Wes Wannemacher
On Thu, 2008-08-07 at 17:43 -0700, Dave Newton wrote: > --- On Thu, 8/7/08, nauke. <[EMAIL PROTECTED]> wrote: > > No matter how I tried to pass those values in as > > parameters, my JavaScript function kept treating > > it as literal text > > > > Like: > > > > <%=String aString = "Hi There!"%>

Re: struts2 map of maps

2008-08-07 Thread Dave Newton
--- On Thu, 8/7/08, JeffShelley <[EMAIL PROTECTED]> wrote: > I'm trying to set a whole hierarchy (from a TON of checkboxes) coming > in to a request and not having much luck. I'm using the spring > object factory. Well at first glance, I'm pretty sure that "[hi]" isn't going to work, since th

Re: ApplicationResources.properties and JavaScript

2008-08-07 Thread Dave Newton
--- On Thu, 8/7/08, nauke. <[EMAIL PROTECTED]> wrote: > No matter how I tried to pass those values in as > parameters, my JavaScript function kept treating > it as literal text > > Like: > > <%=String aString = "Hi There!"%> That's most likely not what you wanted, you mean: <% String aString =

Re: More OGNL Woes

2008-08-07 Thread Dave Newton
--- On Thu, 8/7/08, Zoran Avtarovski wrote: > You pass parameters to a page with a S2 tag but can¹t > retrieve them when on that page, WTF. Why bother allowing > it in the first place. You *can* retrieve them, just not in the way you want. They're added as request parameters and available via J

struts2 map of maps

2008-08-07 Thread JeffShelley
I'm trying to set a whole hierarchy (from a TON of checkboxes) coming in to a request and not having much luck. I'm using the spring object factory. I don't know whether the problem is in xwork, Spring, Struts or me. Is what I'm trying even possible? Thanks! --Jeff EXAMPLE---

Re: ApplicationResources.properties and JavaScript

2008-08-07 Thread nauke .
Hi Dave, Thanks for replying. Yeah I declared variables in my JSP file and tried to parse them through as arguments to the JavaScript function like mentioned. No matter how I tried to pass those values in as parameters, my JavaScript function kept treating it as literal text hehe! Like: <%=Strin

Re: More OGNL Woes

2008-08-07 Thread Zoran Avtarovski
Thanks to everybody who replied. But what I¹m hearing is that the OGNL implementation in Struts2 is half arsed. Musachy, if you look at the docs http://struts.apache.org/2.x/docs/ognl-basics.html it tells me that parameters is a named object. I tend to believe you, but how I would I know. And in t

Re: ApplicationResources.properties and JavaScript

2008-08-07 Thread Dave Newton
--- On Thu, 8/7/08, nauke wrote: > There must be a more elegant solution than this! Not really: you're trying to access server-side resources from the client side. If you're not going to run your JavaScript through the JSP processor your options are limited, for obvious reasons. One solution wa

Re: ApplicationResources.properties and JavaScript

2008-08-07 Thread nauke .
Hi Owen, Thanks for your reply. I think I did try that. The only solution I have found to work was to do this: Application.properties: my.message=Hi There! myJSPFile.jsp: myJSFile.js var msg = document.myform.myMessage.value; alert(msg); The deadline is today so I'll have to do what works so

Re: ApplicationResources.properties and JavaScript

2008-08-07 Thread Owen Berry
In your jsp code set a variable to be the value you want, as shown earlier in this thread by Balwinder, and then read that variable in your Javascript code. If you're using OO javascript, you can make it nice and tidy by passing the parameter in your "constructor", or set it in a method. Example:

Re: More OGNL Woes

2008-08-07 Thread Becky . L . O'Sullivan
I had the same problem, and someone pointed out to me that it does say in the s:include reference page (http://struts.apache.org/2.x/docs/include.html) that parameters passedvia s:include are not available on the stack. Well...it doesn't phrase it that way, but that's basically it. Yes, it's sill

Re: ApplicationResources.properties and JavaScript

2008-08-07 Thread nauke .
Thanks for that. I think that only works if the javascript is within the JSP file right? My javascript functions are in it's on .js file ... On Thu, Aug 7, 2008 at 8:23 PM, Balwinder <[EMAIL PROTECTED]> wrote: > nauke. wrote: > >> Hi all, >> >> Is there a way to access values in ApplicationResour

Re: configuration doc for struts 1.3,tiles with Rad 7.5

2008-08-07 Thread sam thothi
Dave, i have all the s1.3 dependencies. i have a question in the doctypes for the strutscofig.xml Rightnow , i am running the application with the doctype in strutsconfig.xml as http://struts.apache.org/dtds/struts-config_1_1.dtd"; > If i change it to 1.3 , then i get the following error in the

Re: More OGNL Woes

2008-08-07 Thread André Cedik | GDG
You can also use a complete different approach. I've done this recently and it worked fine for me. On the jsp that has your you do the following: And in your myPage.jsp you just read the value from the stack like you'd normally do: Musachy Barroso wrote: First, that was funny. Second, a

Re: struts2 select onchange to trigger ajax call

2008-08-07 Thread Dave Newton
Did you try publishing a topic onchange and having the div have that topic in its listenTopics? Dave --- On Thu, 8/7/08, Markus Doring <[EMAIL PROTECTED]> wrote: > From: Markus Doring <[EMAIL PROTECTED]> > Subject: struts2 select onchange to trigger ajax call > To: user@struts.apache.org > Dat

Re: More OGNL Woes

2008-08-07 Thread Musachy Barroso
First, that was funny. Second, and this is *annoying*, "parameters" is not a named object when using the "component" tag, so I assume it is the same for "include", so instead of using "#parameters", use "parameters" which is the same as "top.parameters". musachy On Thu, Aug 7, 2008 at 3:28 PM, Zo

redirect does not work with Tiles.

2008-08-07 Thread Griffith, Michael *
Hello All, I cannot make result go to a new page. Chaining the result does work, but the response shows my entire tile set showing up in the inside tile, which is not what I want either. Here is my scenario: I have a JSP that includes a struts action as such... ]--- begin edit.

struts2 select onchange to trigger ajax call

2008-08-07 Thread Markus Doring
I would like to have an onchange event from a select element to trigger an AJAX call that replaces a div. I was trying to use the struts 2.0.11 ajax theme, but I cant find a why to bind the select element to my div. In struts 2.1 I should be able to use sx:bind, but that is not available in 2.0.1

More OGNL Woes

2008-08-07 Thread Zoran Avtarovski
I¹m really starting to develop a love-hate (and fear) relationship with OGNL. Please bear with my long winded explanation, it' therapeutic (for me at least). And, please, I really do need help. I'm finding using OGNL like dating a supermodel, who also suffers from multiple personality disorder and

Re: configuration doc for struts 1.3,tiles with Rad 7.5

2008-08-07 Thread Dave Newton
Have you turned up logging and checked the logs to see if it says what class you're missing? Do you have all the S1.3 dependencies? Dave --- On Thu, 8/7/08, sam thothi <[EMAIL PROTECTED]> wrote: > From: sam thothi <[EMAIL PROTECTED]> > Subject: Re: configuration doc for struts 1.3,tiles with R

Re: configuration doc for struts 1.3,tiles with Rad 7.5

2008-08-07 Thread sam thothi
I am getting two errors while configuring when i change the class loader to multiple which is default , it's saying The JSP container failed to load the TagExtraInfo class [org.apache.struts.taglib.tiles.UseAttributeTei] from /WEB-INF/struts-tiles.tld [8/7/08 11:49:16:525 CDT] 000d FfdcProvi

Re: configuration doc for struts 1.3,tiles with Rad 7.5

2008-08-07 Thread Dave Newton
--- On Thu, 8/7/08, sam thothi <[EMAIL PROTECTED]> wrote: > Any one can provide me with the configuration docs for > struts 1.3,tiles with Rad 7.5. Configuration docs? Like what? The app is configured like any other RAD app, and like any other Struts 1 app, AFAIK. Dave ---

configuration doc for struts 1.3,tiles with Rad 7.5

2008-08-07 Thread sam thothi
Hi all, Any one can provide me with the configuration docs for struts 1.3,tiles with Rad 7.5. Thanks in advance for your help. thanks, Sam

Re: PrincipalAware & PrincipalProxy, glue to provide my own Impl

2008-08-07 Thread Nils-Helge Garli Hegvik
The "magic" happens in the ServletConfigInterceptor for a regular webapp and the PortletAwareInterceptor for a portlet app. So basically you should be able to do what you want by writing a custom interceptor and use it in your stack. Nils-H On Thu, Aug 7, 2008 at 5:20 PM, Torsten Krah <[EMAIL PRO

append value inside <:iterator

2008-08-07 Thread holod
I use inside this tag I want to compose a String. I've tried this one:

PrincipalAware & PrincipalProxy, glue to provide my own Impl

2008-08-07 Thread Torsten Krah
Hi, there are 2 known implemeting classes yet, one for Servlet and one for Portlets. I want to provide my own implementation of PricipalProxy. Whats missing to me, where is the glue to my webapp, how do i announce my own implemetation to be used? thx -- Bitte senden Sie mir keine Word- oder

yikes! : net.sf.json.JSONException: There is a cycle in the hierarchy!

2008-08-07 Thread John Moose
Anyone know what this means?? How can I change the pre-configured STRICT strategy : net.sf.json.util.CycleDetectionStrategy$StrictCycleDetectionStrategy to LENIENT ?? and will that even help me here? Using Hibernate 3.1 with Struts 2.1.3 and the REST plugin. XML serializaion works fine after ch

Re: [s2] getting checkbox values in nested iterator tags

2008-08-07 Thread Kevin Wade
I re-wrote my ognl expression slightly into this: parentList[%{#parentliststatus.index}].childList[% {#childliststatus.index}].selected It seems to work now. Perhaps I had a typo in my original ognl statement? I don't know. Probably something dumb. In the immortal words of Chris Farley

Re: [s2] getting checkbox values in nested iterator tags

2008-08-07 Thread Kevin Wade
S2 2.0.11. The selected field is a boolean. And there are isSelected() and setSelected() methods. Thanks for asking. On Aug 7, 2008, at Thursday, August 7, 2008 - 9:24 AM, Gabriel Belingueres wrote: Which version of S2 are you using? The selected field: Is it boolean or Boolean? Did yo

Re: [s2] getting checkbox values in nested iterator tags

2008-08-07 Thread Gabriel Belingueres
Which version of S2 are you using? The selected field: Is it boolean or Boolean? Did you write a getSelected() getter? or is it an isSelected() getter? 2008/8/7, Kevin Wade <[EMAIL PROTECTED]>: > This is probably simple and I think I'm close, but I can't quite get it to > work: the proper ognl ex

Re: Fwd: [s2] Google XML Pages (GXP) to replace Freemarker in tags?

2008-08-07 Thread Dave Newton
(Hmm, I think that might have been a list of GXP apps, now that I think about it.) --- On Thu, 8/7/08, Dave Newton <[EMAIL PROTECTED]> wrote: > From: Dave Newton <[EMAIL PROTECTED]> > Subject: Re: Fwd: [s2] Google XML Pages (GXP) to replace Freemarker in tags? > To: "Struts Users Mailing List"

Re: Fwd: [s2] Google XML Pages (GXP) to replace Freemarker in tags?

2008-08-07 Thread Dave Newton
One of the messages in that thread listed some of the apps. Dave --- On Thu, 8/7/08, GF <[EMAIL PROTECTED]> wrote: > From: GF <[EMAIL PROTECTED]> > Subject: Fwd: [s2] Google XML Pages (GXP) to replace Freemarker in tags? > To: "Struts Users ML" > Date: Thursday, August 7, 2008, 5:59 AM > I'm c

[s2] getting checkbox values in nested iterator tags

2008-08-07 Thread Kevin Wade
This is probably simple and I think I'm close, but I can't quite get it to work: the proper ognl expression to use to get the value of a checkbox w/in nested iterator tags. I've got an ArrayList of Parent objects called parentList. Each Parent object contains another array of Child object

Re: Struts 2 AJAX

2008-08-07 Thread stanlick
Thanks Dave. Like Struts 1, I think Struts 2 tags that are not required by the core framework are largely be ing passed over in favor of JSTL. It is easier to use tags that are stable, standard and well documented and duplicate tags that do effectively the same thing are confusing. StrutsRequest

Re: ApplicationResources.properties and JavaScript

2008-08-07 Thread Balwinder
nauke. wrote: Hi all, Is there a way to access values in ApplicationResources.properties in Javascript functions? I've found a way where I can just pass a value from the app resource file as a parameter, but discovered that I return alerts with different messages based on some criteria. Any ide

struts-core-2.0.11.2 in two places on the server, causing exceptions

2008-08-07 Thread Ylva Degerfeldt
Hi, dear Struts users! I'm trying to learn and use Struts 2 (actually migrating from Struts 1 to 2) and I have written lots of java and xml code, which should be working. I just can't run the application! When I try to, I get this exception: Caused by: Bean type class com.opensymphony.xwork2.Obje

Fwd: [s2] Google XML Pages (GXP) to replace Freemarker in tags?

2008-08-07 Thread GF
I'm curious to know more about this. Which google apps do use Struts2? Thanks! On Sat, Jul 26, 2008 at 7:02 AM, Don Brown <[EMAIL PROTECTED]> wrote: > It is pretty well known that Google uses WebWork 2 and Struts 2 in > many of its applications,

Re: Server Side caching of .action(s)

2008-08-07 Thread GF
I need something inside Java, since I want to get some cached pages and read them server side to use them as fragments, I need to handle from a friendly administration panel which url to cache and how long.. and so on. thanks anyway :-) On Thu, Aug 7, 2008 at 11:12 AM, Al Sutton <[EMAIL PROTECTED]

Re: Server Side caching of .action(s)

2008-08-07 Thread Al Sutton
Apache HTTPD :- http://httpd.apache.org/docs/2.0/mod/mod_proxy.html#forwardreverse GF wrote: Hello. I want to do some server side caching of some specific .action of my websites. I am currently working on the CacheFilter of OsCache, but it doesn't seem very good and has some limitations I don't

OptionsTransferSelect error

2008-08-07 Thread Francisco Exposito
Hi, I am trying to use the optionsTransferSelect but it shows me the error "moveSelectedOptions is not defined". I have this jsp page and it works if I open this page directly; but I access to this page using ajax. Any idea? <%@ page pageEncoding="ISO-8859-1" %> <%@ taglib prefix="s" uri="/st

Server Side caching of .action(s)

2008-08-07 Thread GF
Hello. I want to do some server side caching of some specific .action of my websites. I am currently working on the CacheFilter of OsCache, but it doesn't seem very good and has some limitations I don't like. Can you suggest me some good open source alternatives to analyze? Thanks

Tree Control events problem..

2008-08-07 Thread Narayana S
Hi, in my project i need to use a tree control, i have started looking at tree tag of struts, but though i wrote some event handle, it is not at all executing any events. he is the part of code... Showcase - UI Tag Example - Tree Example (Static) * function treeNodeSelected(