Re: ParametersInterceptor replacing spaces with %20

2008-09-12 Thread georz1
I completely agree that something that was working shouldn't all of a sudden stop. I was kind of hoping someone has run into an issue like this before and might have pointed out some subtle change that I might have made and I'm just overlooking. I've been working in the code base adding things

Re: ParametersInterceptor replacing spaces with %20

2008-09-12 Thread Dave Newton
--- On Fri, 9/12/08, georz1 wrote: > It's a post. And since posting to this group I've changed > from Struts 2.0.11 -> 2.0.11.2 still with the same results. I'm still reasonably certain it's not an S2 issue--if it were me I'd be checking the change logs. If it's been working for a year and sudd

[OT] Re: Newbie question about Struts HelloWorld example

2008-09-12 Thread Dave Newton
--- On Fri, 9/12/08, UseTheFork wrote: > I have managed to deploy another project two days > ago without any issue. The JSP pages worked fine. That doesn't require any additional web app libraries. > It could be a project configuration issue, I agree, > but I have checked that and I don't know w

Re: ParametersInterceptor replacing spaces with %20

2008-09-12 Thread georz1
Thanks for the reply Dave - It's a post. And since posting to this group I've changed from Struts 2.0.11 -> 2.0.11.2 still with the same results. About the stack that was not my intention - Are those given by struts-default? Is that why they would be included twice. newton.dave wrote: >

Re: Newbie question about Struts HelloWorld example

2008-09-12 Thread UseTheFork
Dave, I have managed to deploy another project two days ago without any issue. The JSP pages worked fine. This time, I am trying to use Struts. It could be a project configuration issue, I agree, but I have checked that and I don't know what is wrong... I am in newbie exploration mode here !!!

Re: ParametersInterceptor replacing spaces with %20

2008-09-12 Thread Dave Newton
--- On Fri, 9/12/08, georz1 wrote: > I've run into an odd issue recently where data posted > from a form is being saved with %20 where a space is present. Is it a GET or POST form? > My app has been working for about a year and I have never > seen this happening and I don't recall changing someth

Re: Newbie question about Struts HelloWorld example

2008-09-12 Thread Dave Newton
--- On Fri, 9/12/08, UseTheFork wrote: > I asked: >> Is it being deployed? > I can't find the common jar in the App server installation directory. > I will open a ticket with Netbeans Nabble. This is [most likely] not a NetBeans issue, either, it's a project configuration and/or deployment issue

Re: value attribute on

2008-09-12 Thread Pascal Lalonde
The request is accessible with ognl this way: - Pascal Eric Hamacher wrote: Hello: I am in a situation where I need to populate a with a value in the request scope. It sounds anti-Struts but it can't be helped. Since the value attribute cannot take a runtime expression, I am wondering

Re: Newbie question about Struts HelloWorld example

2008-09-12 Thread UseTheFork
> Is it being deployed? I can't find the common jar in the App server installation directory. I will open a ticket with Netbeans Nabble. Thank you for your help, J. -- View this message in context: http://www.nabble.com/Newbie-question-about-Struts-HelloWorld-example-tp19451760p19463173.html

value attribute on

2008-09-12 Thread Eric Hamacher
Hello: I am in a situation where I need to populate a with a value in the request scope. It sounds anti-Struts but it can't be helped. Since the value attribute cannot take a runtime expression, I am wondering if there is a syntax for picking values off the request. So, I am looking for

Re: Newbie question about Struts HelloWorld example

2008-09-12 Thread Dave Newton
--- On Fri, 9/12/08, UseTheFork wrote: > I have a library called commons-loggin in my project: Is it being deployed? > I had to fiddle with the Web Pages directory structure in > the project and create a Classes sub-directory to match the > requirements mentioned on > http://struts.apache.org/2.

Re: Velocity and struts

2008-09-12 Thread Dave Newton
--- On Fri, 9/12/08, m_kk wrote: > I am using velocity with struts. The tags like #slabel, > #ssubmit introduce elements of their own. > Is there anyway to disable it?. I would like to create > a table with 2 columns and include #slabel,#ssubmit in > each but its not happening the right way.

ParametersInterceptor replacing spaces with %20

2008-09-12 Thread georz1
I've run into an odd issue recently where data posted from a form is being saved with %20 where a space is present. Let's say I have a form with a field named company. The value submitted is: Acme Company Watching the call stack I can see that prepare is being called and the data passed in is co

Re: Newbie question about Struts HelloWorld example

2008-09-12 Thread UseTheFork
Hi Dave, I have a library called commons-loggin in my project: http://www.nabble.com/file/p19462329/Commons-loggin.png I had to fiddle with the Web Pages directory structure in the project and create a Classes sub-directory to match the requirements mentioned on http://struts.apache.org/2.x/d

