Hi!
how can I forward to the previous view (for a "go back" button)? I've read
about dynamic results. But how can I determine the view, the user comes
from? Or is there an easier way to implement this (without javascript)?
Titus
--
View this message in context:
http://old.nabble.com/S2-Forwar
Wes Wannemacher wrote:
>
>
> I would start here -
>
> http://struts.apache.org/2.x/docs/type-conversion.html#TypeConversion-TypeConversionErrorHandling
>
>
Thn*ks for this link. But I've read it before and I'm not should
understanding clearly how to proceed:
"...To keep conversion errors f
Wes Wannemacher wrote:
>
>
> I would start here -
>
> http://struts.apache.org/2.x/docs/type-conversion.html#TypeConversion-TypeConversionErrorHandling
>
>
Thanks for this link. But I've read it before and I'm not should
understanding clearly how to proceed:
"...To keep conversion errors f
Hi!
after a type conversion error, Struts goes on in the interceptor stack and
validates the empty action property with useless results. How can I avoid
this? (I'm using the default interceptor stack.) And how can I avoid the
NoSuchMethodException thrown every time a user enters invalid alphanume
In my Struts 2 book, I've now read all about built-in type conversion and
overriding default messages. So I got a useful message now, when the user
enters an alphanumeric value in a field with an underlying int property. But
after the conversion error, Struts goes on validating and the message for
Hi!
I'm using the Struts 2 validation for my form fields. For a required numeric
input field, I've set the "required" and the "int" validator and a custom
message for each of them. But when the user enters none numeric characters,
the custom localized required-messages and a default "Invalid fiel
the locale configured in your struts.xml like this
--
If so, you're properties files will not change based on locale.
--- In str...@yahoogroups.com, Marsman wrote:
>
>
>
> Hi!
>
> meanwhile I've found something interresting: My application is running on
post your resource bundle initialization/usage?
>
> Pascal
>
> On Thu, 23 Jul 2009 04:18:50 -0700 (PDT), Marsman wrote:
>> I've tried the browser language detection page and as I expected only the
>> language code "da-DK" was listed. I had already removed the lang
ssage
bundle, Struts allways takes it. Whatever language is prefered by the
browser.
Titus
Pascal-53 wrote:
>
> Hm, ok. Could you post your resource bundle initialization/usage?
>
> Pascal
>
> On Thu, 23 Jul 2009 04:18:50 -0700 (PDT), Marsman wrote:
>> I've tried the
...are you in the right thread??
Neil Meyer-2 wrote:
>
> Hi,
>
> I have a problem that I really can't seem to resolve.
> Neil Meyer
>
>
>
--
View this message in context:
http://www.nabble.com/s2-and-default-locale-language-tp24623075p24624299.html
Sent from the Struts - User mailing l
browser settings are correct? I bet it's on the client
> side, not a struts/config error.
>
> Try using some page to detect your language setting, like
> http://aruljohn.com/lang.php
>
> Hope this helps,
>
> Pascal
>
> On Thu, 23 Jul 2009 03:24:50 -0700 (PDT)
Hi!
I got a problem with Struts 2 and selecting the language dependent
properties file. When I got a properties file for language "de" (my home
country), it's allways taken by Struts. Even if I configure language "dk" or
"es" in my browser.
I got the following files in my web application:
packa
Felipe Fraga wrote:
>
> Use hidden fields to also store the properties, this way they are sent
> with the request and so repopulated onde the jsp returns from the
> validator.
>
Yes, I know that way. But when I have a page with some lists above of a
form? As I know, those objects couldn't be
Hi!
I got an action to provide some properties (simple types and objects) for a
jsp with a form. After the user has entered invalid data, the input result
was returned and the page was displayed again. But the properties are all
empty. I think, the reason is the action, that was not called again.
newton.dave wrote:
>
>
>> if ( values[0] == null || values[0].length() == 0
>> && values[0].equalsIgnoreCase("v.a.")
> || values[0].equalsIgnoreCase("various artists"))
>
> This condition strikes me as odd... did you really mean "&&" there?
>
No, of course not. You found an o
dusty wrote:
>
> You could create a special class for this property so you can use type
> conversion but that seems ugly.
>
> You are better off using EL or a custom tag for rendering the property.
>
I thought about creating a new type (in Hibernate) for my "artists". But
only for storing "v
Hi!
I got a List with some beans and want to convert values of the bean
properties before they are shown by the s:property tag. Like I know it from
JSF I want to use a struts type converter. But neither the action nor the
global defined converter was called by the framework. Here are some
code-sn
Paul Benedict-2 wrote:
>
> If you want both, create a logger in your handler and log the
> exception given to you.
>
Which "handler" do you mean? I've configured a global-exception-mapping and
a JSP will be directly shown to the user, if any not handled exception
occurs.
Titus
--
View this
Paul Benedict-2 wrote:
>
> If you want both, create a logger in your handler and log the
> exception given to you.
>
Which "handler" do you mean? I've configured a global-exception-mapping and
a JSP will be directly shown to the user, if any not handled exception
occurs.
Titus
--
View this
Hi!
As mentioned in my Struts 2 guide, I've coded a general error page for
unexpected errors and included it over the global-message-mapping
configuration. When an exception occurs, the error page will be displayed to
the user. But exceptions are not logged in my logfile anymore. No stack
trace e
newton.dave wrote:
>
> I don't really see it as a problem, quite frankly; it sounds like your
> package layout is either too tightly-coupled or you're trying to make your
> messages too fine-grained.
>
Yes, maybe I do so. But I had classified the action dependent properties as
a nice feature a
newton.dave wrote:
>
> --- On Mon, 12/15/08, Marsman wrote:
>> How can I solve this problem? Do I really have to code a
>> second file like AddCustomerForm.properties with the same
>> properties as in AddCustomer.property?
>
> There are several solutio
Hi!
I'm new to Struts 2 and trying out the new hierarchival message property
system. I've defined a message file on action level for a page with a form
(AddCustomer.property). Displaying the localized text for the page works
fine. But in my case, the form will be performed by another action
(AddC
23 matches
Mail list logo