It is not problem of Struts or form properties but the encoding of the
parameters.
You may check what is the encoding used to get params from request:
request.getCharacterEncoding()
and chect if it matches your needs and/or the way that characters are
coded by the browser.
If you want to have
Hi,
I have a simple action form where users can enter texts, including special
characters such as German umlauts. If a user enters "müller" in the text field,
I only get "müller" from the actionform. I assume that there is a problem with
the encoding, but I don't know how I can resolve it.
The a
Excellent hint, thanks.
I forgot I may jump between various methods this way in the struts config.
This will perfectly work in the case I described.
Any idea how to solve the problem with various messages or errors to
be displayed, when I have no control on the messages/errors being
added?
Dariu
Hi
If you are always going to display the same message then you could get the
action you redirect
to to display the message. I have done this to get "Processing Successful"
messages output after
updates
e.g.
in your action:-
return "missingid";
redirect this result to a me
I've just tried again tonight using the latest nightly struts2 jar files
(no configuration changes) and the problem has gone away.
Nick
Laurie Harper wrote:
>
> My guess would be that you're missing the Freemarker JAR(s) from your
> classpath. If that's not the case, try switching on
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Laurie Harper wrote:
>
> Getting all the pieces lined up can be a bit tricky the first time
> through :-( If the comments above don't get you there, post your form
> bean code and JSP so we have the complete picture.
>
>
OK.. I've gotten much furth
Kranti wrote:
hi,
i have a problem related to message resources
during the login time i am doing this
session.setAttribute(Globals.LOCALE_KEY, locale);
where locale is created by the user specific language settings there in DB.
in jsp:
using this and in struts config file
and inthe same di
Peter L. Berghold wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi folks,
I'm fairly new to all this and I'm having trouble getting validation to
work as I thought it should. From what I've read in several books now I
should be able to do server side validation, but in my very simple te
Thanks for your answer.
If i set validate="true" the layout is not applied. I see only the page
"createuser.jsp"
If i set validate="false" it works fine...
Why?
Ok here my config files:
If you nee more informations, just say it.
struts-config.xml
Is your form submitted with method GET or POST? For a GET request I'd
expect request.getParameter() to work fine. If the form is being posted,
then you wont be able to get at form data until the multi-part request
processing has occurred. The request processor should invoke that at
some point,
Hi all,
I am trying to insert items from a putList defined in my tiles.xml
file in a template file. The only way that I can seem to do it is by
using the following process
1. make the putList 'List' accessible on the page with
2. sending that variable in to a JSTL Core taglib forEach lo
You can certainly use automatic validation together with Tiles, so
that's not the problem. You'll need to post your relevant
struts-config.xml excerpts and tiles-defs, and possibly relevant bits of
JSP so we can see what you're doing wrong.
L.
Sebastian Marten wrote:
After several hours of s
My guess would be that you're missing the Freemarker JAR(s) from your
classpath. If that's not the case, try switching on debug logging and
see if Struts gives you any more detail about the error condition.
L.
Nick Tucker wrote:
On converting from Struts 2.0.1 to 2.0.2
I get the following err
fea jabi wrote:
Have a Customer.jsp
For this jsp, have a prepare action and dispatch action.
In prepare action doing some process and creating an obj called Customer
object.
In this Customer JSP, have a table which displays some rows.
One of the columns data i.e orderID is a link. On clickin
Wesley Wannemacher wrote:
> Hello,
>
> I have a small problem and was wondering if anyone else has come across
> it.
>
> In Tomcat 5.5 (and possibly other versions), tomcat will check for the
> existence of a file and if it doesn't exist send out a 404 before it can
> be handled by struts when it
Hmm, I'm not sure how struts.xml gets parsed, but that sounds like a
buggy SAX handler. At any rate, file it in JIRA with sample works and
doesn't-work config files and as much detail as possible of your test
environment. This is something that might be very sensitive to the exact
version of JD
Søren Poulsen wrote:
I have a form page that requires a http parameter to show correctly.
When the formbean validate(..) fails on page submit then struts has been
set up to send the user back to the same form page.
Unfortunately the http param that was set when the user was first linked
to the
Mike1948 wrote:
Dear Sirs, Apologies for the length of this post but I have read forums, book
and websites and cannot find how to do this. I'm sure it is very simpe but I
am a complete novice so any help would be much appreciated.
I am new to struts and have hit a road block concerning action ma
Wesley Wannemacher wrote:
Hello,
I have a small problem and was wondering if anyone else has come across
it.
In Tomcat 5.5 (and possibly other versions), tomcat will check for the
existence of a file and if it doesn't exist send out a 404 before it can
be handled by struts when it comes to welc
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Peter L. Berghold wrote:
>
>
> Now, I invoke the sendEmail form from a browser and I'm watching the
> Tomcat logs as this is running and according to the trace validate is
> returning a null.
>
>
I forgot to mention that the text I put into the fo
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi folks,
I'm fairly new to all this and I'm having trouble getting validation to
work as I thought it should. From what I've read in several books now I
should be able to do server side validation, but in my very simple test
case it doesn't seem to
The latest patch fixed all issues that I had before with this tag.
I tested it with various displayFormat values
-MM-dd
MM
dd-MM-
and it always worked as expected.
Thanks a lot.
Dariusz Wojtas
On 12/29/06, Musachy Barroso <[EMAIL PROTECTED]> wrote:
I attached a new patch to WW
I attached a new patch to WW-1579, the name of the textfield will now be
"dojo.${name}". This will make the "params" interceptor throw an
exception, WW-1551 is asking to ignore such parameters. In the meanwhile
you can implement ParameterNameAware on your action and ignore anything
that starts
That's even better idea :)
If you know how - I am 100% with you.
Darek
On 12/29/06, Musachy Barroso <[EMAIL PROTECTED]> wrote:
I don't think we need to submit two at all, just one on the RFC 3379
format (the one that works), the other one, which is the one on the
textbox should be prefixed with
I don't think we need to submit two at all, just one on the RFC 3379
format (the one that works), the other one, which is the one on the
textbox should be prefixed with "dojo." so S2 ignores it (that's another
issue by the way).
regards
musachy
Dariusz Wojtas wrote:
Great news!
I have applie
Thanks a lot
-Original Message-
From: Nuwan Chandrasoma [mailto:[EMAIL PROTECTED]
Sent: Friday, December 29, 2006 10:52 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: Logic :if check key is true or false in messgeresouce bundle
Hi,
just define a bean from the key you
Great news!
I have applied the patch for me, tested and it reads the property perfectly :)
It is now correctly initialized.
Good work. Thanks!
But some issue is still there - format of the data submitted with the form.
If I use it this way:
Produced URL:
/my.action?=2006-12-25&end=2006-12
Hi,
just define a bean from the key you have in the message resource , and then
compare this newly define bean with your value..eg:-
Add your content here...
Thanks,
Nuwan.
- Original Message -
From: "nagesh.kumar" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'"
Hi, I'm trying to get a Catalog from a Struts Action using ChainListener as
described in the Commons Chain Cookbook at point "call a Command from Struts".
What happens is that I get a Null Catalog executing this line of code:
Struts Action:
... ...
Catalog catalog = (Catalog)
request.getSessi
29 matches
Mail list logo