Re: Datetimepicker and client-side validation

2008-09-12 Thread Gabriel Belingueres
There is no client side date validator in the default themes. I added a basic one in the xhtml theme for use with the datetimepicker; it has a hardcoded date format though (dd/MM/). To add it, open your xhtml theme's form-close-validate.ftl file, and as the last option add the following lines

Re: Struts 2 + AjaxTags + DisplayTag

2008-09-12 Thread dynamicd
Hey Márcio Where you ever successful in getting AjaxTags to work with Dispay Tag and Struts2 I am at the same junction as you were. Please let me know. Thanks Márcio Gurgel wrote: > > Hi Randy, > > I also tried to set requestURI. > I'm having lots of problems with components inside tabbedPa

Velocity and struts

2008-09-12 Thread m_kk
Hi, I am using velocity with struts. The tags like #slabel,#ssubmit introduce elements of their own. Is there anyway to disable it?. I would like to create a table with 2 columns and include #slabel,#ssubmit in each but its not happening the right way. -- View this message in context: http://

Re: Newbie question about Struts HelloWorld example

2008-09-12 Thread Dave Newton
--- On Fri, 9/12/08, UseTheFork wrote: > You will notice in my struts.xml that devMode has been set > to true. However, I still don't get anything new in my > Glassfish Logs.> BUT, I have noticed some issues when > I start Glassfish: > > http://www.nabble.com/file/p19457690/Log%2BList.png Loo

RE: [S2] client-side validation error message duplication

2008-09-12 Thread Kawczynski, David
--- On Fri, 9/12/08, Kawczynski, David wrote: > I'm using struts 2.1.2, and the xhtml theme to render a > form. When client-side validaiton fails, an error message > is placed above the bad input fields. > Subsequent submission attempts result in new error messages > being ADDED to the UI, but the

Re: Newbie question about Struts HelloWorld example

2008-09-12 Thread UseTheFork
Here is my struts.xml: http://struts.apache.org/dtds/struts-2.0.dtd";> /HelloWorld.jsp and my web.xml: http://java.sun.com/dtd/web-app_2_3.dtd";> My Application struts2 org.apache.struts2.dispatcher.FilterDispatcher

Re: [S2] client-side validation error message duplication

2008-09-12 Thread Pascal Lalonde
If you are using Spring into your projet, this may be related to the beans being singletons, we had this problem in the past, we actually were required to call cleanErrorsAndMessages method at each prepare call. - Pascal Kawczynski, David wrote: I'm using struts 2.1.2, and the xhtml theme to

Re: [S2] Indexed Lists

2008-09-12 Thread Dave Newton
--- On Fri, 9/12/08, Roger wrote: > > > > > > How about losing the seemingly-unnecessary count? ... Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [S2] Indexed Lists

2008-09-12 Thread Roger
On Friday 12 September 2008 16:18:02 Jeromy Evans wrote: > > In the last line, did you confirm that count has the correct value? > What if the list is empty? (in that case count has never been set) > seems to take of things nicely :-) Thanks for your help. -

Re: [S2] client-side validation error message duplication

2008-09-12 Thread Dave Newton
--- On Fri, 9/12/08, Kawczynski, David wrote: > I'm using struts 2.1.2, and the xhtml theme to render a > form. When client-side validaiton fails, an error message > is placed above the bad input fields. > Subsequent submission attempts result in new error messages > being ADDED to the UI, but the

[S2] client-side validation error message duplication

2008-09-12 Thread Kawczynski, David
I'm using struts 2.1.2, and the xhtml theme to render a form. When client-side validaiton fails, an error message is placed above the bad input fields. Subsequent submission attempts result in new error messages being ADDED to the UI, but the old messages are never removed. I need to clear out prev

Re: [S2] Indexed Lists

2008-09-12 Thread Roger
On Friday 12 September 2008 16:18:02 Jeromy Evans wrote: > Roger wrote: > > Hi > > > > I'm trying to get indexed lists working so that I can get any amendments > > back into my model. At the moment I've got > > In the last line, did you confirm that count has the correct value? Yes, I've confirmed

Re: Newbie question about Struts HelloWorld example

2008-09-12 Thread Jeromy Evans
UseTheFork wrote: When I refresh my browser with http://localhost:8080/tutorial/HelloWorld.action, I do not get any WARNING or SEVERE kind of messages in the Glassfish Logs. I only get more of the above. I have also checked for CONFIG, FINE, FINER, FINEST messages, but I don't get any. The Glass

