Re: [s2] Problem with redirection

2008-07-01 Thread Lukasz Lenart
Hi, > does paramsPrepareParamsStack by default exist ? Upsss once again, paramsPrepareParamsStack exist and already contain staticParams interceptor You can also use defaultStack. Regards -- Lukasz http://www.lenart.org.pl/ -

Re: XSLTResult problem

2008-07-01 Thread Chris Pratt
You could try something like the attached Result instead. (*Chris*) On Tue, Jul 1, 2008 at 9:03 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- On Wed, 7/2/08, Dave Newton <[EMAIL PROTECTED]> wrote: >> That's how the XSLT result works--see the XSLT result [...] > > I did, of course, mean "that

Re: ParamPrepareParamsStack interceptor , how does this work???

2008-07-01 Thread akoo
thanks I think I figured out the problem. I had implemented the model driven interface, but had it returning a new Product() object instead. It works now. The OP's approach is appropriate when using the param-prepare-params pattern. Sometimes it's essential that the domain objects are in

Re: REST plugin URL syntax

2008-07-01 Thread Mike Watson
Hi Jeromy, I've finally found time to try to resolve this but haven't had much luck. Just to recap, I'm looking to be able to do something similar to the following: /book -> returns a list of books /book/123 -> returns book with id 123 /book/123/chapter/1 -> return chapter with id 1, retrieved fr

Re: XSLTResult problem

2008-07-01 Thread Dave Newton
--- On Wed, 7/2/08, Dave Newton <[EMAIL PROTECTED]> wrote: > That's how the XSLT result works--see the XSLT result [...] I did, of course, mean "that's *not* how the XSLT result works..." Dave - To unsubscribe, e-mail: [EMAIL P

Re: XSLTResult problem

2008-07-01 Thread Dave Newton
That's how the XSLT result works--see the XSLT result type page [1] for further explanation. In a nutshell *you* don't create the XML--you send an action to the XSLT. Dave [1] http://struts.apache.org/2.x/docs/xsl-result.html --- On Tue, 7/1/08, Eric Hamacher <[EMAIL PROTECTED]> wrote: > From

Re: Struts 2 dojo and accessibility

2008-07-01 Thread Dave Newton
You might have better luck asking on a Dojo list/forum. IIRC it's 0.4.3-ish. Dave --- On Tue, 7/1/08, Struts Two <[EMAIL PROTECTED]> wrote: > From: Struts Two <[EMAIL PROTECTED]> > Subject: Struts 2 dojo and accessibility > To: "Struts Users Mailing List" > Date: Tuesday, July 1, 2008, 2:27 PM

Re: Validation and simple theme

2008-07-01 Thread Jim Kiley
Try using a different theme, I forget offhand whether 'simple' or 'css_xhtml' does what you want but if one of them doesn't, they are remarkably easy to customize. jk On Tue, Jul 1, 2008 at 5:39 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Thanks. It solves my problems. > > I notice that *

Re: [s2] Problem with redirection

2008-07-01 Thread Milan Milanovic
Dear Lukasz, does paramsPrepareParamsStack by default exist ? -- Thx, Milan Lukasz Lenart wrote: > >> >> >> >>showChanges >>/second >> >> > > Add staticParamIntreceptor [1] or use paramsPrepareParamsSta

Re: Validation and simple theme

2008-07-01 Thread [EMAIL PROTECTED]
Thanks. It solves my problems. I notice that *...* is actually replaced by *error message *in the code. Is there a way to let the tag only renders the error message instead of a list? Thanks. On Tue, Jul 1, 2008 at 4:25 PM, Lukasz Lenart <[EMAIL PROTECTED]> wrote: > > My validation works with

Re: Validation and simple theme

2008-07-01 Thread [EMAIL PROTECTED]
Thanks. Your solutions solve my problems. On Tue, Jul 1, 2008 at 4:25 PM, Lukasz Lenart <[EMAIL PROTECTED]> wrote: > > My validation works with "xhtml" them but doesn't work with "simple" > theme. > > Does struts2 validation framework NOT work with "simple" theme? > > What you mean "not work"? D

