Re: Spring Injected Preparer

2007-07-03 Thread Antonio Petrelli
2007/7/4, Sean Conlon <[EMAIL PROTECTED]>: I have not read all the related posts, so this may have already been said, but the "Controller" concept is not specific to Struts-Tiles. It is simply the "C" within the MVC pattern, which many technologies (i.e. Struts, Spring) use. We were talking

Re: [S2] Why is it so difficult ?

2007-07-03 Thread sharad bhushan
Hi, When we are trying to do this(<@s.textfield name="poll.pollOptions[#{rowIndex}].option" />) are assign a new name to every textbox.So why will the array return.It return them as different params and tries to autowire.So Use a ommon name for them and see what happens when you submit the fo

Re: Checkboxes problem

2007-07-03 Thread sharad bhushan
Hi, Just a suggestion Why dont you have the common name for all check box holding the different values.How ever you may loose the struts2-checkbox feature(checkbox state) by doing this.YOu can populate the values of the checkbox in to a bean and use the across. Regards Sharad Send free SMS

Re: [S2] FCKeditor

2007-07-03 Thread Mark P Ashworth
Good Day, It will be a plug-in to the Struts 2 core. An example of the tag would be To include the FCKEditor javascript library, you will do the following in the head section of your page. And then in the form you would do the following The

Re: Spring Injected Preparer

2007-07-03 Thread Sean Conlon
I have not read all the related posts, so this may have already been said, but the "Controller" concept is not specific to Struts-Tiles. It is simply the "C" within the MVC pattern, which many technologies (i.e. Struts, Spring) use. On 7/2/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote: 2007/

Re: Validation dies because of request param array?

2007-07-03 Thread Scott Kingdon
Ah. Yes. And it was. I have gone on and found a work around using dynamic methods, so it got changed. Dynamic methods is actually working. But the old version using ProfileAddress did not. Here is the form part of editProfile.jsp: ">

RE: Validation dies because of request param array?

2007-07-03 Thread Crocker, Patrick
Shouldn't your action class be set to "com.ourcompany.struts.action.profile.ProfileAddress"? Aside from that, can you share the editProfile.jsp file? - Patrick. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Kingdon Sent: Tuesday, July 03, 2007 3:

Re: Validation dies because of request param array?

2007-07-03 Thread Scott Kingdon
I am thinking that this did not solve the problem, but rather squelched the only message that gave me a clue as to what might be happening. So back to the original problem. Here is the struts config: /WEB-INF/pages/profile/editProfile.jsp /WEB-INF/pages/error.jsp Here is the class

Re: Validator does not validate!

2007-07-03 Thread Ramon Xuriguera i Albareda
I don't know exactly what the problem was. After spending lots of hours in front of the computer it worked! I think the problem had something to do with what you say or, probably with the exception I define in the action mapping. Anyway, thanks. -

Checkboxes problem

2007-07-03 Thread Andreja
I have a form that contains over a 100 checkboxes. They have unique names, and I need to populate them from (Array)List. As a result, I also need a ArrayList of Strings that contains only elements that user has checked. I did so by using LinkedHashMap and tag s:checkboxlist, but I can not make ch

RE: Excellent Struts 2 Tutorial

2007-07-03 Thread Wesley Wannemacher
Sweet! I appreciate it! -Wes -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 03, 2007 3:22 PM To: Struts Users Mailing List Subject: Re: Excellent Struts 2 Tutorial Adding a link here will help people find it ;) http://struts.apache.org/2.x/docs/

Re: Excellent Struts 2 Tutorial

2007-07-03 Thread Musachy Barroso
Adding a link here will help people find it ;) http://struts.apache.org/2.x/docs/tutorials.html musachy On 7/3/07, Wesley Wannemacher <[EMAIL PROTECTED]> wrote: It's funny that you mention this, I just finished a set of articles on Struts2. I would appreciate feedback if you don't mind readin

RE: Excellent Struts 2 Tutorial

2007-07-03 Thread Wesley Wannemacher
It's funny that you mention this, I just finished a set of articles on Struts2. I would appreciate feedback if you don't mind reading it... Hopefully I can help out some newbs. http://www.wantii.com/wordpress/?cat=3 -Wes -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTE

