Struts 2 parametrized messages

2006-12-07 Thread Sakari.Isoniemi
Hello What is the Struts 2.0.1 syntax in JSP-page to render message like Missing.message3 = This feature is STILL ({0}) under construction. Please try ({1}) again in the next interation. 1) The following JSP: CLASS private String cat="Hello from 'cat'"; public

Re: Spring integration with Struts-2.0.2

2006-12-07 Thread liu kaipeng
Thanks to Tomas and Wendy, it work fine! 2006/12/8, Wendy Smoak <[EMAIL PROTECTED]>: On 12/7/06, liukaipeng <[EMAIL PROTECTED]> wrote: > Is there any change to this short hand name for spring, or I'm missing some configuration point newly added to struts-2.0.2? Try using struts2-core and the

Re: Spring integration with Struts-2.0.2

2006-12-07 Thread Wendy Smoak
On 12/7/06, liukaipeng <[EMAIL PROTECTED]> wrote: Is there any change to this short hand name for spring, or I'm missing some configuration point newly added to struts-2.0.2? Try using struts2-core and the struts2-spring-plugin, as Tomas suggested. (I think the 'all' jar will go away, I don'

Re: Spring integration with Struts-2.0.2

2006-12-07 Thread Tomas Carlsson
This is a long-shot: org.apache.struts struts2-spring-plugin 2.0.2-SNAPSHOT /tomas On 12/8/06, liukaipeng <[EMAIL PROTECTED]> wrote: Wiki page http://cwiki.apache.org/WW/spring.html demonstrate how to integrate spring with struts2, that in detail, set struts.objectFact

Spring integration with Struts-2.0.2

2006-12-07 Thread liukaipeng
Wiki page http://cwiki.apache.org/WW/spring.html demonstrate how to integrate spring with struts2, that in detail, set struts.objectFactory = spring to use spring as the object factory. This works well with the struts-2.0.1 release, but when I switch the jar file to struts2-all-2.0.2-SNAPSHOT.ja

Re: Struts2 general availability release date?

2006-12-07 Thread Ted Husted
On 12/7/06, Mark Menard <[EMAIL PROTECTED]> wrote: On 12/7/06 8:02 AM, "Dave Newton" <[EMAIL PROTECTED]> wrote: > I've been running 2.0.1 and lately some 2.0.2 and while there a few > rough edges overall I've been quite happy with the quality, although I > am currently using a mere fraction of th

Re: Validator FrameWork

2006-12-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thomas, Thomas Thomas wrote: > (*this* == password) > > But it still doesn't work This is exactly what I have in my setup, and it works like a charm: test (

Re: Still Ajax and Struts 2

2006-12-07 Thread walidito
thanks, but I get an error with the code you gave me : SEVERE: Error setting expr 'dojo.transport' with value '[Ljava.lang.String;@179567c' ognl.OgnlException: target is null for setProperty(null, "transport", [Ljava.lang.String;@179567c) thanks Musachy Barroso-2 wrote: > > I think you should

Re: Validator FrameWork

2006-12-07 Thread Thomas Thomas
Instead of : (passwordCheck == password) I put : (*this* == password) But it still doesn't work

Re: Validator FrameWork

2006-12-07 Thread Thomas Thomas
Dear Sean, thank u for your precious support. I added this : test (passwordCheck == password) But it's not working :-(

Re: Still Ajax and Struts 2

2006-12-07 Thread Musachy Barroso
I think you should take a look at the Struts2/Webwork tutorials http://www.opensymphony.com/webwork/wikidocs/Tutorial.html and http://struts.apache.org/2.x/docs/tutorials.html If you look at the showcase code you will see this for the AjaxTest action: in struts-ajax.xml: class="org.apache.str

[Fwd: HELP with switching modules in Struts 1.2.x]

2006-12-07 Thread robin bajaj
Please ignore my previous mail. I found the issue. I was trying to forward from a local forward to a global forward. I started forwarding to the global forward directly and everthing started working fine. thanks, robin --- Begin Message --- Hi All, I am trying to switch modules in Struts 1.2.

Still Ajax and Struts 2

2006-12-07 Thread walidito
I, I wanna run this type of example app : http://www.planetstruts.org/struts2-showcase/viewSource.action?page=/ajax/remotediv/example1.jsp : 19: Initial Content In other word, a basic ajax component that allows a refreshment of only a part of my page. But I didn't get how to write the co

RE: Validator FrameWork

2006-12-07 Thread O'Shea, Sean
Use the validWhen validator for the password and the passwordCheck fields: http://struts.apache.org/1.2.x/userGuide/dev_validator.html You'll need to add the passwordCheck field to your registerForm. I've found these links useful when investigating commons-validator: * commons validator exa

Validator FrameWork

2006-12-07 Thread Thomas Thomas
Hi, I'm using Validator Framework with Struts, Here I want to validate a registration form. I want to add a field property passwordCheck, (the user needs to enters his password twice : the first password will be in property password, the second in passwordCheck) I want to check if value of passwo

RE: Struts2 and Ajax pb

2006-12-07 Thread walidito
Ok ok, I begin to see what is the exact pb : I my action mapping I've putted : /JSPs/Error.jsp /JSPs/Menu.jsp so it must create an ugly loop... By the way, what should I put it this action mapping ? nothing ? thank you. walidito wrote: > > Thank you ! > Actually I had a

RE: Struts2 and Ajax pb

2006-12-07 Thread walidito
Thank you ! Actually I had a mapping, but this mapping was wrong. now I' m facing a new pb, my "div" zone is continuously showing an error message (the error messages adds at the end of the page, and doesn't replace the previous one, which make it a real mess...) this is the message : widget ID c

