Try something like this:
index
This of course assumes that you have actually separated the processing
and view logic in these two actions.
You should also take a look at the portlet tutorial:
http://struts.apache.org/2.1.6/docs/struts-2-portlet-tutorial.html
Nils-H
2009/8/6 Leonid
Hi Nils-H and thanks for your reply. Much appreciated.
At the moment this is in my struts.xml
/WEB-INF/jsp/view/index.jsp
/WEB-INF/jsp/view/edit.jsp
/WEB-INF/jsp/view/index.jsp
initially the portlet executes the index ac
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 "developmen
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 struts.action.excludePatter
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
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 changin
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,
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.
/Cow/ShowDetails.action
/Pig/ShowDetails.action
etc.
I need to construct some links from within the JSP that is hit by the
individual actions and have
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)
req.getAttribute(We
Hi All,
Say I have COMPLAINT table as below
Complaint ID
Complaint ID
Consumer Name
Consumer Name
Submission Date
Submission Date
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
To: Struts Users Mailing List
Sent: Wed, Aug 5, 2009 1:4
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:
<%@ tag
Thanks a lot ChrisI guess I took out one too many interceptor from the basic
stack.
StaticParam is what i am looking for
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
To: Struts Users Mailing List
Sent: Thu, Aug 6, 2009 8:26 am
Subject: RE:
webapp:
specified on servlet's definition of web.xml
dwr
uk.ltd.getahead.dwr.DWRServlet
snafu
true
as you can see from the example critical parameter snafu is set to true
Action specific:
a param can be specified for a specific i
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 Brizzi wrote:
> 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
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:
<%@
Hi I want to set initial value for an action
I believe the way is
myParamValue
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? or its not how it works?
I am using Struts 2.1.8 SNAPSHOT.
Thanks
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
19 matches
Mail list logo