Re: help required to install struts 1.2 plugin for eclipse 3.2

2008-09-01 Thread Narasimha Raju Naidu
thanks for your reply, i need to install Struts 1.2 plugin for eclipse 3.2 On 8/31/08, Dave Newton [EMAIL PROTECTED] wrote: --- On Sun, 8/31/08, Narasimha Raju Naidu wrote: I am new to eclipse, can any one help me. i need instructions for installing struts 1.2 plugin

s:datetimepicker Exception

2008-09-01 Thread Harden ZHU
Hi, I am using s:datetimepicker as follow s:datetimepicker name=user.birthDate displayFormat=-MM-dd / When user.birthDate is null, i got exception == Caused by: The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter.

Re: [OT] Re: [S2] Problem with list of submit buttons

2008-09-01 Thread Ylva Degerfeldt
THANK you, Laurie!! That worked!! You have no idea how stressed I am about finishing this project so I Really appreciate that kind of help right now! :-) /Ylva I find myself with a few spare bones, so I'll throw one to Ylva ;-) Try document.forms.NameOfForm... of

OptionsTransferSelect issue

2008-09-01 Thread Francisco Exposito
Hi, I am trying to use the optionsTransferSelect but it shows me the error moveSelectedOptions is not defined. I have this jsp page and it works if I open this page directly; but I access to this page using ajax in another page. Any idea? %@ page pageEncoding=ISO-8859-1 % %@ taglib

Include menu action with sitemesh

2008-09-01 Thread David Loup
Hi there, I'm using sitemesh with struts 2 and am currently applying a decorator to all my actions, including a static menu in a div. So something like div id=menuDiv ul limenuitem 1 /li limenuitem 2 /li limenuitem 3 /li /ul /div div id=mainContent decorator:body / /div What I want to do is

RE: OptionsTransferSelect issue

2008-09-01 Thread Francisco Exposito
I have found a work-around. It works properly if I add in the parent page: script src=src/javascript/optiontransferselect.js type=text/javascript/ but it is not correct because not all pages need it. Has anybody a better solution? From: [EMAIL PROTECTED] To: user@struts.apache.org

[OT] Re: help required to install struts 1.2 plugin for eclipse 3.2

2008-09-01 Thread Dave Newton
--- On Mon, 9/1/08, Narasimha Raju Naidu wrote: i need to install Struts 1.2 plugin for eclipse 3.2 That doesn't help. *What* plugin? The Struts project itself doesn't have any Eclipse plugins. There's Easy Struts, there's Struts Console, there's MyEclpise (not really a plugin), there may be

Re: s:datetimepicker Exception

2008-09-01 Thread Dave Newton
--- On Mon, 9/1/08, Harden ZHU wrote: I am using s:datetimepicker as follow s:datetimepicker name=user.birthDate displayFormat=-MM-dd / When user.birthDate is null, i got exception == Caused by: The Struts dispatcher cannot be found. This is usually caused by using

Helping with the Doco

2008-09-01 Thread Andrew Myers
Hi, I noticed a couple of things in the documentation which I thought I would help with updating but I am having some trouble getting started. In particular I wanted to leave a comment about the fact that the -DarchetypeVersion=2.0.9-SNAPSHOT needs to be changed however even when I'm logged in I

Re: Helping with the Doco

2008-09-01 Thread Dave Newton
--- On Mon, 9/1/08, Andrew Myers wrote: Also the link to issue tracker on this page http://struts.apache.org/2.x/docs/editing-the-documentation.html seems to just go back to the documentation home page. Here's the JIRA homepage: https://issues.apache.org/struts/secure/Dashboard.jspa The

Re: REST Showcase 2.1.2

2008-09-01 Thread Jeromy Evans
stanlick wrote: Also, what is the naming convention for validation xml files using the Code Behind/REST plug-in? I've tried several combinations of naming, but none seem to work. The short answer is: you can't. It doesn't work. Fortunately annotation validation works correctly in

Re: [S2] REST Plugin + Validation

2008-09-01 Thread Jeromy Evans
alvins wrote: Hi guys, I have been wrestling with the REST plugin for the last couple of days and have posted some notes in another thread. I have hit a problem which I need a little help with. Basically in my REST controller I have a create and update method as per the REST guidelines. I need

Re: Rest Plugin + IndexController and disabling content types

