RE: Radio button issue with list, map, collection, localisation and action class.

2009-11-04 Thread Qunhuan Mei
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

RE: Radio button issue with list, map, collection, localisation and action class.

2009-11-04 Thread Qunhuan Mei
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 &

Radio button issue with list, map, collection, localisation and action class.

2009-11-04 Thread 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

UTF-8 encoding problem for property tag and alike (e.g. iterator)

2009-10-23 Thread Qunhuan Mei
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, "\

RE: Ajax file upload + RE: About the "struts.multipart.saveDir" for file upload

2009-06-04 Thread Qunhuan Mei
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

Ajax file upload + RE: About the "struts.multipart.saveDir" for file upload

2009-06-04 Thread Qunhuan Mei
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

RE: About the "struts.multipart.saveDir" for file upload

2009-06-04 Thread Qunhuan Mei
"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

About the "struts.multipart.saveDir" for file upload

2009-06-03 Thread Qunhuan Mei
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

RE: Struts2 Interceptor

2009-05-27 Thread Qunhuan Mei
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 can’t set it to the value/variable from jsp’s java code block, so I suppose may not be applicable to my requirement. (or I must

Jsp's java variable access from Strtus tag block

2009-05-26 Thread Qunhuan Mei
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; %> ...

RE: how to have an empty result type

2009-05-24 Thread Qunhuan Mei
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

RE: Any validation flag available to the action code?

2009-05-20 Thread Qunhuan Mei
: 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?

Any validation flag available to the action code?

2009-05-19 Thread Qunhuan Mei
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

Locale specific stringlength validation, how?

2009-05-10 Thread Qunhuan Mei
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

RE: How to turn the struts textfield label from default italic to normal (struts 2.1.6)

2009-04-28 Thread Qunhuan Mei
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

RE: How to turn the struts textfield label from default italic to normal (struts 2.1.6)

2009-04-27 Thread Qunhuan Mei
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 >

How to turn the struts textfield label from default italic to normal (struts 2.1.6)

2009-04-27 Thread Qunhuan Mei
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 browser’s view source.):

Redirect problem using Ajax and Struts - missing directory for image access

2009-04-24 Thread Qunhuan Mei
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

Struts 2.1 utf-8 validation messages (in Arabic, Chinese etc) displayed in "?" when using Ajax validation, a bug or wrong setting?

2009-03-03 Thread Qunhuan Mei
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

Struts 2.1 Ajax based input validation inside innerHTML problem

2009-02-23 Thread Qunhuan Mei
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