Re: AJAX in Struts

2007-09-10 Thread ANIMESH SAXENA
Hi, I also faced the same problem for a simple AJAX Call. In case of Ajax request you should return null from your Action execute() code; Animesh On 9/11/07, aarthy <[EMAIL PROTECTED]> wrote: > > > HI, > I am newbie to AJAX.I tried to run a sample code from the below link > > http://struts.j

AJAX in Struts

2007-09-10 Thread aarthy
HI, I am newbie to AJAX.I tried to run a smaple code from the below link http://struts.javabeat.net/articles/2007/06/ajax-support-in-struts-2-0/2 http://struts.javabeat.net/articles/2007/06/ajax-support-in-struts-2-0/2 I'm getting this error message. Stacktrace: org.apache.jasper.servlet.JspSe

Re: ObjectFactory.buildResult not correctly configuring Result instance properties

2007-09-10 Thread Don Brown
This is a bug and will definitely be fixed for 2.1, although I think we should do something for 2.0.11. Patches are always welcome... :) Don On 9/11/07, Aaron Brown <[EMAIL PROTECTED]> wrote: > Hi, I think I have stumbled across a bug in the ObjectFactory. Has > anyone else noticed the following

[S2] using the AJAX theme

2007-09-10 Thread Grish
I've been trying out ajax with s2 and I like how the ajax theme and the s2 tags allow me to do more with less code. Usually the 2 column table layout works for most of my needs but there are some forms that I rather not have the additional code (like a form with one field and I want the submit b

Re: JSONInterceptor doesn't support Long/Short/Double... type.

2007-09-10 Thread joey
ok,i will try it. another suggestions:about the dateformat,now it was implemented by add json annotation to the write method of the property of date type.If no json annotation defined,it use JSONUtil.RFC3339_FORMAT. I thought it's great if the default format could be defined via configuration file

ObjectFactory.buildResult not correctly configuring Result instance properties

2007-09-10 Thread Aaron Brown
Hi, I think I have stumbled across a bug in the ObjectFactory. Has anyone else noticed the following behavior? ObjectFactory.buildResult() invokes OgnlUtil.setProperties() to populate a Result instance with a parameter map. In addition, the call to OgnlUtil.setProperties forces exceptions to be th

How to forward to a page out of .war file

2007-09-10 Thread sriharsha . chevuru
Hi, The present application structure has multiple .war files in a .ear file. Now my login module is part of 1.war and on a successful validation i want to forward in struts-config.xml to a page in 2.war file. How do i achieve this? Thank you

Re: struts 2 and Windows Vista

2007-09-10 Thread V Transhow
Красафчег, нажми на тормоза! --- Pavel Sapozhnikov <[EMAIL PROTECTED]> wrote: > Do you have like anti virus software installed that > might be blocking some > FUNKY behaviour that it sees. Just an idea. > > On 9/10/07, Leena Borle <[EMAIL PROTECTED]> wrote: > > > > Hi, > > I have this strange

Re: Attribute var invalid for tag bean according to TLD

2007-09-10 Thread Musachy Barroso
There is no "var" attribute on 2.0.9 as it is a new in 2.1. Right now the online documentation has a mix of 2.1 and 2.0. Try "name" instead. (The documentation for 2.0.9 can be downloaded with the jars) musachy On 9/10/07, Emi Lu <[EMAIL PROTECTED]> wrote: > Hello, > > Musachy Barroso wrote: > >

RE: Dojo refresh in firefox2.0 on Ubuntu

2007-09-10 Thread Dinwiddie, George
Hi, Kevin, Try adding a timestamp parameter to the URL. It might be a caching problem in the browser. - George George Dinwiddie, iDIA Computing, LLC http://iDIAcomputing.com/ http://blog.gdinwiddie.com/ -Original Message- From: Kevin Lawrence [mailto:[EMAIL PROTECTED] Sent: Thurs

Re: struts 2 and Windows Vista

