>To answer that part: not that I know of, but the existing WebWork in Action
from Manning is very good, and applies equally well to Struts 2 with minor
adjustments for package renaming etc.
Maybe it's time to create a web forum for Struts 2 and make a sticky thread
that says "Read Webwork in Actio
Hi All:
I have a Web App in which I can add/edit/delete and list events using an
eventForm Object which is stored in session in the struts-config action
declaration.
Addition/Deletion/Editing works perfectly but if I click on an Event for
Editing and later try to add an Event, the previous
I tried to validate only the method save, so I puted the annotations on
the top of the save method signature, but when I called execute method
the validation erros appered.
André Faria
Laurie Harper escreveu:
I haven't used this, but looking at the last example in the
documentation it looks
[EMAIL PROTECTED] wrote:
Further, is are there any
plans/release dates for a book on Struts 2?
To answer that part: not that I know of, but the existing WebWork in
Action from Manning is very good, and applies equally well to Struts 2
with minor adjustments for package renaming etc.
L.
--
I haven't used this, but looking at the last example in the
documentation it looks like there are two types of field-level
annotation: property accessor annotations and action method annotations.
I would guess that validations specified through property accessor
annotations would always fire, w
The autocmpleter needs to get the data in some format, that format is
JSON, the response needs to be something like:
[
["Text1", "Key1"],
["Text2", "Key2"],
]
Remember that what you return from "execute" is not the response, it is
the result, like "success" or "input", so you can't return
See also
* https://issues.apache.org/struts/browse/WW-1604
On 1/8/07, Dariusz Wojtas <[EMAIL PROTECTED]> wrote:
http://json.org/
Something of form:
[["name", "id"], ["name", "id"]]
or
[["name", "id"], ["name", "id"],]
Remember to escape special characters.
Dariusz Wojtas
On 1/8/07, André
http://json.org/
Something of form:
[["name", "id"], ["name", "id"]]
or
[["name", "id"], ["name", "id"],]
Remember to escape special characters.
Dariusz Wojtas
On 1/8/07, André Faria <[EMAIL PROTECTED]> wrote:
What is necessary to write a JSON response in struts to use with a
Autocomplete
What is necessary to write a JSON response in struts to use with a
Autocomplete tag?
example:
public class JSONListAction {
public String execute {
return JSON object!
}
}
Thank's
André Faria
--
Yes, but thats didnt works...
If you specify the annotations on the method save for example... The
validation roles will be apllyied for the others methods too.
I am running Struts 2.0.3 with xWork 2.0.0 (06/01/2007)...
Thank's
André Faria
cilquirm escreveu:
According to http://struts.apache
According to http://struts.apache.org/2.x/docs/validation-annotation.html
you can specify annotations at the method level.
André Faria-3 wrote:
>
> Hi People!!!
>
> Is there a way to use Validation Annotations only for a method or always
> for the action...
>
> Example, if I have a action
Dariusz Wojtas wrote:
>
> Want to have a bean separate from the action and just reference it?
> Define your bean (whatever you want) and just declare it as a variable
> on your action.
> Nothing more.
> Add getter and setter.
>
> class MyAction ... {
>private MyBeanClass myBean;
>
> }
>
I've created two test WARs based on the struts2-blank WAR that demonstrate the
issue. struts-blank-201.war uses Struts 2.0.1, and struts-blank-203.war uses
code from subversion as of ~9AM EST this morning.
The changes to each include the following:
o A custom ResourceBundle (TestBundle)
o Removal
You want me to give away all my secrets, don't you?!? :)
If the list of parameters is static, then you can just retrieve them from
properties of the action:
${nextURL}?emailId=${emailId}&name=${name}
If it is a dynamic list, there is a
org.apache.struts2.views.util.URLHelperclass that has utilit
From: Tom Jerry [mailto:[EMAIL PROTECTED]
>
> public ActionForward AddRequest(ActionMapping mapping,
> ActionForm form,
> HttpServletRequest request,
> HttpServletResponse response)throws Exception
> {
>
> }
>
> Laurie.. hope this i
How about passing parameters along with the redirect?
On 1/8/07, Tom Schneider <[EMAIL PROTECTED]> wrote:
Interesting question. I had the same question when I started looking at
webwork. Here's what I do when I need to redirect to a different
domain. If it's a static url, you can just hard c
I have the following problem:
The methods execute() and list() must not be validated by the save
method rule... I have differentes validation rules for each method, but
when I call the action, the interceptor tries to validate the input
before call execute method. How can I resolve this?
Is possible to use the validation annotations like
@RequiredFieldValidator only for a method of the Action class?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Interesting question. I had the same question when I started looking at
webwork. Here's what I do when I need to redirect to a different
domain. If it's a static url, you can just hard code the full url in
your struts.xml with a result type of redirect. If it's dynamic,
there's a little mor
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Thom,
Thom Burnett wrote:
> What's the standard definition of the end of a session. That is, if there's
> no session.invalidate() call, how should servlets (esp the struts servlet)
> decide that a request is part of a new session?
The server associat
I think there are many of us drooling but patiently waiting for a GA
(General availability) version of Struts 2, especially if the version of
Spring it "officially" integrated with was the current one (2.0.x).
Without it, most of the companies we work for won't allow us touch
Struts 2.
But please
> Hi to all i need help
> i want to have an action without interceptors. I want to configure it in
> my action mapping, something like this.
>
>
>
> index
>
> Also i want to know if ther is a standard way to have something
What's the standard definition of the end of a session. That is, if there's
no session.invalidate() call, how should servlets (esp the struts servlet)
decide that a request is part of a new session? Where is this discussed -
some tutorial or documentation on the web?
I have a struts application w
Your table here,,,
Regards,
Mano
-Original Message-
From: Joseph McGranaghan [mailto:[EMAIL PROTECTED]
Sent: Monday, January 08, 2007 6:12 PM
To: Struts Users Mailing List
Subject: Re: How to hide scrollbars from jsp's displayed using struts
If I understand you correctly, that is a CS
If I understand you correctly, that is a CSS question, not struts.
Set the 'overflow' property to 'hidden' or 'visible' on the
containing your inserted content.
-Joe
Mohsin I. Hakak wrote:
How to hide scrollbars from jsp's displayed using struts in case they
appear??
--
How to hide scrollbars from jsp's displayed using struts tiles in case
they
appear??
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
How to hide scrollbars from jsp's displayed using struts in case they
appear??
public ActionForward AddRequest(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)throws Exception
{
}
Laurie.. hope this is clear to you ?
On 1/8/07, Laurie Harper <[EMAIL PROTECTED]> wrot
On 1/8/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote:
Leon Rosenberg ha scritto:
> it solely depends on how much heap you give your webcontainer divided
> by the number of users you have/expect minus the memory the remaining
> application requires.
size = (HEAP - APP_MEMORY)/users. Is it really
Hi,
If I'm using a declarative global exception handler - say
Is there any way I can force a redirect rather than a forward (similar
to using redirect="true" on a global forward)?
Charles
-
To unsubscribe, e-
30 matches
Mail list logo