Re: [S2] Indexed Lists

2008-09-12 Thread Jeromy Evans
Roger wrote: Hi I'm trying to get indexed lists working so that I can get any amendments back into my model. At the moment I've got In the last line, did you confirm that count has the correct value? What if the list is empty? (in that case count has never been set) The issue could r

Re: Newbie question about Struts HelloWorld example

2008-09-12 Thread Dave Newton
--- On Fri, 9/12/08, UseTheFork wrote: > i) I don't know what devMode is, can you explain? http://struts.apache.org/2.x/docs/devmode.html Without any more information it's essentially impossible to help. You'd be better served by posting your web.xml and struts.xml files here; I'm assuming they

Re: Newbie question about Struts HelloWorld example

2008-09-12 Thread UseTheFork
Hi Dave, > Is there anything in the logs? Do you have devMode turned on? i) I don't know what devMode is, can you explain? ii) I have noticed that I did not create my web.xml and struts.xml files properly. I have corrected that problem, compiled, undeployed and redeployed and I still have the s

Re: [S2] PropertyTag display data

2008-09-12 Thread Roger
On Friday 12 September 2008 15:38:39 Dave Newton wrote: > --- On Fri, 9/12/08, Roger wrote: > > The textfield property correctly displays the value, neither > > of the property tags display anything at all. What's the > > correct syntax for the property value attribute? > > In addition to what Jere

[S2] Indexed Lists

2008-09-12 Thread Roger
Hi I'm trying to get indexed lists working so that I can get any amendments back into my model. At the moment I've got <%-- And add one extra line --%> So, the iterator loops for each entry in my List valuables (each List entry

Re: Submit button with no form

2008-09-12 Thread oscar perez
another alternative would be to use a normal anchor tag and via CSS to make it look like a button.. On Wed, Sep 10, 2008 at 3:47 PM, Dan <[EMAIL PROTECTED]> wrote: > Lukasz Lenart escribió: > >> As Don said, implement small form, only with submit button and you >> wouldn't have to use JavaScript.

Re: [S2] PropertyTag display data

2008-09-12 Thread Jeromy Evans
Dave Newton wrote: My first response was to say it was because you spelled "valuables" wrong and the framework is just really snooty. he he, I'd be in a lot of trouble if it was narky about typos. Obviously for the text field you'd still need to set the name appropriately using the sta

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

2008-09-12 Thread Dave Newton
--- On Fri, 9/12/08, Bobby Mitch wrote: > Perhaps you mean to use this Struts-core 2.1.3 jar with this 2.1.2 Xwork jar ? Perhaps. But AFAIK the nightlies only include core, not the rest of the framework. So you'll still probably want to build from source, or fix the version for S2.0 and contrib

Re: [S2] PropertyTag display data

2008-09-12 Thread Dave Newton
--- On Fri, 9/12/08, Roger wrote: > The textfield property correctly displays the value, neither > of the property tags display anything at all. What's the > correct syntax for the property value attribute? In addition to what Jeremy said... My first response was to say it was because you spell

Re: [S2] PropertyTag display data

2008-09-12 Thread Jeromy Evans
Jeromy Evans wrote: Roger wrote: Hi The textfield property correctly displays the value , neither of the property tags display anything at all. What's the correct syntax for the property value attribute? Regards This is best, as its an iterator, for a for loop: correction: This

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

2008-09-12 Thread Bobby Mitch
Perhaps you mean to use this Struts-core 2.1.3 jar with this 2.1.2 Xwork jar ? http://people.apache.org/builds/struts/nightlies/2.x/struts2-core-2.1.3-SNAPSHOT-20080912.jar http://maven2.opensymphony.com/com/opensymphony/xwork/2.1.2-SNAPSHOT/ --- On Fri, 9/12/08, Jeromy Evans <[EMAIL PROTEC

Re: [S2] PropertyTag display data

2008-09-12 Thread Jeromy Evans
Roger wrote: Hi The textfield property correctly displays the value , neither of the property tags display anything at all. What's the correct syntax for the property value attribute? Regards This is best, as its an iterator, for a for loop: The complication is that the

[S2] PropertyTag display data

2008-09-12 Thread Roger
Hi The textfield property correctly displays the value , neither of the property tags display anything at all. What's the correct syntax for the property value attribute? Regards - To unsubscribe, e-mail: [EMAIL PROTECT

problem with submit value of autocompleter tag

2008-09-12 Thread Gawain Hammond
I'm trying to use autocompleter with struts 2.1.2 to replace a select drop down with too many options, but on submission it seem autocompleter submits the listValue rather than the listKey. (The same params work fine with , I've had this same issue since 2.0.11.x) My jsp: Html Output: Gr

