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:
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
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
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
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:
('%{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
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
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
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
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
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
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
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.
/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
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
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
16 matches
Mail list logo