Re: Struts 2.1 Tree Problem

2008-09-11 Thread Jukka Välimaa
As far as I know, there is no way to set some nodes already extended server-side. You can open the nodes you want client-side using javascript, however. On Fri, Sep 12, 2008 at 6:48 AM, Narayana S <[EMAIL PROTECTED]> wrote: > Hi Jim, > >Thanks for your reply, tree control default shows

Re: error when rendering - java.net.SocketException: Broken pipe

2008-09-11 Thread Jeromy Evans
sharath karnati wrote: Hi All, In weblogic server log, I found these error multiple times. Is anyone come accross this kind of problem? 2008-09-11 07:12:47,415 ERROR [org.apache.struts2.components.UIBean] - error when rendering java.net.SocketException: Broken pipe One cause is t

Re: How to retrieve data from ognl in common jsp tags?

2008-09-11 Thread Chris Pratt
You can either add the support in your tag to handle the OGNL yourself (it's not too hard, but then again it ain't easy either). Or you can use the "var" (or "id") attribute support that most of the struts tags have to move the value from the OGNL stack to the page scope where the JSTL EL tags can

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file")

2008-09-11 Thread Jeromy Evans
Bobby Mitch wrote: The Xwork issue is this one : http://jira.opensymphony.com/browse/XW-649 They have not fixed it yet ... Can someone fix it with the changes described below on the method private static void parseValidators() { ...} of the class com.opensymphony.xwork2.validator.ValidatorFa

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file")

2008-09-11 Thread Bobby Mitch
The Xwork issue is this one : http://jira.opensymphony.com/browse/XW-649 They have not fixed it yet ... Can someone fix it with the changes described below on the method  private static void parseValidators() { ...} of the class com.opensymphony.xwork2.validator.ValidatorFactory   ? And then re

How to retrieve data from ognl in common jsp tags?

2008-09-11 Thread Haulyn R. Jason
Hi,all I design a tag, it's very common and it's a jsp tag, the code is like: --- public class NewsCommentTag extends TagSupport { /** * */ private static final long serialVersionUID = 2

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file")

2008-09-11 Thread Bobby Mitch
I found the JIRA issue for this problem : http://jira.opensymphony.com/browse/XW-649 Can someone fix it ? --- On Thu, 9/11/08, Musachy Barroso <[EMAIL PROTECTED]> wrote: From: Musachy Barroso <[EMAIL PROTECTED]> Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "

Re: Struts 2.1 Tree Problem

2008-09-11 Thread Narayana S
Hi Jim, Thanks for your reply, tree control default shows only root node, but 1. i want it to be shown extended by default to show the specified active node. 2. if i pass any node i want to find out the parent node of that node in the jsp page itself (in DOJO) i am kind of stuck in my

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file")

2008-09-11 Thread Musachy Barroso
Not sure, it probably should. On Thu, Sep 11, 2008 at 7:03 PM, Gabriel Belingueres <[EMAIL PROTECTED]>wrote: > replaceAll(" ", "%20") ? > Why not URL-encode it? [1] > > [1] http://java.sun.com/j2se/1.5.0/docs/api/java/net/URLEncoder.html > > 2008/9/11 Bobby Mitch <[EMAIL PROTECTED]>: > > Well, >

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file")

2008-09-11 Thread Gabriel Belingueres
replaceAll(" ", "%20") ? Why not URL-encode it? [1] [1] http://java.sun.com/j2se/1.5.0/docs/api/java/net/URLEncoder.html 2008/9/11 Bobby Mitch <[EMAIL PROTECTED]>: > Well, > I am willing to try then. > > Can someone send me that xwork-2.0.4.jar version, recompiled with the > modifications descri

Re: Struts2 + Dojo 0.4 + unbeforeunload problem

2008-09-11 Thread Jeromy Evans
Pablo Vázquez Blázquez wrote: Using dojo.addOnUnload(function) neither works. Besides that, I would need sht like dojo.addOnBeforeUnload, but it does not exist. I don´t think I should subscribe for an ajax-request-completion event, but for the beforeunload one, don´t I? Thanks. Use the doj

Re: SecurityFilter and Struts 1.3.8

2008-09-11 Thread dynamicd
in one of the previous projects we have used SecurityFilter with Struts1 successfully mtStruts wrote: > > Can anyone verify that they are successfully using the open source > SecurityFilter project with Struts 1.3.8? > > Thanks! > -- View this message in context: http://www.nabble.com/Sec

Re: [S2] Struts.xml and tag

2008-09-11 Thread Roger
On Thursday 11 September 2008 21:37:58 [EMAIL PROTECTED] wrote: > What package/class contains your > > String name = invocation.getProxy().getConfig().getPackageName(); > The call to String name = invocation.getProxy().getConfig().getPackageName(); is made by an interceptor which is defined in th

Re: Attribute action form tag is not valid Struts 2

2008-09-11 Thread Laurie Harper
artemisia wrote: Hi guy, i'm new in struts 2. I'm following the apache struts 2 tutorial, using eclipse IDE. When I use the tag s:form I have the following error on the action attribute: "The value of action attribute in form tag is not valid". But the project run ok. Bad configuration eclipse? t

Re: Dynamic radio buttons with bean

2008-09-11 Thread danipruebas
Hi I am still (fighting) trying to display a radio button dynamically reading data from a DB, but I get this error: javax.servlet.ServletException: No getter method available for property control for bean under name org.apache.struts.taglib.html.BEAN This is the "route", code attached below: 1

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file")

2008-09-11 Thread Bobby Mitch
Well, I am willing to try then. Can someone send me that xwork-2.0.4.jar version, recompiled with the modifications described here on the parseValidators method of the ValidatorFactory class ? So that I can replace the xwork jar that ships with it struts-2.0.11.1.jar Anyways, has this modificat

error when rendering - java.net.SocketException: Broken pipe

2008-09-11 Thread sharath karnati
Hi All,     In weblogic server log, I found these error multiple times. Is anyone come accross this kind of problem?      2008-09-11 07:12:47,415 ERROR [org.apache.struts2.components.UIBean] - error when rendering java.net.SocketException: Broken pipe  at java.net.SocketOutputStream.socketWrite0

Re: [S2] Struts.xml and tag

2008-09-11 Thread stanlick
What package/class contains your String name = invocation.getProxy().getConfig().getPackageName(); On Thu, Sep 11, 2008 at 5:46 AM, Roger <[EMAIL PROTECTED]> wrote: > I have a struts.xml with two package tags. The first package is named > name="default" extends="struts-default"> and contains m

RE: ajax validation issue

2008-09-11 Thread Dave Newton
--- On Thu, 9/11/08, Gawain Hammond wrote: > 1.) validation.js was missing in my html, I wasn't > using which seems to be the only tag that > generates a src path to it, I was using > which afaik was my only choice in 2.0.11.1. > Upgrading to 2.1.2 resolved this. > > I had to put this in manua