Re: Struts 1.2.9 +Ajax Error -- java.lang.IllegalStateException

2008-09-12 Thread Dave Newton
Return null. --- On Fri, 9/12/08, Raghuveer <[EMAIL PROTECTED]> wrote: > From: Raghuveer <[EMAIL PROTECTED]> > Subject: Struts 1.2.9 +Ajax Error -- java.lang.IllegalStateException > To: user@struts.apache.org > Date: Friday, September 12, 2008, 3:55 AM > Hello, > > I am using Ajax in my struts

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

2008-09-12 Thread Jeromy Evans
Bobby Mitch wrote: hi, thanks for the explanations. "Which means if you work from a snapshot version of xwork it's fixed (which is a 2.1 stream though, which you don't want)." What do you mean here ? I didn't realise you could move to 2.1.x. It's not a trivial migration normally. A

Re: Newbie question about Struts HelloWorld example

2008-09-12 Thread Dave Newton
--- On Fri, 9/12/08, UseTheFork wrote: > I have no idea why it does not work. Can anybody help? Give > tips? Pointers? Could it be a config issue? ... Sure, it could be a config issue. Is there anything in the logs? Do you have devMode turned on? Dave -

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

2008-09-12 Thread Bobby Mitch
hi, thanks for the explanations. "Which means if you work from a snapshot version of xwork it's fixed (which is a 2.1 stream though, which you don't want)." What do you mean here ? I do not mind using Struts 2.1 or xwork 2.1 I prefer working with a jar that has been fixed rather than a jar that

RE: Sorting with displaytag issue due to theme="ajax"

2008-09-12 Thread Francisco Exposito
This is not the issue because I've tried deleting optiontransferselect and stuHover... I think I only need to execute javascript in result page, but I don't know how. I don't know if executeScripts and separateScripts attributes in struts ajax tags could be a solution, but I can't implement bec

Newbie question about Struts HelloWorld example

2008-09-12 Thread UseTheFork
Hi, I am a newbie to Struts and I am trying to make the HelloWord example work in Netbeans 6.1 (http://struts.apache.org/2.x/docs/hello-world.html). I have implemented all files in a web project and it compiles fine. I have then used the undeploy deploy functionality and got no error message.

AW: Struts 2.1 Tree Problem

2008-09-12 Thread Jan Froehlich
Hi... just try to add this short script to the page that contains your tree... Might possibly be not the most beautiful solution, but works for me! dojo.event.topic.subscribe("tree/treeCreate", function treeCreated(node) { // get all treenodes and iterate through

Re: Unit Testing Struts 2

2008-09-12 Thread Greg Lindholm
Here is a blog writeup of what I'm using. It allows you to test interceptors. http://glindholm.wordpress.com/2008/06/30/unit-testing-struts-2-actions/ Mark-413 wrote: > > Hi all: > > Does anyone have a working example of unit testing a Struts 2 app? > I've been looking around for awhile kn

Struts 1.2.9 +Ajax Error -- java.lang.IllegalStateException

2008-09-12 Thread Raghuveer
Hello, I am using Ajax in my struts application. >From JavaScript in JSP page I call "employee.do?method=employee" I get following error java.lang.IllegalStateException: Cannot forward after response has been committed For Ajax calls I am using struts execute method. But Action

Re: Struts2 + Dojo 0.4 + unbeforeunload problem

2008-09-12 Thread Jeromy Evans
I don't really know as i don't use dojo or the ajax tags for any more for all the same reasons you're experiencing. Dojo's event model is based on AOP concepts; which allows you to bind functions to the event, before the event or after the event. So you need a listener attached to before the un

Re: Struts2 + Dojo 0.4 + unbeforeunload problem

2008-09-12 Thread Pablo Vázquez Blázquez
var form = document.forms[0]; if ((form) && (formIsDirty(form))) { var a = confirm("There are unsaved changes. Do you want to continue?");
   if (!a) {
   dojo.event.topic.publish("/cancelNavigation");
  

Re: Struts2 + Dojo 0.4 + unbeforeunload problem

2008-09-12 Thread Pablo Vázquez Blázquez
dojo.connect does not exist in dojo 0.4 :( And separateScritpts attribute neither does in struts 2.0.9. Jeromy Evans escribió: 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 do

Re: Struts 2.1 Tree Problem

2008-09-12 Thread Narayana S
i found solution to the parent node item. here is the code snippet .. *tree construction * - - *java Script code * dojo.event.topic.subscribe("treeExpand", function treeNodeExpanded(message) { alert(message.node.widgetId); }); while constructing the tree expandedNotifyTop