Re: Struts2 and Ajax pb

2006-12-07 Thread Musachy Barroso
First try putting the full url for your action on your browser , and make sure you are getting the expected page, just to get any ajax problem out of the way. After you get that working, try the div, which should work. regards musachy walidito wrote: Hi, I hava followed one of the "showcase"

RE: Struts2 and Ajax pb

2006-12-07 Thread Dave Newton
walidito [mailto:[EMAIL PROTECTED] > href="/dashboard/actions/AjaxTest.action" Do you have a mapping to that action? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECT

Struts2 and Ajax pb

2006-12-07 Thread walidito
Hi, I hava followed one of the "showcase" example ( http://www.planetstruts.org/struts2-showcase/viewSource.action?page=/ajax/remotediv/example1.jsp ) tu run a first an independently-refreshed zone of my webpage. As the example doen't provide with the corresponding Action Class, i didn't succeed i

HELP with switching modules in Struts 1.2.x

2006-12-07 Thread robin bajaj
Hi All, I am trying to switch modules in Struts 1.2.x webapp using a global forward. Here's the global forward path="/MODULE2/action.do" redirect="true"/> Here's the action Mapping that wants to switch to MODULE2 when an actionForward "toAccMain_CustomerProfilePage" is returned by "Process

Re: Struts1: Indexed Properties, BeanUtils populate, Form on REQUEST scope

2006-12-07 Thread Niall Pemberton
On 12/7/06, Urso Wieske <[EMAIL PROTECTED]> wrote: I completely agree with you about how HTTP handles requestparameter. If this is the only solution, then I will have to do some reengineering work in my porblem area to deal with ordering. :-( This is really annoying. I can't imagine I am the fi

Re: Struts2 general availability release date?

2006-12-07 Thread Mark Menard
On 12/7/06 8:02 AM, "Dave Newton" <[EMAIL PROTECTED]> wrote: > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of >> The general feeling is that we are very close, and some of us are >> thinking that a GA would make a nice Chrismas present, but only if >> it's actually up to production

[s2] Radio buttons example

2006-12-07 Thread Mark Shifman
Hi: The Struts 2 Documentation pages seem to have left out radio buttons: http://struts.apache.org/2.x/docs/tag-reference.html http://struts.apache.org/2.x/docs/ui-tag-reference.html There is a page but its example is a little opaque: http://struts.apache.org/2.x/docs/radio.html I couldn't find

RE: Struts1: Indexed Properties, BeanUtils populate, Form on REQUEST scope

2006-12-07 Thread Urso Wieske
Guys, Girls, Help. -Oorspronkelijk bericht- Van: Urso Wieske Verzonden: donderdag 7 december 2006 14:29 Aan: Struts Users Mailing List Onderwerp: RE: Struts1: Indexed Properties, BeanUtils populate, Form on REQUEST scope I completely agree with you about how HTTP handles requestpa

Re: [s2] servlet 2.4 required ?

2006-12-07 Thread nicolas de loof
OK for JEE version, but none of my customer server is servlet 2.4 compliant (all are servlet 2.3, and sometime java 1.3 !). Is servlet 2.4 dependency required for all features ? Can I run a Struts 2.0webapp with some limitations on tomcat 4.1 : Mailreader 2.0.1 runs fine under my tomcat 4.1.30 N

Re: [s2] servlet 2.4 required ?

2006-12-07 Thread Wendy Smoak
On 12/7/06, nicolas de loof <[EMAIL PROTECTED]> wrote: I'm starting a project based on Java 1.4 and serlet 2.3 (tomcat 4.1). I'd like to use Struts2 as it includes retro-translated support for java 1.4. According to project main page ( http://struts.apache.org/2.x/#Platform%20Requirements), serv

Re: html:form action mapping

2006-12-07 Thread chuanjiang lo
On 12/7/06, chuanjiang lo <[EMAIL PROTECTED]> wrote: Hi all i have this jsp page with a form and the corresponding mapping in the struts config is When i view the source code of the jsp it shows Why is the action mapping to my context path? Appreciate an

RE: Formatting numbers in text field

2006-12-07 Thread George.Dinwiddie
Have you tried the JSTL tag? > -Original Message- > From: chamal desilva [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 07, 2006 3:35 AM > To: Struts Users Mailing List > Subject: RE: Formatting numbers in text field > > > Thanks Richard > > But if do it uing getter methods I wi

RE: file download without opening a window

2006-12-07 Thread George.Dinwiddie
You need to serve the XML file, itself--not forward to a JSP. In your action class, one of the parameters is an HttpServletResponse instance. Call addHeader() on that object. Then copy the file contents to the OutputStream returned by getOutputStream() on that object. Finally, the action cla

Re: Using tiles and validator framework

2006-12-07 Thread Deep Blue
Hi, But it is a component (or portlet) in my main.jsp page. The poll may appear in any jsp page, so I cannot specify a fixed page to forward inside struts-config.xml. Thanks for your answer! Best Regards, Guang Sheng On 12/7/06, Niall Pemberton <[EMAIL PROTECTED]> wrote: On 12/5/06, Deep Bl

Re: Struts2: How can I make a Filter redirecting to struts actions

2006-12-07 Thread Martin Gainty
Ove- in your jsp You can hook redirect-action to yout submit button as in http://struts.apache.org/WW/actionmapper.html code in your Action class execute method mapping.findForward("someAction") where struts.xml has someAction.jsp bistå ? Martin -- This e-mail com

creating custom tags

2006-12-07 Thread Aneellu
Hi all, I have a requirement to create custom tag which embeds struts tags.see below, 1999 ...available can have html:option, html:options, html:optionsCollection... 2000 ...selected can have html:optio

RE: Struts1: Indexed Properties, BeanUtils populate, Form on REQUEST scope

2006-12-07 Thread Urso Wieske
I completely agree with you about how HTTP handles requestparameter. If this is the only solution, then I will have to do some reengineering work in my porblem area to deal with ordering. :-( This is really annoying. I can't imagine I am the first person with this problem. I don;t really see the

RE: [s2] servlet 2.4 required ?

2006-12-07 Thread Dave Newton
> I'm starting a project based on Java 1.4 and serlet 2.3 (tomcat 4.1). > I'd like to use Struts2 as it includes retro-translated support for > java 1.4. Another potential gotcha I just ran in to and have not gotten a response about it whether or not S2 2.0.2 can be successfully retro'd due to a

Re: Struts1: Indexed Properties, BeanUtils populate, Form on REQUEST scope

2006-12-07 Thread Niall Pemberton
On 12/7/06, Urso Wieske <[EMAIL PROTECTED]> wrote: Hi Niall, Thanks for the reply! Apparantly this problem is quite difficult to get answer upon. You're the only one until now. Well, I was getting different exception in different scenario. - When I put an array initialization (someWrappers = )

Struts1: CHALLENGE "Indexed Properties can not be used with FORMS on REQUEST scope!" TRUE or NOT TRUE?

2006-12-07 Thread Urso Wieske
Hi folks, Very low reactions on my posting about indexed properties, form, beanutils and request scope. I therefore impose the following CHALLENGE STATEMENT: "Indexed Properties can not be used with FORMS on REQUEST scope!" I am curious to know who is able to support or reject this statement,

RE: Struts2 general availability release date?

2006-12-07 Thread Dave Newton
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of > The general feeling is that we are very close, and some of us are > thinking that a GA would make a nice Chrismas present, but only if > it's actually up to production standards. As another data point (and something to keep in mind)

html:form action mapping

2006-12-07 Thread chuanjiang lo
Hi all i have this jsp page with a form and the corresponding mapping in the struts config is When i view the source code of the jsp it shows Why is the action mapping to my context path? Appreciate any advice

RE: Struts1: Indexed Properties, BeanUtils populate, Form on REQUEST scope

2006-12-07 Thread Urso Wieske
Hi Niall, Thanks for the reply! Apparantly this problem is quite difficult to get answer upon. You're the only one until now. Well, I was getting different exception in different scenario. - When I put an array initialization (someWrappers = )in myForm's default constructor, I would get Array

Re: to format a date

2006-12-07 Thread Dariusz Wojtas
I am not sure if I understood you correctly. I am formatting dates using jstl: <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"; prefix="fmt" %> Dariusz Wojtas On 12/7/06, Nabil ALI-MOUSSA <[EMAIL PROTECTED]> wrote: Hi, I have data dates that I would like to transform into format dates in

to format a date

2006-12-07 Thread Nabil ALI-MOUSSA
Hi, I have data dates that I would like to transform into format dates in my page JSP . there is my code JSP : Date de naissance value="dateNaissancePorteur" /> somebody can help me, please, thank you. nam.

[s2] servlet 2.4 required ?

2006-12-07 Thread nicolas de loof
Hello, I'm starting a project based on Java 1.4 and serlet 2.3 (tomcat 4.1). I'd like to use Struts2 as it includes retro-translated support for java 1.4. According to project main page ( http://struts.apache.org/2.x/#Platform%20Requirements), servlet 2.4 is required. Does this mean I will have t

Re: Struts1: Indexed Properties, BeanUtils populate, Form on REQUEST scope

2006-12-07 Thread Niall Pemberton
So what BeanUtils exception are you getting? Your jsp should be generating the following? BeanUtils will try and access the indexed getter - getSomeWrapper(0) and then call setPropA(...) - presumably its one of these methods ist having problems with? Anyway the problem usually with requ

Re: Struts2: How can I make a Filter redirecting to struts actions

2006-12-07 Thread Dariusz Wojtas
Hi, If your filter is called before the struts filter, then what about preparing your own HttpServletRequest instance (some wrapper) and passing it deeper into doFilter(..)? You could copy all properties of the original request but change the URI (or whatever property is responsible for it). The

RE: OT: file download without opening a window

2006-12-07 Thread mano dasanayake
Hi, As per my knowledge, what you have to do is opening an out stream from your action. Something like... response.setContentType("application/x-file-download"); response.setHeader( "Content-disposition",

RE: Formatting numbers in text field

2006-12-07 Thread chamal desilva
Thanks Richard But if do it uing getter methods I will have to write a lot of getters since I have many properties. Is n't there an another way. Can't we control the formatting through a common place in Struts. Best Regards, Chamal. --- "Gundersen, Richard" <[EMAIL PROTECTED]> wrote: > If you

Struts2: How can I make a Filter redirecting to struts actions

2006-12-07 Thread Ove.Oldberg
Hi everybody, I have experimented with a filter that triggers for keywords on the request URL and when found it should redirect to a struts action that processes the keyword. My dilemma is that I don't want to use: response.sendRedirect("/some.action"); becoz redirect should be done internally in

Re: Filter problem

2006-12-07 Thread Niall Pemberton
On 12/5/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: How are you inserting your XML/HTML into the JSP? I don't think the filter method is causing your problem. I think you're not expressing that the output should not be filtered. If you're using you might want to add 'escapeXml="false"',

Re: Validate length of array

2006-12-07 Thread Niall Pemberton
On 12/5/06, O'Shea, Sean wrote: Hi all, I'm using struts 1.2.7 with commons-validator 1.1.4 I've this DynaValidatorActionForm which has the following properties: I have the corresponding rules defined:

Re: Using tiles and validator framework

2006-12-07 Thread Niall Pemberton
On 12/5/06, Deep Blue <[EMAIL PROTECTED]> wrote: Hi, I'm using tiles component in my .jsp page (eg. main.jsp). It is a poll component, which user can submit the vote. Commons validator framework is used to validate the poll submission. When the validation failed on the tiles component, the tiles