Excellent Struts 2 Tutorial

2007-07-03 Thread stanlick
Guys -- After reading about everything I could get my hands on and looping through the "code-build-deploy-try" cycle until dizzy, I decided to drop $29.00 on the comprehensive S2 tutorial available at ArcTech The tutorial was clearly designed with the de

Re: [S2] Do AJAX features work?

2007-07-03 Thread Kenton
This is perfect. I've investigated the Yui library and it looks perfect. It has all the functionality I need, the documentation is great, and the examples work perfectly. I haven't had time to integrate with Struts and use the mentioned plugin, but that's definitely on my list. That's also great

Re: [S2] Do AJAX features work?

2007-07-03 Thread Kenton
Of course, I am using the embedded version of Dojo that is served by the Struts servlet. I didn't modify that. I was using Dojo downloads in a separate experiment, where I was trying to get Dojo to work with some static web pages, so that I could understand the Dojo library and debug the issue.

Re: Validation dies because of request param array?

2007-07-03 Thread Scott Kingdon
By making that change the error has gone away. However it is now silently dying for some other reason. I need to track that down. If I have more problems I will post the code. On 7/3/07, cilquirm <[EMAIL PROTECTED]> wrote: I should correct myself.

Re: [S2] FCKeditor

2007-07-03 Thread Andrew Stepanenko
Hi Mark, I would be interested in richtexteditor tag based on FCKeditor in Struts2. Currently I ported the richtexteditor tag from WebWork to some older Struts2 build. So if you can provide a convenient way, which would allow upgrading the core lib while using the same plugin, or if the plugin wo

RE: [S2] Validation alias

2007-07-03 Thread Crocker, Patrick
The approach definitely works for specifying specific methods on the action, and actually works via the org.apache.struts2.dispatcher.mapper.DefaultActionMapper class (the same class that makes the work). Anyway, you are right about the different approaches creating different aliases... I chan

Re: How to convert a list of object to XML

2007-07-03 Thread Matthias Fischer
Hi, >From reading the javadoc in the org.apache.struts2.views.xslt package, I believe yet another option would be to create a custom AdapterNode class for your Book object and register it with the XSLT AdapterFactory. If I read it correctly, Struts2 would use your BookAdapterNode class to rend

Re: Validation dies because of request param array?

2007-07-03 Thread cilquirm
I should correct myself. My problem may not be related, since it was due to the CookieInterceptor's handling of setValue. Can you post your pojo and your query string? cilquirm wrote: > > Do you have struts.devMode = true? > > I had the same problem and I was forced to change struts.devMode

Re: Validation dies because of request param array?

2007-07-03 Thread cilquirm
Do you have struts.devMode = true? I had the same problem and I was forced to change struts.devMode = false I believe this is a change from 2.0.6 ( and in some regards, a worse one at that ). I'm still investigating it, but please try turning devMode off and seeing if it helps. Scott Kingdo

Re: result type Jasper [Struts 2]

2007-07-03 Thread CannonFL
The Jasper Report plug-in is working. However, the PDF that's returned is displayed in the same browser window that initiated the action. I want the PDF to display in a new browser window. That way, my original window is not overwritten by the report. I've tried opening another window with ja

Re: [S2] Session Invalidation through SessionAware interface

2007-07-03 Thread Gabriel Belingueres
Changing the SessionAware interface would certainly break backward compatibility, plus it would affect action testability. If you don't like the downcast to SessionMap, I would rather consider creating an additional interface, something like: public interface SessionMapAware { public void setSe

Struts 2 Validation

2007-07-03 Thread Manoj Gupta
Hi All, I am trying to use struts 2 validation for the first time. I have a action class called TestAction.java and two form bean attribute like Form01 f1; - with getter/setter Form 02 f2 ; with getter/setter as the form will be populated from two different pages i want to

Re: Set a session value in the view