2007-09-10 Thread Pavel Sapozhnikov
Do you have like anti virus software installed that might be blocking some FUNKY behaviour that it sees. Just an idea. On 9/10/07, Leena Borle <[EMAIL PROTECTED]> wrote: > > Hi, > I have this strange problem. I have struts2 web application running on > my > tomcat/linux very well. Recently I mov

Re: DynaValidatorform -->

2007-09-10 Thread Dave Newton
Possibly because there's no "input" attribute, so it's bombing since it doesn't know what the input forward for the form is? d. --- john lee <[EMAIL PROTECTED]> wrote: > i have an DynaValidatorForm as following: > > inside struts-config.xml > > > type"java.lang.String[] "/>

struts 2 and Windows Vista

2007-09-10 Thread Leena Borle
Hi, I have this strange problem. I have struts2 web application running on my tomcat/linux very well. Recently I moved Tomcat server on my Windows Vista laptop and when I try to execute any S2 action using this tomcat, Firefox browser throws error saying, "Firefox has detected that the server i

DynaValidatorform -->

2007-09-10 Thread john lee
i have an DynaValidatorForm as following: inside struts-config.xml inside validation.xml inside test.jsp But, the execution give me the following error message after i leave the Qty fi

Re: Attribute var invalid for tag bean according to TLD

2007-09-10 Thread Emi Lu
Hello, Musachy Barroso wrote: what version did you download? I downloaded "Example Applications- struts-2.0.9-apps.zip (22mb)". I extracted the lib, and followed the online tutorial page about beans. I opened struts2-core-2.09.jar, and in "META-INF/struts-tags.tld" file: bean o

Re: Attribute var invalid for tag bean according to TLD

2007-09-10 Thread Musachy Barroso
what version did you download? musachy On 9/10/07, Emi Lu <[EMAIL PROTECTED]> wrote: > Hello, > > I downloaded and installed struts2. However, when I tried the bean tag > example: > > <-- in jsp form --> > var="counter"> > >The value of foot is : , when inside the > bean tag > > > I go

params.excludeParams vs. Parameter Filter Interceptor?

2007-09-10 Thread Jon Wilmoth
I found an undocumented com.opensymphony.xwork2.interceptor.ParametersInterceptor parameter (excludeParams) that appears to do the same as com.opensymphony.xwork2.interceptor.ParameterFilterInterceptor. The later actually works on full property names vs. the regular expressions that filter ou

RE: How to get exception in action class for error page?

2007-09-10 Thread Jiang, Jane (NIH/NCI) [C]
I am trying to get the exception in action class also. I have previous defined an error page that displays the error and have user type in more information and click a button to email to support. That works fine. But we also need to log exceptions. So I tried to change the handler from a jsp pag

Attribute var invalid for tag bean according to TLD

2007-09-10 Thread Emi Lu
Hello, I downloaded and installed struts2. However, when I tried the bean tag example: <-- in jsp form --> var="counter"> The value of foot is : , when inside the bean tag I got the following exceptions, could someone enlighten me how to setup the correct TLD please? org.apache.

S2: ReferenceError: validateForm_

2007-09-10 Thread Manuel Correa
Hey, I'm trying to configure my framework S2 for validation but when I tried to validate I get this msg: ReferenceError: validateForm_[formId] is not defined My form is: Manuel Correa.

user@struts.apache.org

2007-09-10 Thread stanlick
Is there a use case where a duplicate form submission would be allowed? If not, why is it necessary to "remember" to connect all the dots to prevent a duplicate form submit? I think I would have been able to get over connecting the plumbing myself if not for the newfound interceptor trouble. It

Re: How to get exception in action class for error page?

2007-09-10 Thread Matt Filion
If your just going for exception information you can direct to a JSP page and use the Struts tags and look directly at the attributes defined o the Exception implementation. etc.. Matt Filion [EMAIL PROTECTED] --

Re: pls help: struts 1.x /dynaValidatorForm/String[] type

