Hello,
with this configuration in pom.xml
...
org.apache.struts
struts2-core
2.0.11
org.apache.tiles
tiles-core
2.0.5
org.apache.tiles
tiles-jsp
2.0.5
org.apache.struts
struts2-tiles-plugin
2.0.
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 {
p
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 Mai
This is select box. u make this as html select
&contentId=');">
This is javascript
--
function getPage(ccid,url){
var cId = document.getElementById("contentId").value;
document.location.href = url+cId+'&xxxId='+ccid;
}
by using this u can get what u want.
Ingo Villnow wrote:
>
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 spec
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
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 vital
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:
The error I get:
8188 ER
hi,
seems like ur missing validation and workflow interceptors. Try out this
entry in ur xml file:
...
bla bla
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 i
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
--- Mufaddal Khumri <[EMAIL PROTECTED]> wrote:
>
>
> 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. - [unknown location]
That's a different er
--- 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.
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 19:30
--- 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 be
Here are all the files with the TestAction as well. I still get the
Exception. Any idea as to whats going on?
struts.xml
--
http://struts.apache.org/dtds/struts-2.0.dtd";>
struts-cw.xml
-
http://struts.apache.org/dtds/struts-2.0.dtd";>
/cw
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
>
> -
> 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!li
--- 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
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
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 respon
--- 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 defin
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:
http://www.n
There should be
ArrayList 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.htm
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,
{
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-
> st
--- Henry Park <[EMAIL PROTECTED]> wrote:
> getUrl("MenuAction!list.action")
What's "getUrl", a JavaScript function?
>
Where do you define "MenuAction"?
> It enters my 'prepare()' method but does not enter my doList() method.
Is your logging turned up to eleven? Is it a default S2 thing
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 metho
Thanks for the reply, I looked further,
My guess, I am facing this problem because on jsp I am looping thr the
thresholdCollection
--
This is giving me multiple input text
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:
==
http://struts.apache.org/dtds/struts-2.0.dtd";>
st
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
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 bu
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 wan
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 ident
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):
But works if the package in map.xml is copy to struts.xml:
Any idea?
-Original Message-
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
Nils-H,
I noticed some error in my struts-view.xml. It now looks like:
/WEB-INF/view/index.jsp
3000
1000
/WEB-INF/view/wait.jsp
/WEB-INF/vi
Xibin Liu wrote:
In tld of 2.0.11:
param
org.apache.struts2.views.jsp.ParamTag
JSP
name
false
false
In tld of 2.0.9:
param
org.apache.struts2.views.jsp.ParamTag
JSP
name
false
true
I
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 Actio
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
> >
> >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
-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 invok
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
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 the
In tld of 2.0.11:
param
org.apache.struts2.views.jsp.ParamTag
JSP
name
false
false
In tld of 2.0.9:
param
org.apache.struts2.views.jsp.ParamTag
JSP
name
false
true
Is the change made
-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
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
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):
But works if the package in map.xml is copy to struts.xml:
Does not work (in struts.xml):
But works if the package in map.xml is copy to struts.xml:
Any idea?
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 20, 2007 4:47 PM
To: Struts Users Mailing List
Subject: Re: SEVERE:
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 e-mail
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.
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
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 pr
> 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
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:
>> >> >>>
>> >> >>> > >> >>> parameter="com.equi
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 missi
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 en
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() help!
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 org.apache.struts.action
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
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
__
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 concre
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 [
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:
>> >>>
>> >>> > >>> parameter="com.equitystory.pms.resources.ApplicationResources" />
>> >>>
>>
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.
> struts.i18n.encodi
65 matches
Mail list logo