2007-07-03 Thread cilquirm
You should be able to do or (I'm assuming you have access to the jstl) , you can always do hth, -a meeboo wrote: > > > Hey all > > How can I achieve something like this: > <%session.removeAttribute("successMessage");%> > > with the tag? > > I tried but it > didn't work. > > Thanks

Validation dies because of request param array?

2007-07-03 Thread Scott Kingdon
I am using Struts 2. I get this error whenever I turn on validation. The struts automatically returns the input page. 07:42:11,349 INFO [STDOUT] 07:42:11,349 ERROR [ParametersInterceptor] ParametersInterceptor - [setParameters]: Unexpected Exception catched: Error setting expression 'name' with

Set a session value in the view

2007-07-03 Thread meeboo
Hey all How can I achieve something like this: <%session.removeAttribute("successMessage");%> with the tag? I tried but it didn't work. Thanks! -- View this message in context: http://www.nabble.com/Set-a-session-value-in-the-view-tf4018422.html#a11412642 Sent from the Struts - User maili

Re: Struts 2 displaying message from resource bundle

2007-07-03 Thread Manoj Gupta
i also tried using The i18n value for test.error in ApplicationResources is in the struts.xml still it is not diplaying the message from the resource file. Any idea? - Here’s a new way to find what yo

Re: datetimepicker

2007-07-03 Thread Musachy Barroso
There is also JSCalendar: http://sourceforge.net/projects/jscalendar musachy On 7/3/07, David Harland <[EMAIL PROTECTED]> wrote: Many thanks, I'll try YUI out. Dave. -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: 03 July 2007 14:15 To: Struts Users Mailing

RE: datetimepicker

2007-07-03 Thread David Harland
Many thanks, I'll try YUI out. Dave. -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: 03 July 2007 14:15 To: Struts Users Mailing List Subject: Re: datetimepicker Hi Dave, right now there is no estimate on when will 2.1 be released (open source style :) ), but

Re: Adding global-exception-mappings tag to struts.xml causes SAXParseException

2007-07-03 Thread Anton Pussep
> The DTD warning is giving you the expected *order* of > elements. Aha, good to know. =) Yes, it works perfectly fine. Thanks a lot! Best, Anton signature.asc Description: OpenPGP digital signature

Re: datetimepicker

2007-07-03 Thread Shervin Asgari
Musachy Barroso wrote: Hi Dave, right now there is no estimate on when will 2.1 be released (open source style :) ), but 2.1 is as stable as 2.0.x are, you can just download it and build it yourself, here are some instructions on how to do that: http://struts.apache.org/2.x/docs/building-with-

Re: datetimepicker

2007-07-03 Thread Musachy Barroso
Hi Dave, right now there is no estimate on when will 2.1 be released (open source style :) ), but 2.1 is as stable as 2.0.x are, you can just download it and build it yourself, here are some instructions on how to do that: http://struts.apache.org/2.x/docs/building-with-maven.html if all you nee

Re: Adding global-exception-mappings tag to struts.xml causes SAXParseException

2007-07-03 Thread Dave Newton
--- Anton Pussep <[EMAIL PROTECTED]> wrote: > The content of element type "package" must match > "([...],global-exception-mappings?,action*)". > it seems like my struts.xml matches the DTD very well Not particularly ;) > The DTD warning is giving you the expected *order* of elements. d.

Format values in MessageResources

2007-07-03 Thread Ramon Xuriguera i Albareda
Hi, I've just noticed that it's possible to format args in a MessageResources' key (see http://www.jguru.com/faq/view.jsp?EID=915891). I'm trying to do the following: In MessageResources.properties label.mean=Nota mitjana: {0,number} Then, in my JSP: I get this error: 14:52:58,546-ERROR org.ap

Re: Struts 2 Package Namespace and URL generation

2007-07-03 Thread Richard Sayre
On 7/3/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- Richard Sayre <[EMAIL PROTECTED]> wrote: > How will it know which name space I am referring to? AFAIR it uses the current namespace unless you supply a "namespace" attribute. d. Thank you. I should have triple checked the doumentation.

Adding global-exception-mappings tag to struts.xml causes SAXParseException

2007-07-03 Thread Anton Pussep
Hello, I created a very simple application in order to test exception handling. Unfortunately when I add a global-exception-mappings tag to my struts.xml (see file below) the application is not even deployed anymore, and here is what Tomcat complains about: The content of element type "package" m

Re: Struts 2 Package Namespace and URL generation

