On Fri, Oct 30, 2009 at 5:15 PM, Siddiq Syed wrote:
>
> First off all Thank you so much Greg, You have been doing a great job!. And
> you express things pretty clear, Which I may not.
> Please bare with me for some more time.
>
> When I am doing a chain in the input, as show below
>
> class="co
First off all Thank you so much Greg, You have been doing a great job!. And
you express things pretty clear, Which I may not.
Please bare with me for some more time.
When I am doing a chain in the input, as show below
determineCaseEval
I'm using the default stack, which I believe has that interceptor in it. In any
case, the i18n works for all the other tags, so I'm not sure why it would be a
problem in this case.
- Original Message -
From: "Martin Gainty"
To: "Struts Users Mailing List" , la...@fundavision.com
Sen
1) Your interceptor stack is fine.
2) Dale was simply pointing out a very common newbie mistake; when you
specify an interceptor-ref in an action it will replace (not append) the
interceptor stack. Since you hadn't shown what redirectInput was it was a
possible source of error. Now you have shown
Hello,
I'm coding a Struts 1.2 action to download file available on the server. I
need to send back the file as inline so that the browser will process it
within the same window.
the relevant code is :
response.setContentType("application/java-archive");
response.setHeader("Content-disposition",
org.apache.commons.collections.map.ListOrderedMap will preserve the order.
Regards,
Balwinder Kumar
Bhaarat Sharma wrote:
however, this does not gurantee the order (because of the HashMap)...
something else can be used to preserve the order
On Thu, Oct 29, 2009 at 12:31 PM, Bhaarat Sharma wrot
The interceptor mention is nothing but
RedirectMessageInterceptor(http://glindholm.wordpress.com/category/struts-2/)
and I specified that in the strust.xml,
This interceptor is to preserve the error messages.
Greg Lindholm wrote:
The only other thing is your interceptor stack 'redirectInput' you haven't
shown what it is.
And note--specifying any interceptor(s) in the action causes the
specified interceptor(s) to be the only ones used.
-Dale
---
I don't think you understanding of Chain result type is correct. The
type="chain" is part of the result type, it wont effect other results, each
result is configured independently.
You should be able to configure a chain result for just result of 'input'
like this:
Hi all,
I have a problem with the closing freemarker templates. Maybe you can help
me out. Here is the thing I want:
In a s:div tag I use a self created template overviewDiv.ftl, which contains
some layout instructions. The problem is, that the overviewDiv-close.ftl is
ignored / not recognized by
Try using StrutsStatics class instead. It is what I use.
E.g.
HttpServletResponse response = (HttpServletResponse)
invocation.getInvocationContext().get(StrutsStatics.HTTP_RESPONSE);
HttpServletRequest request = (HttpServletRequest)
context.get(StrutsStatics.HTTP_REQUEST);
Cookie
-Original
Hello Everyone!
I am trying to upgrade from Struts 2.0.14 to Struts 2.1.8 and have hit a
small snag which I can't seem to resolve through some Google searching.
Following is part of my defined Inteceptor (the intercept method):
...
public String intercept(ActionInvocation invocation)
throws
Here is the general understanding of the result types.
redirect-action -- uses the new request object.
dispatcher --- Dispacther uses the old request object but the location must
be a view not an action.
Chain --- chain uses the old request object but it is excuted irrespective
of what returns f
Hi Greg,
Thank for your input, But i tried this at my first attempt, Its not working
with this sicenario.
The problem is that you need to define two different actions one is on
success and one is on input.
If input is defined it will exceute irrespecitve of what returns from the
action.
The code below works a treat but just to help anyone out who might be
trying to do the same thing you can also use the tag
which does a similar thing but without the fine control on the
formatting.
Quoting Greg Lindholm :
So, fieldErrors is a Map>, the key is the field name
and the value
I did some testing also.
Using 2.1.8 with with the following:
sUsername (form field name and instance field name in the ActionSupport
class)
public String getsUsername
public void setsUsername
doesn't work as the setsUsername method doesn't get called on form
submission.
Using 2.1.6 with t
Ok, I think I understand. The key point seems to be that on a validation
fail you need to execute another action.
determineCaseEvaluationTypeForInput
You might want to try a Chain result [1] and action chaining [2]. I know
there are warnings about action chaining but this may be a
Instead of
public String getsUsername() ...
public void setsUsername(String sUsername) ...
try
public String getSUsername()... [note the capital S]
public void setSUsername()...
Struts 2 will look for and then use a set method that follows the JavaBean
convention to set the value f
sam is correct
do you have i18nInterceptor enabled in your stack?
*gruss*
Martin Gainty
__
Verzicht und Vertraulichkeitanmerkung
Diese Nachricht ist vertraulich. Sollt
Not sure it works for you, but you can try this:
Sitz der Gesellschaft / Corporate Headquarters: Lufthansa Technik AG, Hamburg,
Registereintragung / Registration: Amtsgericht Hamburg HRB 56865
Vorsitzender des Aufsichtsrats / Chairman of the Supervisory Board: Stephan
Gemkow
Vorstand / Ex
I'm using eclipse code to generate the getters and setters.
private String sUsername;
public String getsUsername() {
return sUsername;
}
public void setsUsername(String sUsername) {
this.sUsername = sUsername;
}
My getter / setter is correct.
Besides, changing the getter / setter is not
2009/10/30 KamHon Eng :
> private String sUsername;
> public String getsUsername() {
> return sUsername;
> }
> public void setsUsername(String sUsername) {
Setter/getter should be set/getSUsername, try that way
Regards
--
Lukasz
http://www.lenart.org.pl/
http://dailylog.lenart.org.pl/
Hi,
I just try to upgrade my project from struts 2.1.6 to struts 2.1.8, I
found that some property is not working.
For example, property username in Login.class working while sUsername
is not working.
Lets do a simple test on struts2 blank project in struts2.1.8.zip
1. unzip struts2-blank-2.1.8.wa
23 matches
Mail list logo