Teresa,
FWIW, I have apps that utilize redirectAction (i.e.
ServletActionRedirectResult) without issue.
Just curious, what version of Struts2 are you running and what container are
you using?
Best,
jb
From: Teresa McGinley
To: user@struts.apache.org
Sent: T
You have struts 2 jquery plugin for grid and full hibernate support plugin
to do pagination.
With Best Regards,
Amol Ghotankar
Technical Lead
Cursive Technologies Pvt. Ltd.
www.cursivetech.com
You implement the ParameterAware interface on your Action. Struts calls
your action's setParameters(Map) method passing you the map of all the
parameters that were submitted by the form. You use the map in your
action's execute() method to fulfill it's reason for being.
(*Chris*)
On Wed, May 1
If my action has "map" and getter getMap(), how would I specify the
name= field in my struts tags to fetch specific values from the map?
Mitch
On 05/11/2011 02:32 PM, Dave Newton wrote:
Not sure how to elaborate on using a map. Expose a map, use whatever
key makes sense? Iterate over the k
From my reading on ModelDriven, it seems that will just push my issue
to the Model object, instead of the Action. Struts will still look for
getFred1(), getFred2() etc on the Model object.
mitch
On 05/11/2011 02:12 PM, CRANFORD, CHRIS wrote:
Look at the ModelDriven approach
- Origina
On Wed, May 11, 2011 at 3:29 PM, Mitch Claborn wrote:
> Can you elaborate a bit? My values will not necessarily be sequential.
Not sure how to elaborate on using a map. Expose a map, use whatever
key makes sense? Iterate over the keys using whatever comparator you
need? What do you want to know?
Can you elaborate a bit? My values will not necessarily be sequential.
mitch
On 05/11/2011 02:14 PM, Dave Newton wrote:
On Wed, May 11, 2011 at 3:03 PM, Mitch Claborn wrote:
Is there some kind of catch-all or generic method that is called to retrieve
the value for a form field if there is no
I think the ParameterAware is for setting values into my Action. I need
to get the values from my action, into the HTML form.
mitch
On 05/11/2011 02:07 PM, Chris Pratt wrote:
Not as such, but you can implement the ParameterAware[1] interface and
retrieve the from the supplied map.
(*Chris
On Wed, May 11, 2011 at 3:03 PM, Mitch Claborn wrote:
> Is there some kind of catch-all or generic method that is called to retrieve
> the value for a form field if there is no specific getter?
No, but you could use a map, or a collection if they're sequential as you show.
Dave
-
Look at the ModelDriven approach
- Original Message -
From: Mitch Claborn
To: user@struts.apache.org
Sent: Wed May 11 14:03:33 2011
Subject: Retrieving values for which there is no specific getter
In Struts 2, if my Action class has a variable named "fred" and a getter
"getFred()", a
Not as such, but you can implement the ParameterAware[1] interface and
retrieve the from the supplied map.
(*Chris*)
1 -
http://struts.apache.org/2.0.6/struts2-core/apidocs/org/apache/struts2/interceptor/ParameterAware.html
On Wed, May 11, 2011 at 12:03 PM, Mitch Claborn wrote:
> In Struts 2,
In Struts 2, if my Action class has a variable named "fred" and a getter
"getFred()", a will call that getter to
retrieve the value from the action.
Is there some kind of catch-all or generic method that is called to
retrieve the value for a form field if there is no specific getter? For
ex
On 2011-05-11, at 2:24 PM, Haroon Rafique wrote:
>
> On 2011-05-11, at 2:17 PM, Haroon Rafique wrote:
>
>>
>> web.xml
>> http://pastebin.ca/2056943
>>
>
>
> Commenting out all the filters and listeners lets me access index.jsp. Still
> investigating which one is the culprit.
>
Looks lik
I am using the struts2 (v 2.2.3) json-plugin and have a model object field
that is a java.util.Date. However, when this date field is converted to json
data it's coming back like "2011-05-11T09:14:41". Some older browsers (IE7 &
IE8) don't like this format, but can handle the milliseconds date form
On 2011-05-11, at 2:17 PM, Haroon Rafique wrote:
>
> web.xml
> http://pastebin.ca/2056943
>
Commenting out all the filters and listeners lets me access index.jsp. Still
investigating which one is the culprit.
--
Haroon Rafique
Enterprise Apps & Solutions Integration, University of Toront
On 2011-05-11, at 1:20 PM, Maurizio Cucchiara wrote:
> So my guess is that there is something wrong in your configuration.
> Could you please post your (Don't attach them, rather use a pastebin
> service):
> 1. struts.xml
> 2. web.xml
>
> Have you checked if it works in tomact?
>
Hi Maurizio,
Hi there,
i wanted to validate array of string in my action
snap:
MyAction entends
{
String[] data;
}
how i can do this throw annotation,
thanks.
--
View this message in context:
http://struts.1045723.n5.nabble.com/VisitorFieldValidator-on-String-tp4388050p4388050.html
Sent from the St
Thanks for the reply. I had tried the same thing and again removed. Will
there be any dis/adv if I use this Model class ?
Another question is how can i pass/retrieve a parameter in my action class ?
http://localhost:8080/Samvidh_CIS/doEditAllergy.action?allergy.Id=1002
I want this allergy.Id=1002
So my guess is that there is something wrong in your configuration.
Could you please post your (Don't attach them, rather use a pastebin
service):
1. struts.xml
2. web.xml
Have you checked if it works in tomact?
On 11 May 2011 19:16, Haroon Rafique wrote:
> struts2-showcase from both 2.2.1 and 2
struts2-showcase from both 2.2.1 and 2.2.3 work fine in glassfish 2.2.1.
On 2011-05-11, at 12:19 PM, Maurizio Cucchiara wrote:
> Have you checked if struts showcase works (there is a section
> dedicated to freemarker)?
>
> On 11 May 2011 17:31, Haroon Rafique wrote:
>> Hi there,
>>
>> Just bum
It's so good to hear it. :)
On 11 May 2011 18:42, Sarr, Nathan wrote:
> I did a quick test and it appeared to work correctly.
>
> -Nate
>
> -Original Message-
> From: Maurizio Cucchiara [mailto:maurizio.cucchi...@gmail.com]
> Sent: Wednesday, May 11, 2011 12:37 PM
> To: Struts Users Mail
I did a quick test and it appeared to work correctly.
-Nate
-Original Message-
From: Maurizio Cucchiara [mailto:maurizio.cucchi...@gmail.com]
Sent: Wednesday, May 11, 2011 12:37 PM
To: Struts Users Mailing List
Subject: Re: XSS Vulnerability in Struts 2 before 2.2.3
I did not checked be
I did not checked before, but I bet it works (Please Let us know if it doesn't).
On 11 May 2011 16:47, Sarr, Nathan wrote:
> Hello,
>
>
>
> I noticed the solution mentions turning off DMI support in
> struts.xml. Would the same result be achieved by setting it in the
> struts.properties file:
Have you checked if struts showcase works (there is a section
dedicated to freemarker)?
On 11 May 2011 17:31, Haroon Rafique wrote:
> Hi there,
>
> Just bumped my version from 2.2.1 to 2.2.3 (FWIW, by changing a property in
> my pom.xml from 2.2.1 to 2.2.3). I use freemarker for my view and all
Hi there,
Just bumped my version from 2.2.1 to 2.2.3 (FWIW, by changing a property in my
pom.xml from 2.2.1 to 2.2.3). I use freemarker for my view and all the
freemarker related pages work fine. My deployment environment is glassfish
2.2.1 on Mac OS X 10.6.7 with java "1.6.0_24", maven 2.2.1.
Hello,
I noticed the solution mentions turning off DMI support in
struts.xml. Would the same result be achieved by setting it in the
struts.properties file:
# don't allow dynamic method invocation
struts.enable.DynamicMethodInvocation = false
Thanks,
-Nate
There isn't any; Struts is largely front-end neutral. Check the jQuery
plugin, otherwise your best bet is to use any of the myriad pagination libs.
DisplayTag is open-source, BTW.
Dave
On May 11, 2011 7:48 AM, "Pankaj Gupta" wrote:
> Hi,
>
> But I am looking for Pagination in Struts framework s
Hi Dav,
I have done what you suggest, witch is developing my custom validator and
reuse it in my annotation, that works well
@CustomValidator(type ="customCreditCardValidator", fieldName =
"creditCard", message = "invalid credi card number", parameters =
{@ValidationParameter(name = "creditCard",
Hi,
But I am looking for Pagination in Struts framework specifically.
Thanks,
Pankaj
On Wed, May 11, 2011 at 3:51 PM, Kushan Jayathilake wrote:
> Well.. if you are going with JSF, there are tags with pagination support
> builtin.
> you just need to pass the collection and the page size for
Don't miss out on just implementing a validation method directly in your action.
Unless you are going to reuse the validation code is it worth the effort of
writing an annotation?
Jim
-Original Message-
From: Mohamed SIDI [mailto:mhm.s...@gmail.com]
Sent: 11 May 2011 09:39
To: Struts Us
You'll want a custom validator, which you can configure with an annotation.
Dave
On May 11, 2011 4:39 AM, "Mohamed SIDI" wrote:
> Hi all,
>
> I'm using struts2 annotation validation mecanisme, I have a problem with
> credit card validation, I should develop my own annotation for this issue,
> so
Hi,
If you want to keep the bean in a separate class then your action class that
needs to implement two interfaces Modeldriven and Preparable. Its called
model driven approach in struts 2
class MyBean
{
// attributes
// getter and setter
}
class MyAction extends ActionSupport implements ModelDri
Well.. if you are going with JSF, there are tags with pagination support
builtin.
you just need to pass the collection and the page size for that
On Wed, May 11, 2011 at 3:25 PM, Pankaj Gupta wrote:
> Hi All,
>
> Is there any way Jaakata /SUN library or any api in struts which can be
> used
> to
Hi All,
Is there any way Jaakata /SUN library or any api in struts which can be used
to
implement pagination.
I suggested Display tag and Page Loader, but since they are not open source,
not ssociated with Jakarta/Sun, user is not agreeging to it?
Any suggestions would be appreciated?
Thanks
Hi all,
I'm using struts2 annotation validation mecanisme, I have a problem with
credit card validation, I should develop my own annotation for this issue,
someone can help me to do that, or explain me the steps ?
thanks
--
Cordialement
Mohamed
35 matches
Mail list logo