2007-07-03 Thread Dave Newton
--- Richard Sayre <[EMAIL PROTECTED]> wrote: > How will it know which name space I am referring to? AFAIR it uses the current namespace unless you supply a "namespace" attribute. d. Looking for a deal

Struts 2 Package Namespace and URL generation

2007-07-03 Thread Richard Sayre
I have a package defined as follows: /JSP/Design/selectCustomer.jsp /JSP/Design/location.jsp I am using the name space to encapsulate the JSP from the user. When I create a form using struts tags like this: The 'action' is rendered

collections and struts

2007-07-03 Thread is_maximum
Hi all I have problem using a list in my action form consider following action form: public vlass MyForm extends ActionForm{ private Set sponsors; //and its getter and setter } now in JSP I have now problem to display them but for update!!! here is the code of jsp:

datetimepicker

2007-07-03 Thread David Harland
Hi Musachy Is it possible for me to download the fixed version of the datetimepicker (that will allow me to set the displayFormat to something other than the default) from somewhere or must I wait for 2.1 to be released. Is there a estimate of when that might be if this is so. Thanks Dave.

Re: Configuring Tiles in S2

2007-07-03 Thread Dave Newton
--- Antonio Petrelli wrote: > And Tiles 2 is not sandboxed anymore. Dave, where > have you been in the last year? :-) Using Google to search for Tiles 2 ;) d. Luggage? GPS? Comic books? Check out fitti

[S2] FCKeditor

2007-07-03 Thread Mark P Ashworth
Good Day, I am busy updating my Struts 2 plug-in that contains a tag for the Open Flash Chart component and I was wondering if anybody would be interested in a tag for the popular FCKeditor component? I have the basic editor working and based upon response will make it available in the Connext-G

答复: Struts 2 displaying message from resource bundle

2007-07-03 Thread chenshibing
Actually, I didn't understand why you gave a key attribute. Meanwhile, you should change to Crazyreal -邮件原件- 发件人: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 发送时间: 2007年7月3日 18:01 收件人: Struts Users Mailing List 主题: Struts 2 displaying message from resource bundle HI Using Struts 2

Setting the "target" of the result page of an action/interceptor

2007-07-03 Thread Session A Mwamufiya
Hi, I'm using an interceptor to implement the login to my app, my welcome page uses 2 frames, and I would like to have my login jsp page load as a single window once my session object expires when a user clicks on a link in one frame that triggers a window to be loaded in the other frame. Woul

Struts 2 displaying message from resource bundle

2007-07-03 Thread Manoj . Gupta
HI Using Struts 2 I am trying to display message from a resource bundle in the struts.xml jsp -- I have copied the ApplicationResources.properties in the classpath but it is not reading the message from the property file, it displays the key. Please let me know if iam doing somethi

Re: Configuring Tiles in S2 - solved

2007-07-03 Thread Manoj . Gupta
Thanks Antonio... It worked. "Antonio Petrelli" "Struts Use

Re: Configuring Tiles in S2

2007-07-03 Thread Antonio Petrelli
2007/7/2, Chris Pratt <[EMAIL PROTECTED]>: You may need to include the context-param to define your tiles-config.xmlfile for the listener. tiles-definitions /WEB-INF/tiles-config.xml It's wrong, the correct (deprecated but still working) parameter name is "definitions-config". An

RE: handle set of list of objects

2007-07-03 Thread prafull.jain
Hi, I did same thing but I am not getting any values. its showing null value but value is already there. please give me any other solution. Thanks & Regards, Prafull Jain From: Vikash Manoranjan [mailto:[EMAIL PROTECTED] Sent: Mon 02/07/2007 5:31 PM To: 'Str

Re: Configuring Tiles in S2

2007-07-03 Thread Manoj . Gupta
Thanks Chris. I think it moved one step further.. now my web.xml looks like http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/w

Re: Configuring Tiles in S2

2007-07-03 Thread Antonio Petrelli
2007/7/2, Dave Newton <[EMAIL PROTECTED]>: The tiles plugin page [1] gives the basics. Tiles2 was in a bit of flux when I used it for a previous application so my code may not be up-to-date; I'd check the Tiles site [2, but I don't know if it's the right URL] for current DTD/tag docs. d. [1] h