t("key2", "No");
..
public Map getMyMap() {
return myMap;
}
JSP:
2009/11/4 Qunhuan Mei
> Greg and Samuel,
>
> Thank you very much indeed for your quick response. Your suggestions are
> indeed working!
>
> Just out from my curiosity, would it be pos
s should also work:
2009/11/4 Greg Lindholm
> You can't nest struts tags so you can't put a inside of
> tag but you should be able to call getText().
> I would try this:
>
> value="true" />
>
>
> On Wed, Nov 4, 2009 at 10:44 AM, Qunhuan Mei
&
Hi,
For a single pair of radio buttons, e.g. "Yes" or "No" without localisation,
the following jsp code seems to be straight forward and will always come out
with true/false returned to the server (localised Yes or No can be received
on the server after user have made choice, but this is not t
This problem was hit when utf-8 encoded string was sent to Android emulator
and Android could not correctly display the message.
Basically, when using tag to output message from
utf-8 encoded properties file, it right output hexadecimal utf-8 encoded
message (in the form of, for example, "\
to that later.
-Wes
On Thu, Jun 4, 2009 at 4:07 AM, Qunhuan Mei wrote:
> Hi Wes,
>
> Struts’ ajax file upload would be very interesting to me since I have
> implemented jQuery (http://www.phpletter.com/Our-Projects/AjaxFileUpload/)
> and Struts for ajax file upload in my application and
if there is one dispatcher per thread, so you
>> might have to call it in an interceptor.
>>
>> However, I would strongly suggest against doing that.
>>
>> I am working on an enhanced file upload plugin right now and will
>> probably commit it to the sandbox by tomor
"struts.multipart.saveDir" for file upload
Qunhuan Mei wrote:
> When implementing file upload, it is required to specify an absolute
> directory in struts.xml such as following:
>
>
>
> But this might be difficult to achieve, say when the project war is
deployed
> in a exter
Hi,
When implementing file upload, it is required to specify an absolute
directory in struts.xml such as following:
But this might be difficult to achieve, say when the project war is deployed
in a external shared server and we do not have much idea about the directory
structure of the ta
Hello David and Chris,
Thank you two very much indeed for your help.
I have tried tag with different scope and seems I can set a
parameter to any value I want, but I cant set it to the value/variable from
jsps java code block, so I suppose may not be applicable to my
requirement. (or I must
Hi,
Sorry for my ignorance but could some one tell me how to access java
variable within jsp from struts tag blocks. See the sample code below (say,
from test.jsp)
...
<%
boolean goAhead = true;
int counter = 0;
%>
...
Hi Bhaarat,
My experience for this requirement is to "return false" for the form submit
handling:
...
Hope this helps.
Qunhuan
-Original Message-
From: Bhaarat Sharma [mailto:bhaara...@gmail.com]
Sent: 24 May 2009 18:38
To: Struts Users Mailing List
Subject: how to have an emp
: Any validation flag available to the action code?
2009/5/19 Qunhuan Mei :
> When Struts validation is in place, the java action code appears to run
> fully twice by default.
What you mean by that? The method execute() is called twice?
> Is there a flag or variable as such available?
Greetings everyone!
When Struts validation is in place, the java action code appears to run
fully twice by default.
I was wondering if the action code could detect weather the current run is
for validation or the one after so that certain resource intensive (e.g.
database op) access could be avo
Hi,
Characters from one language often carry more information than another (e.g.
Chinese vs. English). To express a word/phrase/sentence string, different
locale may need different string length.
I was wondering if it is possible to have locale specific stringlength
validation using Struts
Silly me. After I added “.label {font-style:normal; }” to my css file, no
more italic present in the input form. Thank you again Dave.
-Original Message-
From: Qunhuan Mei [mailto:q...@qm18.wanadoo.co.uk]
Sent: Monday, April 27, 2009 12:59 PM
To: 'Struts Users Mailing List
tylesheet with overriding definitions
after the S2 head tag.
Dave
Qunhuan Mei wrote:
> Hi,
>
>
>
> I have a form which uses struts tag “textfield” and “text”. The default
font
> style for label generated for textfield appears to be italic while the one
>
Hi,
I have a form which uses struts tag textfield and text. The default font
style for label generated for textfield appears to be italic while the one
for text is normal.
e.g. for
The html code generated by struts are (seen by the browsers view source.):
Hi there,
My app uses Struts 2.1.6 to handle user’s file upload. It creates a user
specific directory, say userDir at rumtime before upload starts. The userDir
stores user uploaded files, say an intro.html with images.
The app uses GDownloadUrl (google’s ajax) to access the intro.html i
Hi all,
I am going to use Struts-blank-2.1.6 to demonstrate a localisation problem
when doing Ajax validation in maybe 10 minutes. I am not sure if it is a bug
(from dojo-plugin?) or just a wrong setting somewhere. Hope some expert
could shed some light here. Much appreciated.
Steps to reproduc
Hi,
I run into a problem when trying to run Struts 2.1 Ajax based form input and
validation code inside innerHTML
I managed to get the validation working on the server but the Json based
Ajax return simply does not go into the form code inside innerHTML. The
browser treat the Ajax return as hav
20 matches
Mail list logo