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:
http://old.nabble.com/
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:
CaseFile contains List called 'sentences'.
Qualifier looks like
private Long qualifierId;
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).
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:
http://www.op
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:
http://www.nabble.com/For-s%3Atextfield-tag-how-to-get-value-for-ti
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 su
object access as finding the value "q.client.firstName" etc.
Any idea how to specify that the inner OGNL translation should happen first?
I have tried
label="getText('%{formQuestion.question.questionKey}')"
among many others. Haven't found this on the
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.
with a messageSource defined as
classpath:/form
template. On the
other server, the same no-extension URL resolves to the FTL template when
both exist.
wkbutler wrote:
>
> Thanks Bill - my action class is actually called SubdivisionController.
> Interesting you're getting responses for ftl requests.
>
> These
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 sure
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
http://lo
t; much of REST myself, but with your 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.
>
&g
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 doin
ll map to:
>
> /orders/view
>
> see the troubleshooting section in the convention plugin.
>
> musachy
>
> On Fri, Mar 6, 2009 at 3:20 PM, wkbutler wrote:
>>
>> Hi -
>> I am attempting to use the struts-rest-plugin, v2.1.6. I am using
>> struts2-res
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.
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 req
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 webcon
17 matches
Mail list logo