Absolute URL from s:a tag

2009-12-04 Thread wkbutler
I know this is kind of a silly question. Does anyone know if there is a way to get the Struts2 'a' tag to emit an absolute URL? Silly or not, I can't think of any reason for it not to support that, and maybe it's there already. Thanks - -- View this message in context:

RE: Multiple select

2009-10-08 Thread wkbutler
Thanks Eric for posting your solution, this helped me remember that unusual OGNL syntax on the value attribute. Because I have not found so many working examples out there, I'll post mine too: s:select label=%{getText('caseFile.sentence')} name=caseFile.sentences.qualifierId

Is 'expression' a keyword in 2.1.6?

2009-07-23 Thread wkbutler
Hi - this may be a dumb question, but I'm having a validation issue since upgrading to 2.1.6 (at least I think that's when it started). Saving an entity called 'Expression' fails - always fails the validation for field-validator 'requiredstring'. Here is the validator definition: !DOCTYPE

Re: Is 'expression' a keyword in 2.1.6?

2009-07-23 Thread wkbutler
Answer appears to be 'no' after renaming the object and fields. Looks like something else changed. wkbutler wrote: Hi - this may be a dumb question, but I'm having a validation issue since upgrading to 2.1.6 (at least I think that's when it started). Saving an entity called 'Expression

Re: For s:textfield tag how to get value for title attribute from resource bundle.

2009-07-14 Thread wkbutler
Well I took Dave's advice from another thread (http://www.nabble.com/-S2--Dynamic-Text-Tag-Attributes-td19436146.html#a19436146) and just implemented this in my action. Oh well. Thanks guys - -- View this message in context:

RE: For s:textfield tag how to get value for title attribute from resource bundle.

2009-07-13 Thread wkbutler
('%{formQuestion.question.questionKey}') among many others. Haven't found this on the forums, probably missed it though. Thanks - wkbutler wrote: Is this still the only way to get i18n translatations into a struts tag from the resource bundle? I'm trying to get a label on some struts fields, i.e

Re: For s:textfield tag how to get value for title attribute from resource bundle.

2009-07-13 Thread wkbutler
Yep I did find that, thanks. What I've realized is that I have the OGNL double-evaluation problem. I'm really trying to get this result for the s:textfield label: label=%{getText('%{formQuestion.question.questionKey}')} which of course is not legal, but I guess I'm somewhat

RE: For s:textfield tag how to get value for title attribute from resource bundle.

2009-07-10 Thread wkbutler
Is this still the only way to get i18n translatations into a struts tag from the resource bundle? I'm trying to get a label on some struts fields, i.e. s:textfield name=userResponses[%{#loop.index}].userResponseValues[0].value

Re: Rest plugin and 2.1.6 - controllers not mapped

2009-03-12 Thread wkbutler
This is combination that I found worked, but using all 2.1.6. * Name your action *Controller (as you have done) * Make sure you have a simple struts.xml like is shipped with the struts2-rest-showcase demo app (packaged with the plugin download) and no other lingering struts properties * Make

Re: Mapping FreeMarker results in struts-rest-plugin

2009-03-11 Thread wkbutler
Thanks Bill - my action class is actually called SubdivisionController. Interesting you're getting responses for ftl requests. These URI's resolve for me: http://localhost:8080/lotmap/subdivision/id1 http://localhost:8080/lotmap/subdivision/id1.xml and these fail with a 404

Mapping FreeMarker results in struts-rest-plugin

2009-03-10 Thread wkbutler
Hi - Has anyone had luck using .ftl templates with the struts2-rest-plugin? I see that .ftl is mapped by the struts-default.xml in struts-core, and somehow Convention enables this mapping itself, although I don't quite get how that happens. The REST plugin resolves .jsp (or is Convention

Re: Struts mapping failing when using struts2-convention-plugin

2009-03-10 Thread wkbutler
config settings, Convention should be mapping http://localhost:8080/lotmap/subdivision to the mentioned class. Look at the logs in debug mode, Convention will say to what namespace and action name is mapped to every class. musachy On Fri, Mar 6, 2009 at 4:32 PM, wkbutler kent.but

Struts mapping failing when using struts2-convention-plugin

2009-03-06 Thread wkbutler
Hi - I am attempting to use the struts-rest-plugin, v2.1.6. I am using struts2-rest-showcase-2.1.6 as a guide. The showcase app works fine for me, and I have modeled my struts.xml, web.xml, and pom.xml after its example. Still, my app always returns a 404 error for any RESTful URL request.

Re: Struts mapping failing when using struts2-convention-plugin

2009-03-06 Thread wkbutler
/view see the troubleshooting section in the convention plugin. musachy On Fri, Mar 6, 2009 at 3:20 PM, wkbutler kent.but...@gmail.com wrote: Hi - I am attempting to use the struts-rest-plugin, v2.1.6.  I am using struts2-rest-showcase-2.1.6 as a guide. The showcase app works fine for me

Bypassing action mappings

2008-02-14 Thread wkbutler
Hi - Newbie question- I hope this isn't too obvious. I'm trying to enable the OGNL debug console (using request param 'debug=console'), and am receiving the error There is no Action mapped for namespace /struts and action name webconsole since struts is trying to map the URL. The

Re: Bypassing action mappings

2008-02-14 Thread wkbutler
That was it Dave, thanks. I'm using Appfuse and it declares a StaticFilter in the web.xml - adding /struts/* to the includes did the trick. newton.dave wrote: --- wkbutler [EMAIL PROTECTED] wrote: I'm trying to enable the OGNL debug console (using request param 'debug=console'), and am