couldn't access s:include param using #parameters

2008-08-26 Thread crappycrumpet
Okay I have made 2 small jsp. I can't access parameters passed in from s:include (struts 2.0.11.2) by #parameters.parametername OR #parameters['parametername']. Am I doing something really wrong? quicktest.jsp: %@ taglib prefix=s uri=/struts-tags % s:include value=quicktestincluded.jsp

Re: Struts 2.0.11 from 2.0.9 EL Expression problem

2008-08-25 Thread crappycrumpet
Yes the select code was meant to be a generic select where I can just bung it in the struts.xml for different Action classes that has the values for fieldName, list (vector of object), listKey, listValue so that I can just make select dropdowns without making more coding. So when I make assorted

Re: Struts 2.0.11 from 2.0.9 EL Expression problem

2008-08-25 Thread crappycrumpet
Yes exactly!!! Hence I was wondering how I can work around it. I guess I'll have to roll back or write my own select thing iterating through the list and doing (listKey)([0]), (listValue)([0]) :(. My god I wish I understand what select.ftl is doing. (FYI, the OGNL conversion section says todo

Re: Struts 2.0.11 from 2.0.9 EL Expression problem

2008-08-24 Thread crappycrumpet
? Thanks for the reply! cheers. Gabriel Belingueres-2 wrote: try using neither ${} nor %{}: listKey='listKey' listValue='listValue' 2008/8/22, crappycrumpet [EMAIL PROTECTED]: Hi All, I know EL Expression has been disabled from 2.0.10 on. Unfortunately I have

Struts 2.0.11 from 2.0.9 EL Expression problem

2008-08-21 Thread crappycrumpet
Hi All, I know EL Expression has been disabled from 2.0.10 on. Unfortunately I have some jsp has uses EL. I have this jsp files that renders a generic dropdown box that looks like the following. s:select name=%{fieldName} list='list' listKey='${listKey}'

Re: jsp page with s:action to call an action with a redirect-action

2008-04-29 Thread crappycrumpet
Hi Ralf, Ralf Fischer-2 wrote: Please tell us exactly what you want to do, as there might be a simpler solution to your problem. Okay I don't have hibernate and this is what I'm sort of doing. Let's say that I have a table of staffs, offices and things_assignment (which links staffs and

jsp page with s:action to call an action with a redirect-action

2008-04-28 Thread crappycrumpet
Hi, I have a problem where I have a page (let's call it a.jsp) which calls an action using s:action (let's call it actionB in namepaceB) which redirects to actionA in namespaceA, using redirect-action, which display the name attribute in object a. (both implements modelDriven). actionB take

Re: jsp page with s:action to call an action with a redirect-action

2008-04-28 Thread crappycrumpet
Currently I have made a work around by assigning the result for actionB to b.jsp which invoke actionA using another s:action and parsing the parameter through using s:param. I just thought perhaps you can just redirect action without a page in between the two actions. Oh well. cheers. -- View

setting actionerror and result input annoyance

2008-02-27 Thread crappycrumpet
into MenuAction in struts.xml and added public String input() in it to return execute(); but still it doesn't my menu properly. Is it possible to make certain action to always run like normal no matter what is result of an action is? thanks, CrappyCrumpet -- View this message in context: http

Iterator action setObject param

2008-02-20 Thread crappycrumpet
in the action param that's from a iterator? Or does it only work with strings or whatever standard type converter stuff struts uses? Do I have to write a custom type converter for it to work? I hope it makes sense :/ thanks, CrappyCrumpet -- View this message in context: http://www.nabble.com/Iterator

Re: Iterator action setObject param

2008-02-20 Thread crappycrumpet
in the caller and the other action). And to use ignoreContextParams=true in my s:action.../ so that the action attribute doesn't mysteriously get set to other stuff. I hope there isn't too much other things to workout -_- . Thank you for your response! cheers, CrappyCrumpet -- View this message in context