2007-09-10 Thread john lee
HI Paul, But, i put initial="20" inside struts-config.xml, when execute, system still give me the error message that is the following: Error creating form bean of class org.apache.struts.action.DynaValidatorForm java.lang.NullPointerException. tks ur help john Paul Be

Re: pls help: struts 1.x /dynaValidatorForm/String[] type

2007-09-10 Thread Paul Benedict
struts-config. see the dtd On 9/10/07, john lee <[EMAIL PROTECTED]> wrote: > > Hi Paul, > > after i add initial="20" into struts-config.xml, execution still > complain about NullPointerException. > > After i add initial="20" into validation.xml, initial="20" . > when i bounce the server

Re: s:select static map

2007-09-10 Thread j alex
Gary, I think your syntax is right - just pasted from your email into my JSP and it works. Let me know if you are able to move the static map to a properties file and get it working from there ; i'm still trying to get the syntax right on that! -Joseph On 9/10/07, GaryD <[EMAIL PROTECTED]> wr

Re: Default tab in tabbedPanel loaded twice

2007-09-10 Thread Alvaro Sanchez-Mariscal
Is that attribute available in any 2.0.x version? On 9/10/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: > Use the "preload" attribute. > > musachy > > On 9/10/07, Alvaro Sanchez-Mariscal <[EMAIL PROTECTED]> wrote: > > Any help on this? > > > > In a page with 6 tabs, 6 requests are made, and brows

Re: pls help: struts 1.x /dynaValidatorForm/String[] type

2007-09-10 Thread john lee
Hi Paul, after i add initial="20" into struts-config.xml, execution still complain about NullPointerException. After i add initial="20" into validation.xml, > Any expert can give me your hands? > > i have an DynaValidatorFrom as following: > > inside struts-config.xml > > > org.apache

Retrieving names of dynamic comboboxes

2007-09-10 Thread Maya menon
How do we retrieve the names of dynamic comboboxes generated using iterate tag ? I need to capture the onchange event, but how will I capture the name of the combo box ? Thanks - Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user

Re: Default tab in tabbedPanel loaded twice

2007-09-10 Thread Musachy Barroso
Use the "preload" attribute. musachy On 9/10/07, Alvaro Sanchez-Mariscal <[EMAIL PROTECTED]> wrote: > Any help on this? > > In a page with 6 tabs, 6 requests are made, and browser get freezed. > > autoStart="false" doesn'w work. Is there another way to prevent tab > preloading? > > https://issue

looking at stack during action execution