Re: Showing messages after a redirect

2008-07-01 Thread Adam Hardy
Dimitris Mouchritsas on 01/07/08 16:50, wrote: Yes, for Struts 1.3.8, sorry I forgot to mention. Actually what I did (but it's more or less specific for the action) is to just forward, not redirect. But I've got another question now? Is there a way I can pass a parameter in the request? I need

Re: Showing messages after a redirect

2008-07-01 Thread Adam Hardy
Dimitris Mouchritsas on 01/07/08 16:50, wrote: Ian Roughley wrote: Yes, for Struts 1.3.8, sorry I forgot to mention. Actually what I did (but it's more or less specific for the action) is to just forward, not redirect. But I've got another question now? Is there a way I can pass a parameter in th

Re: Retrieve an hashtable entry within a jsp using struts tag and a bean as the key

2008-07-01 Thread Paolo Niccolò Giubelli
Ok, I used jstl and now it works! Here's the code (it's changed since the first post, so don't compare it): property="highLevelCategories"> value="${pannelloForm.highLevelCategoriesChildren[category.id]}"> ${subcategory.contenuto.name} where: - pannelloForm is the ActionForm bean - hi

Re: Validation and simple theme

2008-07-01 Thread Lukasz Lenart
> My validation works with "xhtml" them but doesn't work with "simple" theme. > Does struts2 validation framework NOT work with "simple" theme? What you mean "not work"? Do you mean, you don't see error messages? If so use tag [1] or with param list for fields you want. [1] http://struts.apache

Re: [s2] Problem with redirection

2008-07-01 Thread Lukasz Lenart
> > > >showChanges >/second > > Add staticParamIntreceptor [1] or use paramsPrepareParamsStack [2] and define result like that second /secondparam> true ${id} [1] http://struts.apache.org/2.0.11.2

Validation and simple theme

2008-07-01 Thread [EMAIL PROTECTED]
Hi there, My validation works with "xhtml" them but doesn't work with "simple" theme. Does struts2 validation framework NOT work with "simple" theme? I don't like the layout by "xhtml" theme so I choose "simple" theme, but I don't want to lose the validation framework. Thanks.

XSLTResult problem

2008-07-01 Thread Eric Hamacher
Struts 2.0.11 Hello: It appears that XSLTResult is having trouble transforming a simple Document: 99 x99 My action is producing valid XML. I don't think it's the action causing the problem. The error message printed on the screen: XML Parsing Error: no

Struts 2 dojo and accessibility

2008-07-01 Thread Struts Two
I was wondering if the dojo version provided by struts 2 supports accessibility or not. I am aware that dojo 1.x supports accessibility by detecting if the browser is operating in high-contrast mode and then it renders the dijits according to augmented style, images and templates as necessary. I

RE: Validating objects in Collections

2008-07-01 Thread Asleson, Ryan
That's not a good solution. I don't want to pollute my domain objects with Struts 2 annotations, plus I didn't even know that Struts 2 validation annotations could be used anywhere other than on a Struts Action. -Original Message- From: Jim Kiley [mailto:[EMAIL PROTECTED] Sent: Tuesday

Re: [S2] Pre-populating Checkboxes

2008-07-01 Thread Nuwan Chandrasoma
Hi, I just add a at line 51 of checkboxlist.ftl class="checkboxLabel">${itemValue?html} Thanks, Nuwan Jim Kiley wrote: It is remarkably easy to extend the 'simple' or 'xhtml' themes to make s:checkboxlist display vertically. Here's how I did it: In the root of my web code I have a 'temp

[s2] Problem with redirection

2008-07-01 Thread Milan Milanovic
Hi, I have one problem with redirection. In my .jsp page which is backed by MyFirstAction class I have following link: // here is iterator Change and this "change" action is defined for another action class in struts.xml, like this:

RE: [S2] Pre-populating Checkboxes

2008-07-01 Thread Dave Newton
--- On Tue, 7/1/08, David Ogasawara <[EMAIL PROTECTED]> wrote: > I was avoiding checkboxlist because I wanted the options to be > displayed vertically, but it looks to be the only option unless > I add more code to determine if a checkbox was selected. Or use the "css_xhtml" theme, which IIRC ju

Re: Validating objects in Collections

2008-07-01 Thread Jim Kiley
You can put the validation on Person's firstName() method. On Tue, Jul 1, 2008 at 12:39 PM, Asleson, Ryan <[EMAIL PROTECTED]> wrote: > > Hello, > > I'm using Struts 2.0.11. > > I have an HTML table. Each row in the table represents a Person object. > Each column in the table has an input box for

Validating objects in Collections

2008-07-01 Thread Asleson, Ryan
Hello, I'm using Struts 2.0.11. I have an HTML table. Each row in the table represents a Person object. Each column in the table has an input box for properties about the person, such as firstName, lastName, etc. My Action has a Persons property that is a List. Each input box in the HTM

Re: [S2] Pre-populating Checkboxes

2008-07-01 Thread Jim Kiley
It is remarkably easy to extend the 'simple' or 'xhtml' themes to make s:checkboxlist display vertically. Here's how I did it: In the root of my web code I have a 'template' folder. Within 'template' I have a folder named 'my'. Inside 'my' I have checkboxlist.ftl. checkboxlist.ftl looks like t

RE: [S2] Pre-populating Checkboxes

2008-07-01 Thread David Ogasawara
This is exactly what I needed. I was avoiding checkboxlist because I wanted the options to be displayed vertically, but it looks to be the only option unless I add more code to determine if a checkbox was selected. Thank you, everyone, for your help!!! -Original Message- From: Nuwan C

Re: Retrieve an hashtable entry within a jsp using struts tag and a bean as the key

2008-07-01 Thread Paolo Niccolò Giubelli
Maybe using Apache Commons BeanUtils? Anybody knows? Thanks again. Paolo Paolo Niccolò Giubelli ha scritto: I'm sorry, but I'm still unable to do that. Ciro Montanino ha scritto: Try to use jstl tag library to read HashTable contents. On Mon, Jun 30, 2008 at 4:29 PM, Paolo Niccolò Giubelli < [

Re: [S2] Pre-populating Checkboxes

2008-07-01 Thread Nuwan Chandrasoma
Hi, I have done it like this. // code in my action private String[] skill; public String[] getSkill() { return skill; } public void setSkill(String[] skill) { this.skill = skill; } public void prepare() throws Exception { skills = new ArrayList();

RE: [S2] Pre-populating Checkboxes

2008-07-01 Thread David Ogasawara
Hi, Yes, I am saving the results in a database. When the user returns, I query the database and place the results into a string array. I am unable to get this array to repopulate the check boxes the user previously selected. Thanks, Dave -Original Message- From: Struts Two [mailto:[E

RE: [S2] Pre-populating Checkboxes

2008-07-01 Thread Dave Newton
In your original code you don't do anything to specify whether or not the current value matches on of the values in the user's current selections--not sure what magic you were expecting. The tag [1] accepts both value and selection choices; it may be sufficient for your needs. If you're going

Re: [S2] Pre-populating Checkboxes

2008-07-01 Thread Struts Two
>>So if there are five check boxes and the user selects three of >>them and submits the form, how do I automatically check the three boxes >>when the user returns the next day? If I have understood your question right, you need to persist user selection (say in a database). What you are asking e

Re: Showing messages after a redirect

2008-07-01 Thread Dimitris Mouchritsas
Ian Roughley wrote: my mistake, only saw the last message. Antonio Petrelli wrote: 2008/7/1 Ian Roughley <[EMAIL PROTECTED]>: Have you looked at the message store interceptor? For Struts 1? Antonio - To unsubscribe,

Re: Showing messages after a redirect

2008-07-01 Thread Ian Roughley
my mistake, only saw the last message. Antonio Petrelli wrote: 2008/7/1 Ian Roughley <[EMAIL PROTECTED]>: Have you looked at the message store interceptor? For Struts 1? Antonio - To unsubscribe, e-mail: [EMAIL PROT

Re: Showing messages after a redirect

2008-07-01 Thread Antonio Petrelli
2008/7/1 Ian Roughley <[EMAIL PROTECTED]>: > Have you looked at the message store interceptor? For Struts 1? Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Showing messages after a redirect

2008-07-01 Thread Ian Roughley
Have you looked at the message store interceptor? /ian Antonio Petrelli wrote: 2008/7/1 Dimitris Mouchritsas <[EMAIL PROTECTED]>: ActionMessages msg = new ActionMessages(); msg.add(Constants.MESSAGE_CONFIRM, new ActionMessage("prompt.changes.saved")); saveMessages(request, msg); But when I

Re: Showing messages after a redirect

2008-07-01 Thread Antonio Petrelli
2008/7/1 Dimitris Mouchritsas <[EMAIL PROTECTED]>: > ActionMessages msg = new ActionMessages(); > msg.add(Constants.MESSAGE_CONFIRM, new > ActionMessage("prompt.changes.saved")); > saveMessages(request, msg); > > But when I'm redirected back in the jsp there's no message showing (there's > a specif

Showing messages after a redirect

2008-07-01 Thread Dimitris Mouchritsas
Hi all, I've got the following problem. I have an action that edits the details of a user. When the action finishes correctly I want to show a confirmation message, so in the action: ActionMessages msg = new ActionMessages(); msg.add(Constants.MESSAGE_CONFIRM, new ActionMessage("prompt.change

RE: [S2] Pre-populating Checkboxes

2008-07-01 Thread David Ogasawara
Hi, Thank you very much for your assistance, but I am already able to display the checkboxes. I guess my question wasn't very clear. I need to know how to redisplay the checked boxes a user selected in a previous session. So if there are five check boxes and the user selects three of them and s

Struts 2 Internationalization using database

2008-07-01 Thread Pamarthi, Ramakrishna
Hi All, What are the best solutions for implementing the Internationalization using database in struts2 ? If any one have any info , please share with me. Best Regards, RK - To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Re: JAZN Exception when posting form with ecntype="multipart/form-data"

2008-07-01 Thread Dimitris Mouchritsas
Dimitris Mouchritsas wrote: Dimitris Mouchritsas wrote: Hi all, we've recently upgraded our j2ee application to use struts 1.3.8 and we're getting a weird exception when trying to upload a file. Here's the jsp: testFileUpload.jsp ===

Re: [S2] and the scripts paths

2008-07-01 Thread Musachy Barroso
That's a good catch. That statement is intended for debugging and won't break anything though. musachy On Mon, Jun 30, 2008 at 10:25 PM, Pierre Thibaudeau <[EMAIL PROTECTED]> wrote: > 2008/6/30 Musachy Barroso <[EMAIL PROTECTED]>: > >> "struts" maps to a folder inside the struts-core jar. Those f

Re: JAZN Exception when posting form with ecntype="multipart/form-data"

2008-07-01 Thread Dimitris Mouchritsas
Dimitris Mouchritsas wrote: Hi all, we've recently upgraded our j2ee application to use struts 1.3.8 and we're getting a weird exception when trying to upload a file. Here's the jsp: testFileUpload.jsp

Re: Struts 2 + Ajax and Back Button

2008-07-01 Thread duschhaube
Hi, I use dojo 1.1 and struts-dojo-tags at the same time and it works. her you find the documentation. http://dojotoolkit.org/book/book-dojo/part-3-javascript-programming-dojo-and-dijit/multiple-versions-dojo-page cree schrieb: Hello All, I am attempting to resolve the ajax back button pro