2008-09-01 Thread Jeromy Evans
rakeshxp wrote: Hi All, I have 2 questions regarding the struts-rest plugin ( 2.1.3-snapshot) 1) How can I write a controller that will handle the request on / ( i.e http://www.myhost.com )? No, there isn't. If you substitute the CodeBehind plugin for the Convention plugin, then you

geText from Action encodes html entities

2008-09-01 Thread Esteve Camps Chust
Hi all, I'm having a problem when using getText action method. This method gets a text from package.properties file. Its value is an spanish text, containing some encoded chars (for instance, estacioacute;n, for 'estación'). When displaying this I get 'estaciamp;on. My package.properties files

Re: geText from Action encodes html entities

2008-09-01 Thread Dave Newton
Wouldn't a property file normally contain an escaped unicode value for ó? That aside--is getText() itself doing the escaping, or is it being escaped on the JSP side through a property tag? (I don't remember if getText escapes; I didn't think that it did.) (I'm also not sure about encoding a

Re: geText from Action encodes html entities

2008-09-01 Thread David Harland
Use native2ascii to encode your package.properties file. --- On Mon, 9/1/08, Esteve Camps Chust [EMAIL PROTECTED] wrote: From: Esteve Camps Chust [EMAIL PROTECTED] Subject: geText from Action encodes html entities To: user@struts.apache.org Date: Monday, September 1, 2008, 3:24 PM Hi all,

RE: geText from Action encodes html entities

2008-09-01 Thread Martin Gainty
the properties file will contain the properly encoded stringsassuming your xml configuration files have UTF-8 set for characterEncoding??xml version=1.0 encoding=UTF-8 ?you can setCharacterEncoding by sending it thru a filter (before the Action classes are called)

Re: REST Showcase 2.1.2

2008-09-01 Thread stanlick
Thanks Jeromy -- I'd rather sleep with my sister than embed annotations in my code. This notwithstanding, I understand your reluctance to add yet another permutation to that lookup scheme. I poked around in the code back in 2.0 and nearly got a nose bleed. I hope there are a ton of unit tests

Re: REST Showcase 2.1.2

2008-09-01 Thread stanlick
Someone should update the REST plug-in docs so others don't waste days trying something that WILL NOT work as designed. Validation permutations can be tricky enough without chasing a dead end. On Mon, Sep 1, 2008 at 8:57 AM, [EMAIL PROTECTED] wrote: Thanks Jeromy -- I'd rather sleep with my

Re: s:datetimepicker Exception

2008-09-01 Thread Gabriel Belingueres
It can mean that you did not configured the S2 filter in the web.xml file at all. 2008/9/1, Dave Newton [EMAIL PROTECTED]: --- On Mon, 9/1/08, Harden ZHU wrote: I am using s:datetimepicker as follow s:datetimepicker name=user.birthDate displayFormat=-MM-dd / When user.birthDate

Re: geText from Action encodes html entities

2008-09-01 Thread Gabriel Belingueres
encode the response using ISO-8859-1 charset. 2008/9/1, Esteve Camps Chust [EMAIL PROTECTED]: Hi all, I'm having a problem when using getText action method. This method gets a text from package.properties file. Its value is an spanish text, containing some encoded chars (for instance,

Re: REST Showcase 2.1.2

2008-09-01 Thread Dave Newton
Become the change you desire. http://struts.apache.org/helping.html#documentation Dave --- On Mon, 9/1/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] [EMAIL PROTECTED] Subject: Re: REST Showcase 2.1.2 To: Struts Users Mailing List user@struts.apache.org Date:

Re: REST Showcase 2.1.2

2008-09-01 Thread stanlick
Thank you Yoda. :) On Mon, Sep 1, 2008 at 9:10 AM, Dave Newton [EMAIL PROTECTED] wrote: Become the change you desire. http://struts.apache.org/helping.html#documentation Dave --- On Mon, 9/1/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] [EMAIL PROTECTED]

[S2] One hidden value doesn't get submitted (another one does). Why?

2008-09-01 Thread Ylva Degerfeldt
Hi, My current problem is about a hidden value which isn't saved to the Action. This is the background information I think is needed: The value in question (called state) is an int property of a POJO called InfoObject. Other relevant properties of the POJO are id (a String) and name (Str.) In my

Re: [S2] One hidden value doesn't get submitted (another one does). Why?