2007-09-10 Thread Adam Hardy
I'm looking at the stack running behind my action and it's not clear what the code between the interceptors is doing: at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86) at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(Def

Re: autocompleter problem

2007-09-10 Thread Musachy Barroso
Use the "resultsLimit" attribute. musachy On 9/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi all, > I'm using the autocompleter tag and I'm little bit troubleshooted by it's > behaviour. > > I have a list the contains more than 100 items. When the page is loaded, > the select box dis

Re: Question about OGNL ValueStack

2007-09-10 Thread Musachy Barroso
I'm first level support, Dave is platinum support :) musachy On 9/10/07, Dave Newton <[EMAIL PROTECTED]> wrote: > --- Musachy Barroso wrote: > > On 9/10/07, Pavel Sapozhnikov wrote: > >> When I create a variable in Java Action class right > > >> before returning to a result I create a variable: >

Re: Question about OGNL ValueStack

2007-09-10 Thread Dave Newton
--- Musachy Barroso wrote: > On 9/10/07, Pavel Sapozhnikov wrote: >> When I create a variable in Java Action class right >> before returning to a result I create a variable: >> String blah = "blah string"; >> Does that variable get put automatically on [the] >> > No it doesn't add local variable

Re: [S2] struts tags

2007-09-10 Thread Pablo Vázquez Blázquez
I have visited so many pages about Struts 2 I can´t remember where I found that. Sorry. Adam Hardy escribió: By the way, Pablo, where did you find that out? Pablo Vázquez Blázquez on 10/09/07 11:52, wrote: Using JSTL: Adam Hardy escribió: Man oh man that is going to fry th

Re: pls help: struts 1.x /dynaValidatorForm/String[] type

2007-09-10 Thread john lee
tks for your kind help, but add initial="20" inside struts-config.xml or validation.xml? what else i need to do ? tks in advance john Paul Benedict <[EMAIL PROTECTED]> wrote: You need to allocate array space. For example, add an initial="20" attribute to the property.

Re: Default tab in tabbedPanel loaded twice

2007-09-10 Thread Alvaro Sanchez-Mariscal
Any help on this? In a page with 6 tabs, 6 requests are made, and browser get freezed. autoStart="false" doesn'w work. Is there another way to prevent tab preloading? https://issues.apache.org/struts/browse/WW-2166 Alvaro. On 8/19/07, Alvaro Sanchez-Mariscal <[EMAIL PROTECTED]> wrote: > Here i

Re: Question about OGNL ValueStack

2007-09-10 Thread Musachy Barroso
No it doesn't add local variables to the stack. You can add values to the stack by hand, but in this case all you need to do is set a field in your action with the value that you want, and add a getX() method. musachy On 9/10/07, Pavel Sapozhnikov <[EMAIL PROTECTED]> wrote: > Hi so I have a quest

Question about OGNL ValueStack

2007-09-10 Thread Pavel Sapozhnikov
Hi so I have a question about this thing. When I create a variable in Java Action class right before returning to a result I create a variable: String blah = "blah string"; Does that variable get put automatically on ValueStack. I tried assuming it does and I tried displaying the value of it by usi

Re: Issue with c:import or jsp:include

2007-09-10 Thread Paul Benedict
Can you see if 1.3.8 makes any difference? Just curious. On 9/10/07, Jennie Moeller <[EMAIL PROTECTED]> wrote: > > 1.2 > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > On Behalf Of Paul Benedict > Sent: 10 September 2007 13:59 > To: Struts Users Mailing List >

Re: [FRIDAY... -ish] Re: [S2] struts tags

2007-09-10 Thread Adam Hardy
Dave Newton on 10/09/07 13:34, wrote: --- Adam Hardy wrote: The advantages of lean JSPs are manifold Ha ha, lean JSPs, I get it. d. My humour was not in action when I wrote that. What did you think? A. - To unsubscribe, e

s:select static map

2007-09-10 Thread GaryD
I am trying to set up a static map using the select tag. I set my the tag as explain in the documentation. But when it tries to render the page I get this error. Syntax error in expression. Encountered ":". Expected one of : "}", ".", "[", ">", "gt", "<", "lt", ">=", "ge", "<=", "le", "==",

How to get exception in action class for error page?

2007-09-10 Thread Neil Aggarwal
Hello: I declared an application error page in my web.xml: java.lang.Throwable /error.action I have this declaration in my struts.xml: error In my page.Error class, I am trying to get the exception that was thrown: public class Error extends ActionSupport { pub

autocompleter problem

2007-09-10 Thread meissa . sakho
Hi all, I'm using the autocompleter tag and I'm little bit troubleshooted by it's behaviour. I have a list the contains more than 100 items. When the page is loaded, the select box displayed within the autocompleter tag show only 30 elements. Why does this restriction take place ? Is it possibl

RE: Issue with c:import or jsp:include

2007-09-10 Thread Jennie Moeller
1.2 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Benedict Sent: 10 September 2007 13:59 To: Struts Users Mailing List Subject: Re: Issue with c:import or jsp:include What version of Struts? On 9/10/07, Jennie Moeller <[EMAIL PROTECTED]> wrote:

Struts2 and JBoss 5.0.0 Beta2 deployment problem

2007-09-10 Thread REMIJAN, MICHAEL J [AG/1000]
Has any successfully deployed a Struts2 application to JBoss 5.0.0 Beta 2? When I try to do this I get the following stack trace from JBoss: Exception starting filter struts2 Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory - bean - jar:file:/C:/jboss/jboss-5.0.0.Beta2/serve

Re: JSONInterceptor doesn't support Long/Short/Double... type.

2007-09-10 Thread James Holmes
If you feel these should be supported, you can open a JIRA ticket for the issue. The ticket will be more likely to get attention if you supply a patch to implement the desired behavior. https://issues.apache.org/struts/browse/WW James On Mon Sep 10 6:00 , joey <[EMAIL PROTECTED]> sent: >if My

Re: Passing dynamic parameters to javascript function inside href link

2007-09-10 Thread Yannick Haudry
you probably have to include the whole expression within your expression element, for instance: '>value should work, but a bit ugly ;-) maybe it looks nicer using jstl ! var Hope it helps Yannick On 9/10/07, Anna Simbirtsev <[EMAIL PROTECTED]> wrote: > Hello > > I am trying to pass the val

Re: Performance Problem with Dojo

2007-09-10 Thread Musachy Barroso
This will be turned on by default on 2.1: https://issues.apache.org/struts/browse/WW-2077 check this for details: http://dojo.jot.com/WidgetsFAQ musachy On 9/10/07, Marc Eckart <[EMAIL PROTECTED]> wrote: > How can I initialize dojo with the dojo tags ids? Dojo is integrated in > Struts2, how c

[S2] Application wide error page

2007-09-10 Thread Neil Aggarwal
Hello: I am trying to declare an application wide error page in my Struts 2 app. I tried putting this in my web.xml: java.lang.Exception /error.action And then created the error.action: http://cbsweb.jammconsulting.com/cbsweb/error.action But, when my app throws an error, the err

Passing dynamic parameters to javascript function inside href link

2007-09-10 Thread Anna Simbirtsev
Hello I am trying to pass the value of i to a javascript but I can't seem to get it to pass the value. <% for (int i = 0;i < 5; i++) { %> value <%}%> What am I doing wrong? Thank you

Re: Issue with c:import or jsp:include

2007-09-10 Thread Paul Benedict
What version of Struts? On 9/10/07, Jennie Moeller <[EMAIL PROTECTED]> wrote: > > Its definitely set on my action. > > If I just try to add any param it doesn't seem to work with jsp:include > (jsp:param) or c:import (c:param) > > Thanks! > > -Original Message- > From: Ehteshamul Haque [ma

Re: [S2] struts tags

2007-09-10 Thread Adam Hardy
By the way, Pablo, where did you find that out? Pablo Vázquez Blázquez on 10/09/07 11:52, wrote: Using JSTL: Adam Hardy escribió: Man oh man that is going to fry the algorithms in my poor JSP editor, even if it could cope with the stuff I force-feed it at the moment (which

[FRIDAY... -ish] Re: [S2] struts tags

2007-09-10 Thread Dave Newton
--- Adam Hardy wrote: > The advantages of lean JSPs are manifold Ha ha, lean JSPs, I get it. d. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [S2] struts tags

2007-09-10 Thread Adam Hardy
Thanks, Pablo. Does anyone know if there are any plans to create a new attribute on these taglibs in the future where one can just feed in the property key? The advantages of lean JSPs are manifold, the main advantage in this case being the most important, that it would seperate logic (intern

Re: and number format

2007-09-10 Thread stanlick
JSTL fmt tag library. On 9/10/07, Eugen Stoianovici <[EMAIL PROTECTED]> wrote: > > I want to display a number (double) into a jsp using a certain format (2 > decimals). What's the best way to do it? > > - > To unsubscribe, e-mail:

Re: Multiline key value in resource file

2007-09-10 Thread Moésio Medeiros
Inserting some even on the same line property doesn't work? You could disregard html code behind the browser and format it when rendering. 2007/9/10, Mirbek Nosinov <[EMAIL PROTECTED]>: > Hello > > I am trying to make multiline key value in my resource file > Reource file is like "myRes.propertie

Re: [S2] struts tags

2007-09-10 Thread Pablo Vázquez Blázquez
Using JSTL: Adam Hardy escribió: Man oh man that is going to fry the algorithms in my poor JSP editor, even if it could cope with the stuff I force-feed it at the moment (which it doesn't). Isn't there a non-OGNL way? thanks Adam Zarar Siddiqi on 08/09/07 18:25, wrote: v

RE: Issue with c:import or jsp:include

2007-09-10 Thread Jennie Moeller
Its definitely set on my action. If I just try to add any param it doesn't seem to work with jsp:include (jsp:param) or c:import (c:param) Thanks! -Original Message- From: Ehteshamul Haque [mailto:[EMAIL PROTECTED] Sent: 09 September 2007 10:43 To: Struts Users Mailing List Subject: Re

and number format

2007-09-10 Thread Eugen Stoianovici
I want to display a number (double) into a jsp using a certain format (2 decimals). What's the best way to do it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [s2] s:text somtimes doesn't render the key porperties

2007-09-10 Thread Alexis Pigeon
Hi Adrian, On 10/09/2007, Adrian Ost <[EMAIL PROTECTED]> wrote: > Hi everybody, > > i have a property file and by using the s:text tag i am rendering out > text from a property file. > Some text . > Works fine, but sometimes it doesn't render the value of the property, > but the key name itself (R

JSONInterceptor doesn't support Long/Short/Double... type.

2007-09-10 Thread joey
if My entity class has a property of type in (Long/Short/Double...),I get a Exception JSONExeption Incompatible types for property xxx. After read the code of JSONInterceptor ,I found it doesn't support these types which confused me.

Re: Performance Problem with Dojo

2007-09-10 Thread Marc Eckart
How can I initialize dojo with the dojo tags ids? Dojo is integrated in Struts2, how can I influence this without altering the package? Regards, Marc 2007/9/10, Adam Hardy <[EMAIL PROTECTED]>: > > I'm not familiar with that tag you are using, but there are general ways > of > enhancing dojo, incl

[s2] s:text somtimes doesn't render the key porperties

2007-09-10 Thread Adrian Ost
Hi everybody, i have a property file and by using the s:text tag i am rendering out text from a property file. Some text . Works fine, but sometimes it doesn't render the value of the property, but the key name itself (Results in: Some text my.existing.property.) Cannot reproduce this. Any id

Re: Performance Problem with Dojo

2007-09-10 Thread Adam Hardy
I'm not familiar with that tag you are using, but there are general ways of enhancing dojo, including initialising dojo with the dojo tag ids instead of letting it scan for them, or compiling just the scripts that you need from dojo instead of taking the default build. I found last year that a

Performance Problem with Dojo

2007-09-10 Thread Marc Eckart
Hi, I have a table which contains a column with struts tags with ajax theme: Kundendetailinfo If I have 100 entries in my table it needs about 6 secs to render the table, without these tags I need about 1 sec or less. Is there a way to tune the performa

Re: Struts url problem

2007-09-10 Thread TonyD
I already tried this possible solution but a have exactly with my parameters value in my url link, struts doesn't translate the property value in a struts url. I suspect it's a struts url bug. Thanks. newton.dave wrote: > > --- Ehteshamul Haque wrote: >> In that case we can use '' >> >> EXA

Re: Struts url problem

2007-09-10 Thread TonyD
I already tried this possible solution but a have exactly with my parameters value in my url link, struts doesn't translate the property value in a struts url. I suspect it's a struts url bug. Thanks. Ehteshamul Haque wrote: > > > In that case we can use '' > > EXAMPLE: > > > > .

Re: i18n in struts2

2007-09-10 Thread rock4u
Hi Using i18n is a very simple in struts. Lets make a sample application to say hello to the Rock. Steps to do i18n:- 1. Create a test application. 2. index.jsp would be like this:- <[EMAIL PROTECTED] language="java"%> <[EMAIL PROTECTED] uri="/WEB-INF/struts-html.tld" prefix="html"%> <[EMAIL