Attribute action form tag is not valid Struts 2

2008-09-11 Thread artemisia
Hi guy, i'm new in struts 2. I'm following the apache struts 2 tutorial, using eclipse IDE. When I use the tag s:form I have the following error on the action attribute: "The value of action attribute in form tag is not valid". But the project run ok. Bad configuration eclipse? thanks -- View thi

RE: ajax validation issue

2008-09-11 Thread Gawain Hammond
Right, that has been an interesting romp around in struts. Jeromy, thanks for pointing me in the right direction and making me think. I went back to basics, bit the bullet and improved my javascript jedi abilities by installing firebug. That has really helped. If this might help anyone else one d

Struts 2.0.11.2 + Ajax validation using DWR...

2008-09-11 Thread bjorkman
Hi! Been searching for answers, and although I see lots of similar questions, none of them has helped me. Running Struts 2.0.11.2 and DWR 2 I'm not able to get AJAX validation working. DWR is correctly setup (I've tried exposing beans and the communication works fine). My action looks like this

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file")

2008-09-11 Thread Musachy Barroso
I think it is: java.lang.IllegalArgumentException: URI scheme is not "file" at java.io.File.(Unknown Source) at com.opensymphony.xwork2.validator.ValidatorFactory.parseValidators( The code used to be this: URL u = urls.next(); File f = new File(new URI(u.toExternalForm().replaceAll(" ", "%20"))

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file")

2008-09-11 Thread Bobby Mitch
That is not the same error. --- On Thu, 9/11/08, Musachy Barroso <[EMAIL PROTECTED]> wrote: From: Musachy Barroso <[EMAIL PROTECTED]> Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file") To: "Struts Users Mailing List" , [EMAIL PROTECTED] Date: Thursday, Sept

Datetimepicker and client-side validation

2008-09-11 Thread Kawczynski, David
I am using the datetimepicker on a form with client-side validation enabled. Form submissions with a blank datetime field should result in validation being run against that field. This is not the case -- this field is only validated on the server. No other form field uses the dojo, and they ar

Re: [S2] Dynamic Text Tag Attributes

2008-09-11 Thread Dave Newton
--- On Thu, 9/11/08, Roger wrote: > I've got some .jsp pages that are identical apart from > the page title that I'm currently setting with > > and > > etc etc. > > Is there a work around? You could try a normal OGNL expression, but I don't recall if the text tag will evaluate the "name" attr

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file")

2008-09-11 Thread Musachy Barroso
A fix in the code I meant: https://issues.apache.org/struts/browse/WW-2653 . Grabbing the latest xwork from trunk or release branch and building it, should fix your problem. On Thu, Sep 11, 2008 at 10:49 AM, Bobby Mitch <[EMAIL PROTECTED]> wrote: > What exactly is the fix for this problem then ?

Re: [S2] Dynamic Text Tag Attributes

2008-09-11 Thread Paweł Wielgus
Hi, or try this: Best greetings, Paweł Wielgus. 2008/9/11 Roger <[EMAIL PROTECTED]>: > I've got some .jsp pages that are identical apart from the page title that I'm > currently setting with "" > and "" etc etc. > > I would like to set the name attribute dynamically from the supporting action, >

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file")

2008-09-11 Thread Bobby Mitch
What exactly is the fix for this problem then ? Thanks --- On Thu, 9/11/08, Musachy Barroso <[EMAIL PROTECTED]> wrote: From: Musachy Barroso <[EMAIL PROTECTED]> Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file") To: "Struts Users Mailing List" Date: Thursd

Re: Struts2 + Dojo 0.4 + unbeforeunload problem

2008-09-11 Thread Pablo Vázquez Blázquez
I have executeScripts="true" in my tag. Thanks. Owen Berry escribió: Javascript within a remote div is not evaluated by default. Not sure about s:div, but sx:div has executeScripts which must be set to true. Owen On Fri, Sep 5, 2008 at 6:01 AM, Pablo Vázquez Blázquez <[EMAIL PROTECTED]> wrot

Re: [S2] Dynamic Text Tag Attributes

2008-09-11 Thread David Harland
I think you want something like label.page2.title=Title {0} --- On Thu, 9/11/08, Roger <[EMAIL PROTECTED]> wrote: > From: Roger <[EMAIL PROTECTED]> > Subject: [S2] Dynamic Text Tag Attributes > To: "Struts Users Mailing List" > Date: Thursday, September 11, 2008, 4:39 PM > I've got some .jsp

[S2] Dynamic Text Tag Attributes

2008-09-11 Thread Roger
I've got some .jsp pages that are identical apart from the page title that I'm currently setting with "" and "" etc etc. I would like to set the name attribute dynamically from the supporting action, but "name="${title}"/> obviously doesn't work as the attribute name won't take an expression.

Re: Struts2 + Dojo 0.4 + unbeforeunload problem

2008-09-11 Thread Owen Berry
Javascript within a remote div is not evaluated by default. Not sure about s:div, but sx:div has executeScripts which must be set to true. Owen On Fri, Sep 5, 2008 at 6:01 AM, Pablo Vázquez Blázquez <[EMAIL PROTECTED]> wrote: > Hi!! > > If I have the following code in a jspx loaded via , when I g

Re: Struts2 + Dojo 0.4 + unbeforeunload problem

2008-09-11 Thread Pablo Vázquez Blázquez
Using dojo.addOnUnload(function) neither works. Besides that, I would need sht like dojo.addOnBeforeUnload, but it does not exist. I don´t think I should subscribe for an ajax-request-completion event, but for the beforeunload one, don´t I? Thanks. Jeromy Evans escribió: Pablo Vázquez Blázq

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file")

2008-09-11 Thread Musachy Barroso
The fix in this case is known. musachy On Wed, Sep 10, 2008 at 9:30 PM, Struts Two <[EMAIL PROTECTED]> wrote: > Do not give up, the game is not still over . (you can still do sth > about it) > > As an alternative, you can import the source code of xwork into ur > workspace and remove xwork t

Re: Struts 2.1 Tree Problem

2008-09-11 Thread Jim Kiley
We aren't deliberately ignoring you... many readers of this list are in the Americas, and you sent your first message after most of us went to bed and your followup before most of us woke up. :-) (I have no idea what the answer to your question is, I have not used the tree control at all -- but wha

[S2] Struts.xml and tag (follow up)

2008-09-11 Thread Roger
>String name = invocation.getProxy().getConfig().getPackageName(); returns the >name "secure" for all actions regardless of the package the class is actually >located in. If I now add a third package tag extends="default"> that contains no actions at all, String name = >invocation.getProxy().ge

[S2] Struts.xml and tag

2008-09-11 Thread Roger
I have a struts.xml with two package tags. The first package is named and contains my custom interceptor stack. The second package is named so that my custom interceptor stack is available to actions in the secure package. In my custom interceptor stack I have an interceptor in which I am try

Re: Struts 2.1 Tree Problem

2008-09-11 Thread Narayana S
did any one see this email please help me On Thu, Sep 11, 2008 at 10:17 AM, Narayana S <[EMAIL PROTECTED]> wrote: > Hi, > >now i am working with tree control, when i load the tree i want to load > it default extended and what ever the node id i pass that should be > activated. how i can a

Re: Struts2 + Dojo 0.4 + unbeforeunload problem

2008-09-11 Thread Jeromy Evans
Pablo Vázquez Blázquez wrote: No idea or miss-explanation? Use dojo's event model. You need to register a listener/subscriber for the event via dojo. If you assign a listener directly to onbeforeunload or onload you'll overwrite the listeners that dojo needs to assign (or vice-versa, dojo

Re: Struts2 + Dojo 0.4 + unbeforeunload problem

2008-09-11 Thread Pablo Vázquez Blázquez
No idea or miss-explanation? Thanks. Pablo Vázquez Blázquez escribió: Hi!! If I have the following code in a jspx loaded via , when I go to another page (also loaded via ) the "onbeforeunload" event is not triggered. It is only triggered when the page is not loaded using ajax. What can I