Thanks a lot, that has sorted it out.
I'm a bit confused as to why changing the default from utf-8 works though...
Jonny Cavell wrote:
I am setting default_encoding=UTF-8 in freemarker.properties, and leaving
the struts encoding in default.properties untouched (i.e.
Hi,
Laurie Harper wrote:
Sebastian Göttschkes wrote:
Laurie Harper wrote:
Sebastian Göttschkes wrote:
[...]
I defined the message resources in the struts-config.xml:
!-- Message Resources Definitions --
message-resources
sai reddy wrote:
Hi friends.
What's the difference between Action.perform() and Action.execute()
methods??
I'm talking about org.apache.struts.action.Action class.
The key difference is that there is no such method as Action.perform()
anymore... [1] ;-) It was
- deprecated in Struts 1.1
Just take a look at the showcase!
On Jan 2, 2008 2:24 PM, Partha Maitra [EMAIL PROTECTED] wrote:
Hi All,
Happy new year,
I am new to struts and have got a problem,
I want to handle the duplicate form submission using saveToken(),
isTokenValid() method, but unable to findout any concrete
Thanks for the idea,
but pls dont respond to discourage someone who's trying to learn
if you dont know to respond then pls stop responding.
==
Thanks Regards,
Partha
__
Hi Yann,
I'm using your plugin - it's a really great help for Struts2 development.
Thanks a lot!
The one thing which is missing for me is that Spring beans are not
recognized as action classes.
Joachim
Hello all,
some of the IDEA users here may already have seen it: there's a new plugin
to
I think perform() was a very old method and is deprecated. Stick with
execute().
Thanks,
Paul
On Jan 1, 2008 11:01 PM, sai reddy [EMAIL PROTECTED] wrote:
Hi friends.
What's the difference between Action.perform() and Action.execute()
methods??
I'm talking about
I think you misunderstood him.
Have you looked at the showcase?, if so where did you have a problem
understanding how it should work?
-Original Message-
From: Partha Maitra [mailto:[EMAIL PROTECTED]
Sent: 02 January 2008 12:19
To: Struts Users Mailing List
Subject: Re: saveToken()
Hi, thanks for the response. I removed the '^' and '$' characters and it still
does not pass validation when I enter a valid password. It is a little wierd,
when i enter only lower case characters (or only uppercase characters or only
numbers), the check works correctly by saying I need to
Hello Joachim,
thanks. Spring integration is already on my list
(http://www.jetbrains.net/jira/browse/STRPL-10).
Greetings,
Yann
Joachim Ansorg-3 wrote:
Hi Yann,
I'm using your plugin - it's a really great help for Struts2 development.
Thanks a lot!
The one thing which is missing
Hi again,
I wrote:
Hi,
Laurie Harper wrote:
Sebastian Göttschkes wrote:
Laurie Harper wrote:
Sebastian Göttschkes wrote:
[...]
I defined the message resources in the struts-config.xml:
!-- Message Resources Definitions --
message-resources
Where the trouble comes in is if the field is unchecked which I thought
would set the value of the Boolean to false. It doesn't, it remains
as a true.
How do I implement behavior where if the checkbox is unchecked it sets
the corresponding property of the form to false?
The issue is that
Hi,
Has anyone used interceptor-ref in a portlet? I'm trying to port the
execute-and-wait showcase to a portlet. The initial page displays fine,
but upon submit, the following exception occurs:
[1/2/08 11:49:34:468 EST] 002b EventQueueMan E
com.ibm.wps.pe.pc.waspc.event.EventQueueManager
I have a login form. it has 3 buttons:
1. login
2. register
3. cancel
when the user clicks the login - the application validates that the user
input data on the 'username' and 'password' fields.
Question: how can I avoid this validation if the user clicks either
'register' or 'cancel'
thanks
one way I did that was by using the non-validating method point to a
method (in the Action class) to have the following annotation
@SkipValidation
Then in the struts tag, you force the button to use such method (method
attribute in tag).
Good luck!
xianwinwin wrote:
I have a login form.
the easiest way is to configure login/(cancel)logout/register to separate
actionsA complete example is located at
http://struts.apache.org/2.x/docs/simplelogin-with-session.html
ThanksMartin__Disclaimer and
confidentiality noteEverything in this
Does not work (in struts.xml):
struts
include file=map.xml/
/struts
But works if the package in map.xml is copy to struts.xml:
struts
package name=map namespace=/map extends=struts-default
/package
/struts
Any idea?
-Original Message-
From: Dave Newton
BTW, struts 2.0.9 is used.
-Original Message-
From: Xibin Liu
Sent: Wednesday, January 02, 2008 2:05 PM
To: 'Struts Users Mailing List'
Subject: RE: SEVERE: Error filterStart
Does not work (in struts.xml):
struts
include file=map.xml/
/struts
But works if the package in map.xml
I have a action form
public class ReconThresholdEditForm extends ValidatorForm
{
..
private ReconRuleBO reconRuleBO = new ReconRuleBO();
..
}
ReconRuleBO has collection of thresholdsBOs
public class ReconRuleBO {
..
private Collection thresholdCollection = new ArrayList();
}
public
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
David Durham, Jr. wrote:
request.getParameter(myUncheckedCheckbox) == null
Oh.. yuck.. but thanks David for that work around. Tried it and it
works for my purposes.
-
Peter L. Berghold Unix Professional
[EMAIL
In tld of 2.0.11:
tag
nameparam/name
tag-classorg.apache.struts2.views.jsp.ParamTag/tag-class
body-contentJSP/body-content
description![CDATA[Parametrize other tags]]/description
attribute
namename/name
requiredfalse/required
rtexprvaluefalse/rtexprvalue
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Maybe I'm misunderstanding just what Struts modules do, but I'm trying
to migrate from Struts 1.2 to Struts 1.3 and I'm running into some issues.
What I **think** 1.3 is going to buy me is the ability to split out
pieces of my web application into
I have never tested the execute and wait stuff, so I don't really know
how it works. But from reading the code for the interceptor, and
reading the stack trace, I would guess that this happens because the
default wait result is invoked and is not a result type that is
supported in a portlet. You
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Peter L. Berghold wrote:
Maybe I'm misunderstanding just what Struts modules do, but I'm trying
to migrate from Struts 1.2 to Struts 1.3 and I'm running into some issues.
Never mind.. figured out what was going on.
Seems when you invoke
request.getParameter(myUncheckedCheckbox) == null
Oh.. yuck.. but thanks David for that work around. Tried it and it
works for my purposes.
There are things that can be done to avoid to the ugly null check.
1. Don't initialize check-box fields. No initial values.
2. Don't use
Hmm, sounds like the regex matching is stricter than I assumed. Try
changing your rules from 'X' to '.*X.*' maybe, e.g. '.*[a-z]+.*'. Try
commenting two of the regex validations and experimenting with the third
until you're sure it's doing what you want, then bring the other two
back and alter
Greetings. I've seen a number of posts about this issue -- or related
issues -- but no comprehensive solution. I'll try again and be
succinct:
I have an action (Action1) that prepares a search screen (i.e.
populates a drop-down box). The search screen/form calls Action2 but
has a
Xibin Liu wrote:
In tld of 2.0.11:
tag
nameparam/name
tag-classorg.apache.struts2.views.jsp.ParamTag/tag-class
body-contentJSP/body-content
description![CDATA[Parametrize other tags]]/description
attribute
namename/name
requiredfalse/required
Nils-H,
I noticed some error in my struts-view.xml. It now looks like:
struts
package name=view extends=struts-portlet-default
namespace=/view
action name=index
result name=success/WEB-INF/view/index.jsp/result
/action
action
Manisha M Sathe wrote:
I have a action form
public class ReconThresholdEditForm extends ValidatorForm
{
...
private ReconRuleBO reconRuleBO = new ReconRuleBO();
...
}
ReconRuleBO has collection of thresholdsBOs
public class ReconRuleBO {
...
private Collection thresholdCollection
Sounds like there's probably a syntax error in map.xml. Did you check
your log files for relevant error messages?
L.
Xibin Liu wrote:
Does not work (in struts.xml):
struts
include file=map.xml/
/struts
But works if the package in map.xml is copy to struts.xml:
struts
package
Raghuveer wrote:
How the struts framework does identifies the client language and there by
uses the Message Resources for Internationalization..
Which version of Struts?
request.getHeader(accept-language) is giving the string as below
accept-language-pl,en-us;q=0.7,de;q=0.3
I need to
Leaving aside the issue that you really shouldn't be spitting HTML out
of calls to action methods, the answer to your question is no. JSPs are
aren't processed 'recursively' like that; you can't have the result of
evaluating something in a JSP be something that needs evaluating.
Why do you
Kevin Wade wrote:
Greetings. I've seen a number of posts about this issue -- or related
issues -- but no comprehensive solution. I'll try again and be succinct:
I have an action (Action1) that prepares a search screen (i.e. populates
a drop-down box). The search screen/form calls Action2
Thanks for the comment.
The problem is not that I'm losing the validation errors. I'm keeping
those across the redirect by using a modified interceptor stack with
the STORE interceptor. So, that's cool.
The problem is that *because* the errors are being preserved across
the redirect (I
I need to break my struts.xml into modules. So I came across this
page: http://struts.apache.org/2.x/docs/can-we-break-up-a-large-
strutsxml-file-into-smaller-pieces.html
Accordingly, I tried this:
struts.xml:
==
!DOCTYPE struts PUBLIC
-//Apache Software Foundation//DTD Struts
Thanks for the reply, I looked further,
My guess, I am facing this problem because on jsp I am looping thr the
thresholdCollection
--
logic:iterate name=reconThresholdEditForm id=ReconThresholdBO
property=reconRuleBO.thresholdCollection indexId=counter type=
Hello everyone, I am reposting this question as I am still having issues
with it.
I am having a really strange issue. In my application I
have a menu bar and a main content area. The menu bar and main content
area are populated separately using an Ajax call to their respective
action
--- Henry Park [EMAIL PROTECTED] wrote:
getUrl(MenuAction!list.action)
What's getUrl, a JavaScript function?
action name=Menu class=action.MenuAction method=list
Where do you define MenuAction?
It enters my 'prepare()' method but does not enter my doList() method.
Is your logging
Looking at this pretty quickly it looks like you left out the class for your
action=test
On Jan 2, 2008 2:03 PM, Mufaddal Khumri [EMAIL PROTECTED] wrote:
I need to break my struts.xml into modules. So I came across this
page: http://struts.apache.org/2.x/docs/can-we-break-up-a-large-
getUrl is a javascript function that makes an ajax call to my
actionclass. It uses Prototype. Here is the code:
function getUrl(url) {
var params = ;
var target = main_span;
var postMethod = POST;
params = Form.serialize($('theForm'));
new Ajax.Request(url,
{
There should be
ArrayListVO myList got to be populated in action class constructor
and provide setter and getter methods to it
prasad DTR
carmi_cd wrote:
hi i followed this tutorial.. in JasperReports/Struts 2 Integration
http://cwiki.apache.org/WW/jasperreports-tutorial.html
file uploaded
prasad DTR
carmi_cd wrote:
I need a tutorial that uses ArrayList of Object as datasource
for JasperReports..do you know any?
http://www.nabble.com/file/p14590214/JasperReports-struts2.doc
JasperReports-struts2.doc
--
View this message in context:
--- Henry Park [EMAIL PROTECTED] wrote:
What do you mean by 'where do I define MenuAction?' It is just
my action class.
Your JavaScript calls MenuAction!list.
There is no MenuAction defined in the chunk of struts.xml you posted; you
define an action named Menu. I'm asking if you define
OK, here's what I'm doing: I am generating forms from external data. Meaning,
I have some XML files, based on which, I am generating a form.
Normally I could do this without Actions, but rather include a bean into a
JSP file (am I right about that?)
However, I also need to use request and
Thank you for the help. My responses are below:
Date: Wed, 2 Jan 2008 18:20:12 -0800
From: [EMAIL PROTECTED]
Subject: RE: action call not calling action
To: user@struts.apache.org
--- Henry Park [EMAIL PROTECTED] wrote:
What do you mean by 'where do I define MenuAction?' It is just
--- Henry Park [EMAIL PROTECTED] wrote:
Sorry, I made some changes since I posted that message. I should have
updated. It actually calls Menu!list.action now.
Oh, okay.
And you're saying if you call it directly from the URL address bar on the
browser it works locally but when you access it
Date: Wed, 2 Jan 2008 19:02:07 -0800
From: [EMAIL PROTECTED]
Subject: RE: action call not calling action
To: user@struts.apache.org
--- Henry Park [EMAIL PROTECTED] wrote:
Sorry, I made some changes since I posted that message. I should
have
updated. It actually calls Menu!list.action
Regarding Log4J... wouldn't that only be useful if an error is thrown?
I don't get any error messages. It just does not get into my doList()
method.
Date: Wed, 2 Jan 2008 19:02:07 -0800
From: [EMAIL PROTECTED]
Subject: RE: action call not calling action
To: user@struts.apache.org
---
Here are all the files with the TestAction as well. I still get the
Exception. Any idea as to whats going on?
struts.xml
--
!DOCTYPE struts PUBLIC
-//Apache Software Foundation//DTD Struts Configuration 2.0//EN
http://struts.apache.org/dtds/struts-2.0.dtd;
struts
constant
--- Henry Park [EMAIL PROTECTED] wrote:
Regarding Log4J... wouldn't that only be useful if an error is thrown?
If logging is turned up to DEBUG level then quite a bit of configuration and
execution tracing is shown; there's more in the logs besides ERROR level
stuff.
If the only difference
I just figured the log4j part out. I set it to 'all' and I get a lot of
messages now :-)
I will try turning off advanced security protection and see if it makes
a difference. Unfortunately I do not have the rights to do that so I
can't try until tomorrow :-(.
Date: Wed, 2 Jan 2008
--- Adam Ruggles [EMAIL PROTECTED] wrote:
Looking at this pretty quickly it looks like you left out the class for
your action=test
It will just forward to the success result if no class is specified, like
S1's ForwardAction, but implicit.
d.
--- Mufaddal Khumri [EMAIL PROTECTED] wrote:
package name=cw namespace=/cw extends=struts-default
The error I get:
8188 ERROR org.apache.struts2.dispatcher.Dispatcher serviceAction
[512] - Could not find action or result
There is no Action mapped for action name test.
Hi,
I am sorry that I misunderstood him, really sorry for that..:-(
it was very useful document, but I am working with struts 1.3 and the
example was with struts2
it will be a great help if you can provide me an example with 1.3 with
saveToken() method..
==
Thanks Regards,
Partha
hi,
the workaround works, but causes problems if the checkbox should be
validated. More over the soln is based on assumptions that need not hold
always. There are 2 possible soln for this in my view:
1. use checkbox interceptor
(http://struts.apache.org/2.x/docs/checkbox-interceptor.html). But
hi,
seems like ur missing validation and workflow interceptors. Try out this
entry in ur xml file:
...
action name=bla blaclass=bla bla Action method=bla bla
interceptor-ref name=scope
bla bla
Dave,
I managed to get it working. The problem was that I had my struts.xml
and struts-cw.xml inside of WEB-INF/ instead of WEB-INF/classes/
Thanks.
On Jan 2, 2008, at 8:50 PM, Dave Newton wrote:
--- Mufaddal Khumri [EMAIL PROTECTED] wrote:
package name=cw namespace=/cw
hi,
the issue seems to be fixed. It seems like a problem with the xhtml theme
thats not using .js files properly. i corrected the validation.js in xhtml
and ajax folders, validationClilent.js and created a corrected theme
(http://www.vitarara.org/cms/struts_2_cookbook/creating_a_theme : was
i think u can ty this way:
create a new mapping where there are no validations for action 1. Now on
validation errors of action 2 it would redirect to this action 1; thus
skipping validations of action 1.
if u want the function call only and no validations... may b u can call the
method action1
Thanks for the help guys. There was a problem with the struts.jar we had.
Apparently it was broken. We fixed it.
On Dec 29, 2007 8:16 AM, Wendy Smoak [EMAIL PROTECTED] wrote:
On Dec 28, 2007 12:10 AM, Sridhar Raman [EMAIL PROTECTED] wrote:
In the struts-config.xml file, I need to specify
This is select box. u make this as html select
select name=contentId id=contentId
onchange=getPage(%=companyId%,'./xxx.do?step=bean:message
key=link..x/contentId=');
This is javascript
--
function getPage(ccid,url){
var cId = document.getElementById(contentId).value;
Is the information at
http://www.jaxmag.com/itr/online_artikel/psecom,id,648,nodeid,147.html about
half way down the page (titled Handle duplicate form submission) any use?
-Original Message-
From: Partha Maitra [mailto:[EMAIL PROTECTED]
Sent: 03 January 2008 04:59
To: Struts Users
A polymorphic array would be my suggestion.
Have an array of objects which contain an identifier for the struts tag
type, and the data needed to populate it. For example;
In your action you would have ;
private MyPolyObject[] blah;
Where MyPolyObject contains;
class MyPolyObject {
Hello,
with this configuration in pom.xml
...
dependency
groupIdorg.apache.struts/groupId
artifactIdstruts2-core/artifactId
version2.0.11/version
/dependency
dependency
groupIdorg.apache.tiles/groupId
artifactIdtiles-core/artifactId
65 matches
Mail list logo