. Got some other problems, but don't
> know if it's related. Have you looked into redirecting and using the
> MessageStoreInterceptor [1]?
>
> Nils-H
>
> [1] - http://struts.apache.org/2.0.14/docs/message-store-interceptor.html
>
> On Fri, Dec 19, 2008 at 9:04 PM,
rrect that this is a common pattern. When I have
> implemented a QuickSearch in the global nav, I use option #1 and display
> any errors or results on a results page. I think what makes your pattern
> unique is that you want to display the error in the original page.
>
> p.s
ed entirely - instead the request is forwarded to the "input" result
defined in the struts mapping of that action class.
See also
http://www.nabble.com/Struts-2%3A-Action-chaining-behaving-differently-when-validations-fire-td17065631.html#a17070480.
Has anybody a solution for that behavi
Thank you for your good explanation. Nevertheless I'll prefer to do it the
Java way 'cos the validation is more complicated than just do some tests for
required string properties.
Dirk Forchel
Greg Lindholm wrote:
>
> I see what you are asking for, but sorry I'm sure it
I could not resolve my problem yet. How can I use the "dispatch" result type
to forward to actions (or maybe tiles definitions) rather than to JSPs?
In my application are some situations where I have to forward the error
messages or the field validation errors to to a different action. I can not
u
uot;required", key =
> ERROR_PASSWORD_REQUIRED)
> public void setPassword(String password)
> {
> _password = password;
> }
>
> If the expression is false then the validation fails, so with reversed
> logic this says: if doing a create then password is
ust think it's easier to
> maintain and much more clear.
>
> I'll sometimes use a combination of both Java-based and either XML or
> annotations if it makes sense to.
>
> On a side note, IIRC the "trim" attribute/parameter only applies the
> trim dur
I have two radio buttons for a form property named "privatePerson" with two
possible values ('true' and 'false') which toogles the view of my input form
with three different input fields (number1, number2, name).
If the user choose "private" the number1, number2 and name input fields are
shown, if
.0.14/docs/message-store-interceptor.html
>
> On Fri, Dec 19, 2008 at 9:04 PM, Dirk Forchel
> wrote:
>>
>> This result type invokes an entire other action, complete with it's own
>> interceptor stack and result. As you can read here
>> (http://struts.apache.or
e:
>
> In that case, I'm out of ideas. If referrer always is an action, have
> you tried using the chain result type instead? Probably needs a bit
> more parsing of the action and namespace (or look it up from the
> action invocation) though.
>
> Nils-H
>
> On Fri,
-Helge Garli wrote:
>
> I think the error is in your web.xml. Try adding
>
> REQUEST
> FORWARD
>
> in the filter mapping configuration for the struts 2 filter.
>
> Nils-H
>
> On Fri, Dec 19, 2008 at 10:38 AM, Dirk Forchel
> wrote:
>>
>> Here i
Here is my riddle: Why does a dispatch forward to an absolute URL-path e.g.
"http://localhost:9001/welcome.action"; not work. Using a relative URL like
"/welcome.action" doesn't work either. Only something dispatch forwards like
"/jsp/pages/welcome.jsp" or similiar (a relative URL with a JSP resou
okay, I could strip off the context path from my "referer", but using a
relative URL like "/welcome.action" or "/demostore/welcome.action" doesn't
work either. Only something like "/jsp/pages/welcome.jsp" or similiar (a
relative URL with a JSP resource) works for me. But I wanna use Tiles, so
this
on.dave wrote:
>
> You may be able to use the existing dynamic result configuration to
> implement this; see these two links:
>
> http://cwiki.apache.org/WW/result-configuration.html
> http://cwiki.apache.org/WW/parameters-in-configuration-results.html
>
> Dave
>
> --
//cwiki.apache.org/WW/parameters-in-configuration-results.html
>
> Dave
>
> --- On Sun, 12/14/08, Dirk Forchel wrote:
> 7:59 AM
>> Has somebody any idea regarding the problem mentioned below.
>> Every hint is appreciated.
>>
>>
>> Dirk Forchel wrote:
&
Has somebody any idea regarding the problem mentioned below. Every hint is
appreciated.
Dirk Forchel wrote:
>
> I need your help. I wanna use the DispatcherResult (dispatcher) not as a
> forward to a JSP (jsp/pages/test.jsp), but rather to forwarding to another
> action
First of all I recommend reading a tutorial about Struts2 and OGNL.
but to answer your questions, you have to add a form property to your POJO
action class (don't miss the getter and setter methods) first:
public class ShowAction extends ActionSupport {
public boolean all = false;
public void s
I reckon a misspelling ... rename the third 'arg' parameter to arg2 rather
than arg1. that should work.
m.harig wrote:
>
> hi all
>
> am newbee to struts . am doing a login application on struts . am
> using Validator framework for page validation
> my configuration is
>
I need your help. I wanna use the DispatcherResult (dispatcher) not as a
forward to a JSP (jsp/pages/test.jsp), but rather to forwarding to another
action request e.g. /test.action?code=1. Apparently there is no need for
doing that until you define something like the following in your struts.xml
Sébastien Domergue wrote:
>
> we had nearly the same problem in a project and we had to build our own
> stack (which contained both action and jsp names) and when we wanted to
> go back we used the stack.
In the meantime I wrote my own history stack with the request URIs pushed to
the stack.
I have a problem forwarding to the same page after a request is submitted by
a form. This could be straightforward until this form is only on the same
page. In this case I would use a "dispatcher" to forward to the appropriate
JSP. But how can I forward to the "same page" if I use the same form on
Redirect after post is a common pattern to hand control overt to another
resource. The most common reason for using a redirect is the need to change
the URL shown in the browser and to prevent the user to re-submit the
previous request by clicking the reload-button.
example config in struts.xml:
Aditya Lukman wrote:
>
> Hi all,,
> i want to redirect from http://localhost:8080/cimeng/adhit *to*
> http://localhost:8080/cimeng/profile.action?nickname=aray
>
> so,, how to solve my problem
>
> please, give me a descriptions for my problem
> thank's for your help
>
Seems to be quite simpl
Hallo Tomi,
this is obviously a getter and not a setter method.
try
public void setIndice(int indice) {
this.indice = indice
}
Dirk
Tomi21 wrote:
This is my complete URL:
http://localhost:/ConfiguracionDTX2Web/EliminarSuscripcion.action?indice=4
And this this is my setter:
public int
lathjer wrote:
>
> So as I am trying to figure this out, and it has brought up some
> questions.
>
>
> lathjer wrote:
>>
>>
>> > method="list">
>> user.list
>>
>>
>
> That mapping causes the error. When the UserAction.list() method is called
> it is looking for
25 matches
Mail list logo