Re: [s2] Struts 2.1.8 - jsonplugin 0.34

2009-08-06 Thread Alfredo Brizzi
Thanks all for replay. I have downloaded the plugin jsonplugin-0.34 for struts 2.1.x and i have also downloaded it from svn but the error persist. I think that the problem is the package 'xwork 2.1.5' that not has the TextUtils class and the jsonplugin call its in the JSONUtil class and

param for action in struts.xml

2009-08-06 Thread Steven Yang
Hi I want to set initial value for an action I believe the way is action name=myAction class=.xxx.xxxAction param name=myParammyParamValue/param /action then myParamValue will be set to my Action's myParam property. but i am not getting anything in my action class. Am i missing something?

Re: Struts 2.1 release date?

2009-08-06 Thread Dave Newton
hisameer wrote: Hi I am using Struts2.1.6 and trying to use DOJO inorder to use tabbed panel using this http://struts.apache.org/2.0.9/docs/ajax-and-javascript-recipes.html#AjaxandJavaScriptRecipes-Reloadtabscontentwhenselected link . I no able to see the tabs at all This is my jsp page: %@

Re: [s2] Struts 2.1.8 - jsonplugin 0.34

2009-08-06 Thread Michael Finney
FYI Issue 91: doesn't work with struts 2.1.7 http://code.google.com/p/jsonplugin/issues/detail?id=91 On Thu, Aug 6, 2009 at 2:30 AM, Alfredo Brizzialfbr...@yahoo.it wrote: Thanks all for replay. I have downloaded the plugin  jsonplugin-0.34 for struts 2.1.x  and i have also  downloaded

RE: param for action in struts.xml

2009-08-06 Thread Martin Gainty
webapp: specified on servlet's definition of web.xml servlet servlet-namedwr/servlet-name servlet-classuk.ltd.getahead.dwr.DWRServlet/servlet-class init-param param-namesnafu/param-name param-valuetrue/param-value /init-param

Re: param for action in struts.xml

2009-08-06 Thread musomesa
Looks more like the questioner is after StaticParams. I would check -- that you have the appropriate setter -- that your interceptor stack includes staticParams Chris -Original Message- From: Martin Gainty mgai...@hotmail.com To: Struts Users Mailing List user@struts.apache.org

Re: param for action in struts.xml

2009-08-06 Thread Steven Yang
Thanks a lot ChrisI guess I took out one too many interceptor from the basic stack. StaticParam is what i am looking for

Tabs don't appear using Struts 2.1.6 and dojo

2009-08-06 Thread hisameer
Hi all, I need to create 3 tabs, in my jsp page. I thought of using dojo because at later stages I might have to make them dynamic. But I am not even able to see those tabs as of now.I only see the Local Tab 1 Local Tab 2 which is the content of those two tabs. Here is my sample JSP page: %@

Re: struts2 ognl confusion

2009-08-06 Thread musomesa
is it (questionId) human generated 9I am thinking leading/trailing white space etc). Really clutching at straws but somehow the questionid must occasionally be different ... Chris -Original Message- From: Bhaarat Sharma bhaara...@gmail.com To: Struts Users Mailing List

Using s:a Ajax tag with struts2.0.11

2009-08-06 Thread sharath karnati
Hi All,       Say I have COMPLAINT table as below     div id=div1 table class=datatab cellpadding=0 cellspacing=5 width=95% thead tr align=left th c:choose c:when test=${sort_by == 'complaint_id'} s:url

struts2 portlet bug RenderRequest cannot be obtained in event phase

2009-08-06 Thread Leonidas Papadakis
Greetings to all , i have setup latest struts 2.1.6 and created a simple portlet for liferay 5.2.3 Everything went smoothly until i tried to run the below code : RenderRequest req = PortletActionContext.getRenderRequest(); ThemeDisplay themeDisplay = (ThemeDisplay)

Is this expected behaviour for s:url tag?

2009-08-06 Thread Andy Law
I have actions that sit underneath a set of namespaces. The namespace conveys a piece of information to the action like a poor-man's REST. i.e. context/Cow/ShowDetails.action context/Pig/ShowDetails.action etc. I need to construct some links from within the JSP that is hit by the individual

Re: struts2 portlet bug RenderRequest cannot be obtained in event phase

2009-08-06 Thread Nils-Helge Garli Hegvik
The portlet execution life cycle is separated in two: The action/event phase, in which state transitions (typically a form submit) occurs, and then the render phase, where the actual output is rendered. The request object that is available in these two phases are not the same. In the action phase,

Re: AJAX issues in struts 2.1.6

2009-08-06 Thread Peter Phillips
I tried the dojo plugin in struts 2.1.7 and gave up - deciding that it was effectively broken. It is deprecated anyway in struts 2.1. The template problems you are having can be fixed by copying the template files into your local project (keeping the template/ajax directory structure) and

Re: [s2] Struts 2.1.8 - jsonplugin 0.34

2009-08-06 Thread Musachy Barroso
Sorry for the miss-information, I confused the problem with another one. Yes, the released json plugin does not work with xwork 2.1.5. The plugin was moved here: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-json-plugin/ and that one works with xwork 2.1.5, but you will have to build

Current version of Struts 2?

2009-08-06 Thread chengas123
Hi, What's the current released version of Struts 2? The homepage says it's 2.1.7, but when I go to download it, I can only download 2.1.6. I've noticed this problem many times in the past and it's always confused me. If 2.1.7 is out, I really need a copy for the new

Re: Current version of Struts 2?

2009-08-06 Thread Musachy Barroso
When you go to: http://struts.apache.org/ you will see two links in the top right corner. You will see that the Struts 2 link points to 2.1.6, that link always points to the latest GA. The confusion comes from the 2.x directory(http://struts.apache.org/2.x/index.html) which reflects the

Re: struts2 portlet bug RenderRequest cannot be obtained in event phase

2009-08-06 Thread Leonidas Papadakis
Hi Nils-H and thanks for your reply. Much appreciated. At the moment this is in my struts.xml package name=view extends=struts-portlet-default namespace=/view action name=index class=struts.actions.ContentAction result/WEB-INF/jsp/view/index.jsp/result /action

Re: struts2 portlet bug RenderRequest cannot be obtained in event phase

2009-08-06 Thread Nils-Helge Garli Hegvik
Try something like this: action name=editcontent class=struts.actions.EditContentAction result type=redirectAction param name=actionNameindex/param /result /action This of course assumes that you have actually separated the processing and view logic in these two actions. You should also