2008-09-01 Thread Dave Newton
--- On Mon, 9/1/08, Ylva Degerfeldt wrote: [...] the List (using #session.nameOfList) and for [...] If you're always iterating over the list in the session then you'll always get the values from the list in the session. If your action doesn't change the data in the session list you'll always

Possible bug with s:select Struts 2.0.11

2008-09-01 Thread Roger
Hi Using the s:select tag when getting the data from the action, appears not to retrieve the label text from my resource bundle. but when I list the options in the jsp it does. So; s:select label=label.homeInsurance.details.housetype name=housetype

Re: Possible bug with s:select Struts 2.0.11

2008-09-01 Thread Dave Newton
--- On Mon, 9/1/08, Roger wrote: Using the s:select tag when getting the data from the action, appears not to retrieve the label text from my resource bundle. but when I list the options in the jsp it does. So; s:select label=label.homeInsurance.details.housetype name=housetype

re: Possible bug with s:select Struts 2.0.11

2008-09-01 Thread Roger
Sorry for the noise. Please ignore me. My only excuse is that it's been a long day trying to get to grips with the framework. Regards Hi Using the s:select tag when getting the data from the action, appears not o retrieve the label text from my resource bundle. but when I list the options

Model Driven Tutorial/Howto

2008-09-01 Thread Roger
Can anyone point me to a tutorial/howto on how to use Model Driven. I've been experimenting and I've verified that the parameters on the model are being set, but Struts is complaining loudly that it can't set the parameters on the action. If the parameters are being set retrieved from the

Re: Model Driven Tutorial/Howto

2008-09-01 Thread Dave Newton
--- On Mon, 9/1/08, Roger wrote: If the parameters are being set retrieved from the model why do I need to provide getters setters in the action? You don't. Are you in devMode? What version are you using? Dave - To

Re: Model Driven Tutorial/Howto

2008-09-01 Thread Roger
On Monday 01 September 2008 22:46:00 Dave Newton wrote: --- On Mon, 9/1/08, Roger wrote: If the parameters are being set retrieved from the model why do I need to provide getters setters in the action? You don't. Are you in devMode? What version are you using? Yes, I'm in devMode and

Re: Model Driven Tutorial/Howto

2008-09-01 Thread Dave Newton
--- On Mon, 9/1/08, Roger wrote: Yes, I'm in devMode and using Struts 2.0.11. Maybe I was just panicing because it shows as a SEVERE error. It shouldn't; you may want to post some code, config, and stack trace. Dave - To

Re: Model Driven Tutorial/Howto

2008-09-01 Thread Roger
On Monday 01 September 2008 23:19:31 Dave Newton wrote: --- On Mon, 9/1/08, Roger wrote: Yes, I'm in devMode and using Struts 2.0.11. Maybe I was just panicing because it shows as a SEVERE error. It shouldn't; you may want to post some code, config, and stack trace. That's kinda why I was

Re: Model Driven Tutorial/Howto

2008-09-01 Thread Dave Newton
--- On Mon, 9/1/08, Roger wrote: That's kinda why I was asking for a tutorial/howto for beginners before I make an idiot of myself - particularly in light of my recent post in the s:select tag :-( Since it's already too late you might as well post it then ;) I don't know of any tutorials,

Re: Model Driven Tutorial/Howto

2008-09-01 Thread Roger
On Monday 01 September 2008 23:43:14 Dave Newton wrote: --- On Mon, 9/1/08, Roger wrote: That's kinda why I was asking for a tutorial/howto for beginners before I make an idiot of myself - particularly in light of my recent post in the s:select tag :-( Since it's already too late you

Re: Model Driven Tutorial/Howto

2008-09-01 Thread Dave Newton
--- On Mon, 9/1/08, Roger wrote: One of the (many) messages I'm seeing is; 02-Sep-2008 00:03:39 com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 'addressLine1' on 'class

RE: Model Driven Tutorial/Howto

2008-09-01 Thread Martin Gainty
That's kinda why I was asking for a tutorial/howto for beginners before I make an idiot of myself - particularly in light of my recent post in the s:select tag :-( Since it's already too late you might as well post it then ;) I don't know of any tutorials, although I'm

RE: Model Driven Tutorial/Howto

2008-09-01 Thread Dave Newton
Good lord man, fix your line feeds. --- On Mon, 9/1/08, Martin Gainty wrote: That's kinda why I was asking for a tutorial/howto for beginners before I make an idiot of myself - particularly in light of my recent post in the s:select tag :-( Since it's already too late you might as

Re: Model Driven Tutorial/Howto

2008-09-01 Thread Roger
Top action? The ordered property doesn't have so much to do with top actions as with making sure that nested properties are set in order, as determined by the number of dots in the parameter name. Not sure how that would be related to his ModelDriven issue, although it's hard to say without

Re: Include menu action with sitemesh

2008-09-01 Thread Wes Wannemacher
David, I use S2 tags all the time in my sitemesh decorators. When I first did it, I hadn't put much thought into it (maybe the filter won't be available to sitemesh, the action is the decorated page, not the decorator, etc.), I just did it and it worked. It wasn't until later that I thought maybe

Re: REST Showcase 2.1.2

2008-09-01 Thread Wes Wannemacher
What's wrong with annotations, and more importantly - How hot is your sister?! (sorry, couldn't resist) -Wes On Mon, 2008-09-01 at 08:57 -0500, [EMAIL PROTECTED] wrote: Thanks Jeromy -- I'd rather sleep with my sister than embed annotations in my code. This notwithstanding, I understand

Dynamic include of a CSS stylesheet

2008-09-01 Thread Alexander Baetz
Hi, ok, this is not really a struts question but we came to it while creating tiles pages. it might be that i'm thinking wrong. scenario: in writing a tiles template. there i want to include an external stylesheet x. when an action (domain/namespace/myAction.action) is executed the result

Some Idea On REST mapping

2008-09-01 Thread Ryan Wong
I have changed the rest action mapper class to apply Ruby Style . there is draft, post here to find a better way to build RESTful app with struts2 Rest style action mapper Using with struts2-rest-plugin, replace the orginal RestActionMapper class. With url patterns below to support CRUD