Changing The Result Page

2011-02-01 Thread Richard Sayre
I am making a mobile site for my current web application. I have a huge number of actions that return to JSP pages. I have a mobile detection class written. Is there a way that I can change the result page if the user is on a mobile device? I want to avoid having to write this in all my

Re: Changing The Result Page

2011-02-01 Thread Richard Sayre
listener? Dave On Tue, Feb 1, 2011 at 12:50 PM, Richard Sayre richardsa...@gmail.com wrote: I am making a mobile site for my current web application.  I have a huge number of actions that return to JSP pages.  I have a mobile detection class written. Is there a way that I can

DOJO Rendering

2010-11-03 Thread Richard Sayre
Due to the deprecation of the DOJO plugin I have been trying to recreate all of my web site GUI without using Struts 2 tags. When I create a Tabbed Pane, the web site loads, then the Tabbed Pane renders in view of the user. Before the UI renders it looks like a mess. When I used the struts 2

RE: Ajax Basics

2009-07-08 Thread Richard Gundersen
Thanks Dusty, and Martin I'm happily using JQuery now - and it looks great! Cheers Richard -Original Message- From: dusty [mailto:dustin_pea...@yahoo.com] Sent: 08 July 2009 05:06 To: user@struts.apache.org Subject: Re: Ajax Basics So I think straight JQuery is pretty easy

RE: Ajax Basics

2009-07-08 Thread Richard Gundersen
give me please? Thanks Richard -Original Message- From: Martin Gainty [mailto:mgai...@hotmail.com] Sent: 08 July 2009 15:13 To: Struts Users Mailing List Subject: RE: Ajax Basics good to hear..I have a build environment for that plugin in case you need it Cheers, Martin GMT+5 (this week

Ajax Basics

2009-07-07 Thread Richard Gundersen
Hi I'm trying to get the datetimepicker working in my app. It's Struts 2 but it's totally non-AJAX at the moment. I also don't know anything about AJAX to make matters worse. Please could someone tell me a) what extra jars (dojo/json etc) do I need to pop into WEB-INF? I don't

RE: Ajax Basics

2009-07-07 Thread Richard Gundersen
Thanks Martin, I'll give it a go! Richard -Original Message- From: Martin Uhlir [mailto:stoupa91de...@seznam.cz] Sent: Tue 07/07/2009 17:11 To: Struts Users Mailing List Subject: Re: Ajax Basics Hi, have a look at this plugin for Struts2 http://code.google.com/p/struts2-jquery/wiki

Re: Struts2 Session Invalidate.

2009-06-11 Thread Richard Xing
You can use the tag s:set ../ to set the session variable to empty string as below: s:set name=variableName value= scope=session/ -- View this message in context: http://www.nabble.com/Struts2-Session-Invalidate.-tp15627192p23988865.html Sent from the Struts - User mailing list archive at

Re: Performance issue with large data(such as images)

2009-06-10 Thread Richard Sayre
Thanks, Rich, I''m happy to help. If I use BLOB, I have to make a lot of change to my code. Therefore, I have to persist it as String. I used base64 to encode and decode the byte[] into String. Because I resize the images to small ones. I use a VARCHAR length about 10k~20k to persist the

Re: Performance issue with large data(such as images)

2009-06-10 Thread Richard Sayre
I should have also mentioned that there are security issues with persisting to the hard drive. I would recommend saving to the database and loading the images as needed. Do not save them to session. I do not think you will have a performance problem. Rich

Re: Performance issue with large data(such as images)

2009-06-09 Thread Richard Sayre
You should persist the images as bytes, in a binary field or something similar. 1. Because the image is large, it's not efficient to store it in objects(beans). Well this depends on the Bean. Is the bean stored in session? If yes then it will take up some memory. If you dont have alot of

Re: Problem with displayTag

2009-06-09 Thread Richard Sayre
You need to set hte requestURI attribute see http://displaytag.sourceforge.net/1.2/displaytag/tagreference.html#display-el:table On Mon, Jun 8, 2009 at 12:11 PM, Bhaarat Sharmabhaara...@gmail.com wrote: Hi guys, I'm starting displaytag for the first time. I have a simple Struts2 action that

Design Question Global Properties

2009-06-01 Thread Richard Sayre
I have some global properties in my application that I need to access from several of my JSP pages. In my application I have a base action which all of my actions use. I was thinking of putting a getGlobalProperties method in that action that return an instance of an Singleton that holds my

OGNL Check for Enum in a list of Strings

2009-05-29 Thread Richard Sayre
I have a String array and I am trying to see if there is a value in it. Using: s:if test='foo' in myArray works. I want to use the value of an enum in place of foo. I tried s:if test=@my.package.mye...@enum_value in myArray which didn't work. Using the String literal works: s:if

Re: Keep Action Properties over multiple requests

2009-05-26 Thread Richard Sayre
Is it possible to specify all action properties in session param tag using regex or wildcards? On Mon, May 25, 2009 at 8:39 AM, Nils-Helge Garli Hegvik nil...@gmail.com wrote: Yes, the ScopeInterceptor should be able to handle this case. Nils-H On Mon, May 25, 2009 at 1:02 PM, Richard

Keep Action Properties over multiple requests

2009-05-25 Thread Richard Sayre
I have an action that does some server side logic, based on that logic I want to present the user with a Yes/No message. If they click yes I want to save the data the user filled out before the Yes/No message. Is it possible to carry action properties over multiple requests? I found the

Re: Struts newbie - Advice on file downloading

2009-05-13 Thread Richard Sayre
Hi, I have the following defined: action name=generatePdf class=com.abc.ReportAction method=generateReport result name=success type=stream param name=contentTypeapplication/pdf/param param name=inputNamefileStream/param param

Changing the default attribute value for a tag

2009-05-13 Thread Richard Sayre
I want to have all of s:url tags use forceAddSchemeHostAndPort=true Is there a way to set this property globaly? I couldn;t find anything in struts.properties. Thanks, Rich - To unsubscribe, e-mail:

Re: Converter trying to set String on int field

2009-05-12 Thread Richard Sayre
I upgraded to the latest version of Struts 2 and then it worked. On Mon, May 11, 2009 at 3:01 PM, Richard Sayre richardsa...@gmail.com wrote: It is also happening in a Date field I have.  If no dates are entered in the text box then I get the same error.  If I provide a date then the conversion

Converter trying to set String on int field

2009-05-11 Thread Richard Sayre
I have a bunch of check boxes called userId. In my action I have int userId[] and setUserId(int[] ids) When I select a checkbox the conversion works normally. When I dont check any boxes on the form and submit, I get the following: 2009-05-11 10:54:28,606 [http-8080-6] DEBUG []: - Property:

Re: Converter trying to set String on int field

2009-05-11 Thread Richard Sayre
any suggestions on how to handle this it would be greatly appreciated Thanks Rich On Mon, May 11, 2009 at 11:10 AM, Richard Sayre richardsa...@gmail.com wrote: I have a bunch of check boxes called userId. In my action I have int userId[] and setUserId(int[] ids) When I select a checkbox

Re: Converter trying to set String on int field

2009-05-11 Thread Richard Sayre
...@aol.com wrote:  I bet it has something to do with a null not being assignable to an int. Chris -Original Message- From: Richard Sayre richardsa...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Mon, 11 May 2009 11:44 am Subject: Re: Converter trying to set

Re: How to hide a link

2009-05-01 Thread Richard Sayre
try cssStyle=display:none On Fri, May 1, 2009 at 4:23 AM, taj uddin tajuddi...@yahoo.com wrote: Hi In my application there is a need to hide a link. I have used the s:a tag to generate a link and the necessity is to hide this link. can any one pls help out in this regard

Re: Submitting a Date to an Action

2009-05-01 Thread Richard Sayre
to use a format that isn¹t the short format for the locale and I suspect that¹s what is happening with Richard. He has two choices, either configure his date time picker to produce the date in the required format, or as suggested write your own converter. My only concern with Matt¹s version

Re: Submitting a Date to an Action

2009-05-01 Thread Richard Sayre
). The interceptor uses reflection when it encounters a Date setter (with a suitable annotation) in the action to look up these fields and parse them into a Date for setting. Lets me do validation at the same time. Andy. On 1 May 2009, at 12:44, Richard Sayre wrote: I think I am going to write my

Re: determine if iphone user?

2009-05-01 Thread Richard Sayre
I think the HTTP_USER_AGENT header should be similar to: Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3 If a request comes from the IPhone browser On Fri, May 1, 2009 at 3:06 PM, Andy andrh...@hotmail.com wrote: Hi,

Re: Submitting a Date to an Action

2009-04-30 Thread Richard Sayre
formatedDate;   } } On Thu, Apr 30, 2009 at 1:19 AM, Richard Sayre richardsa...@gmail.comwrote: I have an Action with a date attribute private Date myDate; public void setMyDate(Date myDate) { this.myDate = myDate; } I have a form that has a date picker (not the struts 2 date picker

Re: Submitting a Date to an Action

2009-04-30 Thread Richard Sayre
formatedDate;  } } On Thu, Apr 30, 2009 at 1:19 AM, Richard Sayre richardsa...@gmail.comwrote: I have an Action with a date attribute private Date myDate; public void setMyDate(Date myDate) { this.myDate = myDate; } I have a form that has a date picker (not the struts 2 date picker

Submitting a Date to an Action

2009-04-29 Thread Richard Sayre
I have an Action with a date attribute private Date myDate; public void setMyDate(Date myDate) { this.myDate = myDate; } I have a form that has a date picker (not the struts 2 date picker) that populates a text field. When I submitt the form to my action the property does not get set because

Reusing GUI and Actions

2009-04-22 Thread Richard Sayre
I have a form in my web application that can be accessd from different places (Namespaces) in the web app. It looks something like this /Admin/EditSchedule.action /MySchedules/NewSchedule.action /Create/NewSchedule.action /Create/EditSchedule.action The are subtle differences in how the data is

Re: Set Unchecked Value in the Checkbox Interceptor

2009-04-15 Thread Richard Sayre
. On Wed, Apr 15, 2009 at 8:29 AM, Richard Sayre richardsa...@gmail.com wrote: The Struts 2 docs says the following about the Checkbox Interceptor: setUncheckedValue - The default value of an unchecked box can be overridden by setting the 'uncheckedValue' property. Where in code can I call

Re: Set Unchecked Value in the Checkbox Interceptor

2009-04-15 Thread Richard Sayre
the name is already there from a check box that has been submitted. I will have to find another way to achieve this since my check box list is dynamic and can be any size. I will post some code when I finish. Rich On Wed, Apr 15, 2009 at 9:05 AM, Richard Sayre richardsa...@gmail.com wrote

Set Unchecked Value in the Checkbox Interceptor

2009-04-15 Thread Richard Sayre
The Struts 2 docs says the following about the Checkbox Interceptor: setUncheckedValue - The default value of an unchecked box can be overridden by setting the 'uncheckedValue' property. Where in code can I call the setUncheckedValue(String uncheckedValue) from? The problem I am facing is the

Struts 2.1.6 - No Action Extension, Cannot Access Dojo JS Files

2009-03-06 Thread Richard Rauser
. Can anyone suggest a way around this? Thanks, Rich P.S. a more detailed explanation is provided below. -Original Message- From: Richard Rauser [mailto:richard.rau...@procinity.com] Sent: 05 March 2009 12:20 To: user@struts.apache.org Subject: Struts 2.1.6 - No Action Extension, Cannot

Struts 2.1.6 - No Action Extension, Cannot Access Dojo Javascript Files

2009-03-05 Thread Richard Rauser
Hi all, I recently began migrating a working Struts 2.0.11 app to Struts 2.1.6. This has been a bit of a painful process, particularly moving from the SmartURLs plugin to the Convention plugin and from ajax tags to the Dojo plugin. Here is my problem: I am not using an action extension within

String manipulation

2009-02-27 Thread Richard Gundersen
Hi I'm trying to validate that a filename has a .csv extension. I would like to use @FieldExpressionValidator on the field but I can't get the syntax right, and searching the docs I can't find much on String manipulation in OGNL. Could anyone help me out please? Thanks

RE: String manipulation

2009-02-27 Thread Richard Gundersen
Oh, got it @FieldExpressionValidator(expression=(accountFileFileName.endsWith('.cs v'), message=, key=validate.invalidFilename, fieldName=accountFileFileName) Forgot you could just call methods in OGNL :) -Richard -Original Message- From: Richard Gundersen [mailto:r.gunder

RE: String manipulation

2009-02-27 Thread Richard Gundersen
Hmmm, no that also prevents genuine csv files from being selected too. Also investigating the accept attribute on the s:file tag to see if that will help... Any help appreciated. -Original Message- From: Richard Gundersen [mailto:r.gunder...@salford.ac.uk] Sent: 27 February 2009 10:27

RE: String manipulation

2009-02-27 Thread Richard Gundersen
; } Remove |(xls) if you dont want to allow xls files --- On Fri, 2/27/09, Richard Gundersen r.gunder...@salford.ac.uk wrote: From: Richard Gundersen r.gunder...@salford.ac.uk Subject: RE: String manipulation To: Struts Users Mailing List user@struts.apache.org Date: Friday, February 27, 2009

Re: Why does s:file break an ajax form?

2009-02-19 Thread Richard Sayre
I have encountered the same problem. While I have not fixed it with Ajax yet, the reason it does not work is because you can not submit a file through Ajax. You need to use an iFrame to submit file uploads. On Tue, Feb 17, 2009 at 7:14 PM, Jon Wilmoth jonwilm...@yahoo.com wrote: I'm curious to

RE: What's the correct expression syntax?

2009-02-06 Thread Richard Gundersen
I think it's because you're comparing a single character string, which OGNL treats as a bit of a special case for some reason. I dont have my code with me now but I'm pretty sure I had the same problem. Google 'comparing single character string in ognl' for some pointers (sorry, I cant verify

Collections and type conversion

2009-02-05 Thread Richard Gundersen
output). And, it doesn't set the collection in my model either, although I believe it should according to the docs. I've tried lots of variations on the OGNL syntax for the textfield's name attribute but can't hit the right one; would really appreciate some help. Thanks   Richard

RE: Collections and type conversion

2009-02-05 Thread Richard Gundersen
. Anyone know where the null elements are coming from (it looks like this): [0] null [1] Field[blah] [2] null [3] Field[blahblah] Nearly there - Thanks! -Original Message- From: Richard Gundersen [mailto:r.gunder...@salford.ac.uk] Sent: 05 February 2009 12:00 To: user@struts.apache.org Subject

Setting a List in a ModelDriven action

2009-02-04 Thread Richard Gundersen
was wondering if there were some cool Tags that I could make use of? Regards Richard Gundersen Information Learning Services Ashworth Building ext 56681 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands

AJAX Valiadation in 2.0.x

2009-01-22 Thread Richard Sayre
I am following this article to get Ajax validation working. http://www.javaworld.com/javaworld/jw-10-2008/jw-10-struts2validation.html?page=1 I was wondering if it is nessessary to use the XML for validation with Ajax? I was hoping to use some validation on the server side action to do this.

Re: AJAX Valiadation in 2.0.x

2009-01-22 Thread Richard Sayre
to reinvent anything if Struts can provide it out of the box. By creating the mechanism for populating the s:fieldError/ did I rewrite somethign that Struts can do for me? On Thu, Jan 22, 2009 at 10:40 AM, Dave Newton newton.d...@yahoo.com wrote: Martin Gainty wrote: Richard- this is the AJAX

Re: AJAX Valiadation in 2.0.x

2009-01-22 Thread Richard Sayre
On Thu, Jan 22, 2009 at 11:12 AM, Dave Newton newton.d...@yahoo.com wrote: Richard Sayre wrote: First I wrote a method called validate. At this point I found out that I was overriding the ActionSupport method. When I tried to find more information on this method I couldn't. When I search

Struts 2, Apache 6, Container Managed Security, SSO Login Page Redirect

2008-11-19 Thread Richard Rauser
Hi all, I have a problem I hope you can help with. I have configured Tomcat 6 for SSO using form-based authentication for two webapps and this works fine for these webapps when using jsp's for login pages. Things go awry when I try to configure things further. From the first of my webapps, I

RE: Unit Testing Advice

2008-11-07 Thread Gundersen, Richard
in the direction of the Xwork source used to build Struts 2.0.12 please? Thanks. Richard Gundersen Java Developer Email: [EMAIL PROTECTED] Phone: 01618302398 Fax: 01618342536 London Scottish Bank plc 24 Mount Street Manchester M2 3LS -Original Message- From: Gundersen, Richard [mailto:[EMAIL

RE: Unit Testing Advice

2008-11-07 Thread Gundersen, Richard
D'oh, don't know how I missed that lol - thanks a million Richard Gundersen Java Developer Email: [EMAIL PROTECTED] Phone: 01618302398 Fax: 01618342536 London Scottish Bank plc 24 Mount Street Manchester M2 3LS -Original Message- From: Nils-Helge Garli Hegvik [mailto:[EMAIL PROTECTED

Unit Testing Advice

2008-11-06 Thread Gundersen, Richard
Hi Just after a bit of advice for the best way to unit test my Struts 2 app. I'm using a fairly standard Spring/Struts2/JPA/Junit architecture, and my tests need access to all my spring beans (which I'm doing using @Resource tags) The only sticking point is setting up all of the fake 'request'

RE: Unit Testing Advice

2008-11-06 Thread Gundersen, Richard
This is what I have so far. It works but I would appreciate a little peer review (particularly regarding how I set up my session and the logged in user) Thanks! @Resource private CardPaymentAction cardPaymentAction; ActionContext

RE: Unit Testing Advice

2008-11-06 Thread Gundersen, Richard
Thanks Nils-H I see what you mean. My action actually is implementing ServletRequestAware, so I just tried what you suggested and I can see how that's a bit neater actually. I'll adopt your approach. Thanks for the tip Richard Gundersen Java Developer Email: [EMAIL PROTECTED] Phone

RE: Unit Testing Advice

2008-11-06 Thread Gundersen, Richard
Hi I just have one smallish question: for some reason my messages.properties isn't being loaded. It's configured in struts.xml constant name=struts.custom.i18n.resources value=messages / ...and I know that file is generally working because all the other Struts stuff is working. I'm getting this

RE: Programming help for a print function

2008-11-06 Thread Gundersen, Richard
(); Basically, a popup is opened, the content is pulled from a div in the parent window with an ID called 'receipt' and that's what gets printed, then the popup is closed. Richard Gundersen Java Developer Email: [EMAIL PROTECTED] Phone: 01618302398 Fax: 01618342536 London Scottish Bank plc 24 Mount

Custom Exception Interceptor

2008-10-29 Thread Gundersen, Richard
(); attibutes.remove(BaseAction.CURRENT_TRANSACTION); return result; } } *** Any ideas please? Richard Gundersen Java Developer Email: [EMAIL PROTECTED] Phone: 01618302398 Fax: 01618342536 London Scottish Bank plc 24 Mount Street Manchester M2 3LS

RE: Custom Exception Interceptor

2008-10-29 Thread Gundersen, Richard
/interceptor-stack /interceptors default-interceptor-ref name=paramsPrepareParamsStack / Richard Gundersen Java Developer Email: [EMAIL PROTECTED] Phone: 01618302398 Fax: 01618342536 London Scottish Bank plc 24 Mount Street Manchester M2 3LS -Original Message- From

RE: Which is Best book for Struts 1.2.9??

2008-10-29 Thread Gundersen, Richard
which are good but jump around all over the place!) Don't know about books for 1.2.9 sorry Richard Gundersen Java Developer Email: [EMAIL PROTECTED] Phone: 01618302398 Fax: 01618342536 London Scottish Bank plc 24 Mount Street Manchester M2 3LS -Original Message- From: Casinova [mailto

s:url losing jsessionid in a cluster

2008-10-28 Thread Gundersen, Richard
jsessionid is being omitted, the user loses his session when he comes back... Any help might just save my life! Thanks :) Richard Gundersen Java Developer Email: [EMAIL PROTECTED] Phone: 01618302398 Fax: 01618342536 London Scottish Bank plc 24 Mount Street Manchester M2 3LS As a responsible corporate

RE: s:url losing jsessionid in a cluster

2008-10-28 Thread Gundersen, Richard
, there was nothing wrong with the cluster which is a relief! Anyone else with the same problem: use the action attribute if you want jsessionid to be appended to urls... Richard Gundersen Java Developer Email: [EMAIL PROTECTED] Phone: 01618302398 Fax: 01618342536 London Scottish Bank plc 24 Mount

Detect errors in OGNL

2008-10-15 Thread Gundersen, Richard
Hi Is there an easy way to say 'if validation errors exist', in OGNL? Tried a few things but not hit on the right syntax yet e.g. if %{errorFieldNames.size() 0} etc etc Thanks Richard Gundersen As a responsible corporate citizen, London Scottish Bank plc asks you to consider

RE: Detect errors in OGNL

2008-10-15 Thread Gundersen, Richard
Doh, got it %{errors.size} Silly me :) Richard Gundersen Java Developer Email: [EMAIL PROTECTED] Phone: 01618302398 Fax: 01618342536 London Scottish Bank plc 24 Mount Street Manchester M2 3LS -Original Message- From: Gundersen, Richard [mailto:[EMAIL PROTECTED] Sent

RegexFieldValidator

2008-10-07 Thread Gundersen, Richard
have googled etc, but I am also lame at regex...!) Richard Gundersen Java Developer Email: [EMAIL PROTECTED] Phone: 01618302398 Fax: 01618342536 London Scottish Bank plc 24 Mount Street Manchester M2 3LS -Original Message- From: Mead Lai [mailto:[EMAIL PROTECTED] Sent: Tuesday, October

RE: RegexFieldValidator

2008-10-07 Thread Gundersen, Richard
Sorry, ignore me. I needed to escape the slash as well, so my regex is [0-9]{1,5}\\.[0-9]{2} Works now :) Richard Gundersen Java Developer Email: [EMAIL PROTECTED] Phone: 01618302398 Fax: 01618342536 London Scottish Bank plc 24 Mount Street Manchester M2 3LS -Original Message- From

VisitorFieldValidator - different validation scenarios

2008-09-19 Thread Gundersen, Richard
Hi I'm using the VisitorFieldValidator (annotations) to push validation over to my model object in my Action. However, I want the validation rules in my model object to work differently depending on which Action method is being called. What's the best way of doing this please? Richard

Validation based on other fields

2008-09-04 Thread Gundersen, Richard
Hi In Struts 2, I need to perform some validation based on other fields e.g. if cardType = 'Switch', issueNumber is mandatory I was looking for something like the validWhen tag from Struts 1. I'd like to do it with the client side javascript if possible (to prevent having to reload the

RE: Validation based on other fields

2008-09-04 Thread Gundersen, Richard
Cheers Dave, I'll check it out in the morning Appreciate you help -Richard -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Thu 04/09/2008 17:14 To: Struts Users Mailing List Subject: Re: Validation based on other fields --- On Thu, 9/4/08, Gundersen, Richard

Base64 Newlines

2008-09-02 Thread Gundersen, Richard
Hi I'm stuggling a bit with a parameter I need to pass through to a JSP in a frame. It's a base64-encoded string, so I thought I'd be able to just pass it through as a request parameter, but I found out it contains newline chars every 64 characters (which I read is correct), so any JavaScript I

OGNL and Java Methods String Arguments

2008-08-28 Thread Richard Sayre
I'm trying to call the String replace method from OGNL. I can't find any specific examples on how to do this. I tried the following as a test: [EMAIL PROTECTED]@toString() This worked ok. My problem is I don't know how to pass string literals to the method. Here is my current code:

Invalidating session

2008-08-27 Thread Gundersen, Richard
this myself so would appreciate advice. Cheers Richard As a responsible corporate citizen, London Scottish Bank plc asks you to consider the environment before printing this email. *** Disclaimer *** This electronic communication is confidential and for the exclusive use of the addressee. It may

RE: Credit card validator

2008-08-27 Thread Gundersen, Richard
Thanks David I'll give it a try - thanks for the tip Richard Gundersen Java Developer Email: [EMAIL PROTECTED] Phone: 01618302398 Fax: 01618342536 London Scottish Bank plc 24 Mount Street Manchester M2 3LS -Original Message- From: David N. Arnold [mailto:[EMAIL PROTECTED] Sent

Credit card validator

2008-08-21 Thread Gundersen, Richard
for server side validation (checked the XWork API..) Could anyone help me out please? Richard Gundersen Java Developer Email: [EMAIL PROTECTED] Phone: 01618302398 Fax: 01618342536 London Scottish Bank plc 24 Mount Street Manchester M2 3LS As a responsible corporate citizen, London Scottish Bank plc

RE: Credit card validator

2008-08-21 Thread Gundersen, Richard
Cheers Dave I'll dig around and see if theres a good open source alternative (or failing that, write one myself). I'll post back if I find anything good Richard Gundersen Java Developer Email: [EMAIL PROTECTED] Phone: 01618302398 Fax: 01618342536 London Scottish Bank plc 24 Mount Street

Re: not displaying Action errors

2008-08-11 Thread Richard Yee
. Regards, - On Sun, Aug 10, 2008 at 9:55 PM, Richard Yee [EMAIL PROTECTED] wrote: You are using == to test string equality instead of equals() -R Sent from my iPhone On Aug 8, 2008, at 11:52 PM, Narasimha Raju Naidu [EMAIL PROTECTED] wrote: hi to all, im sending my

Re: not displaying Action errors

2008-08-10 Thread Richard Yee
You are using == to test string equality instead of equals() -R Sent from my iPhone On Aug 8, 2008, at 11:52 PM, Narasimha Raju Naidu [EMAIL PROTECTED] wrote: hi to all, im sending my code please check where i am doing mistake form.jsp --- %@ taglib

RE: 2 Validation questions

2008-08-06 Thread Gundersen, Richard
when I get chance Thanks again Richard Gundersen Java Developer Email: [EMAIL PROTECTED] Phone: 01618302398 Fax: 01618342536 London Scottish Bank plc 24 Mount Street Manchester M2 3LS -Original Message- From: Jeromy Evans [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2008 8:28 AM

2 Validation Questions

2008-08-05 Thread Gundersen, Richard
' messages on the screen now. I know this is done by the javascript so I want to know the recommended way of overriding this behaviour. Thanks -Richard As a responsible corporate citizen, London Scottish Bank plc asks you to consider the environment before printing this email. *** Disclaimer

RE: 2 Validation Questions

2008-08-05 Thread Gundersen, Richard
Nice one - thanks for the tips Gabriel, much appreciated. Richard Gundersen Java Developer Email: [EMAIL PROTECTED] Phone: 01618302398 Fax: 01618342536 London Scottish Bank plc 24 Mount Street Manchester M2 3LS -Original Message- From: Gabriel Belingueres [mailto:[EMAIL PROTECTED

2 Validation questions

2008-08-04 Thread Gundersen, Richard
(and in line with) the text box. 2) If I enter an invalid value twice, the original message is still there, so I have two 'username is invalid' messages on the screen now. I know this is done by the javascript so I want to know the recommended way of overriding this behaviour. Thanks -Richard

RE: Re: Wierd Validation

2008-07-31 Thread Gundersen, Richard
not supposed to use the visitorFields annotation with the others. Was giving me some really strange behaviour. Will hunt for some better examples... Richard Gundersen Java Developer Email: [EMAIL PROTECTED] Phone: 01618302398 Fax: 01618342536 London Scottish Bank plc 24 Mount Street Manchester M2 3LS

Wierd Validation

2008-07-30 Thread Gundersen, Richard
, it just returns to the 'input' page... Any ideas? Regards Richard Gundersen As a responsible corporate citizen, London Scottish Bank plc asks you to consider the environment before printing this email. *** Disclaimer *** This electronic communication is confidential and for the exclusive use

Re: Data Leakage in Struts 2

2008-07-26 Thread Richard Yee
Why don't you post your code. It seems that it might have a threading issue. -R Arun M wrote: We are using struts 2.0.11 We have lots of action class. Say one of them is CustomerRegisterAction (which extends ActionSupport ) . When a say user X registers himself on the website; this

Re: Character Encoding and s:textarea

2008-07-04 Thread Richard Sayre
PROTECTED] wrote: Richard Sayre wrote: I have a form containing text areas. When I copy a bunch of character data such as: 2öÂnJ1ÈÏúÄp8éÎdìåmðh4uæEÍÉieÔWán2ÅìbØÉÅÀ1JÎZÏôsC5LòÚAPúÜaÃÙPC5üÆCJWCOzùÙtÒQqùét into the text are, it displays normally. When I save the data, the database stores

Character Encoding and s:textarea

2008-07-03 Thread Richard Sayre
I have a form containing text areas. When I copy a bunch of character data such as: 2öÂnJ1ÈÏúÄp8éÎdìåmðh4uæEÍÉieÔWán2ÅìbØÉÅÀ1JÎZÏôsC5LòÚAPúÜaÃÙPC5üÆCJWCOzùÙtÒQqùét into the text are, it displays normally. When I save the data, the database stores the characters properly, when the data returns

Re: Struts 2 Performance

2008-06-09 Thread Richard Sayre
self. I'm not sure what to search for to find information on this. Can you point me to any articles or documentation? Thank you, Rich On Fri, May 30, 2008 at 5:05 PM, Laurie Harper [EMAIL PROTECTED] wrote: Richard Sayre wrote: Hi, I have a few questions regarding performance in Struts 2

Re: Struts 2 Performance

2008-06-09 Thread Richard Sayre
with your own. Dave --- On Mon, 6/9/08, Richard Sayre [EMAIL PROTECTED] wrote: From: Richard Sayre [EMAIL PROTECTED] Subject: Re: Struts 2 Performance To: Struts Users Mailing List user@struts.apache.org Date: Monday, June 9, 2008, 10:53 AM Thank you for the dojo info. I did a custom build

Multiple Results or How should I handle this?

2008-05-01 Thread Richard Sayre
I have an Action that could display several pages based on some info passed to it. Basically, its a preview action that will show the proper preview page based on some input. The way I am think of doing it is to use custom results to redirect to the proper preview page: if (preview1) {

Re: File Upload Size

2008-03-20 Thread Richard Sayre
No it doesn't On Wed, Mar 19, 2008 at 2:14 PM, Lukasz Lenart [EMAIL PROTECTED] wrote: Does your action implements ValidationAware interface? Regards -- Lukasz http://www.linkedin.com/in/lukaszlenart - To

File Upload Size

2008-03-19 Thread Richard Sayre
I set the file upload max size in the struts.properties to 15MB. When I upload a file over 15MB my action returns input. Is there any way I can check to see if the file is over the max size set in the properties file and handle what result I want to happen myself? I seems that it returns input

Re: File Upload Size

2008-03-19 Thread Richard Sayre
. I checked the source and I could not find where this is being implemented. I have s:fielderror/ on my page which i return input to, but as I said earlier my upload action is hanging. On Wed, Mar 19, 2008 at 1:12 PM, Richard Sayre [EMAIL PROTECTED] wrote: I set the file upload max size

Setting disable attribute dynamically

2008-03-13 Thread Richard Sayre
If the disable attribute is present in a HTML tag it will be disable, no matter what the value of the attribute is. So if I have a s:select and I say disabled=false it will be disabled (renders disabled=disabled). But if we have a text, and we set readonly=false it will not be editable. On my

Re: Setting disable attribute dynamically

2008-03-13 Thread Richard Sayre
I made a slight error readonly=%{fullAccess} with s:textfield does not work but input type=text name=description id=description s:if test=!fullAccessreadonly=true/s:if / works. On Thu, Mar 13, 2008 at 10:48 AM, Richard Sayre [EMAIL PROTECTED] wrote: If the disable attribute is present

Re: s:property in s:* not interpreted

2008-03-13 Thread Richard Sayre
try: s:a theme=ajax href=%{copyImageGallery} targets=dataImageDiv%{id}/Copy/s:a if id is on the stack, you can get it with OGNL On Thu, Mar 13, 2008 at 10:49 AM, matthieu martin [EMAIL PROTECTED] wrote: Hi all ! I have a little issue and I find no clues on the web, so i'm turning myself

Re: Setting disable attribute dynamically

2008-03-13 Thread Richard Sayre
yesOrNo) { this.yesOrNo = yesOrNo; } } (2) The JSP: Is Struts2 good?: s:textfield name=choice readonly=%{yesOrNo} value=Yes, it is../s:textfield regards, Rushikesh On Thu, Mar 13, 2008 at 3:24 PM, Richard Sayre [EMAIL PROTECTED] wrote: I made a slight error readonly

Re: How to add page links dynamically

2008-02-29 Thread Richard Sayre
I think what you are looking for is caled bread crumbs. There is a plug in to help with this http://cwiki.apache.org/S2PLUGINS/breadcrumbs-plugin.html On Fri, Feb 29, 2008 at 5:04 AM, Sanjeewa Saman [EMAIL PROTECTED] wrote: Hi all, I want to add my page links in the top of the each

Re: s:select and pre-selection

2008-02-29 Thread Richard Sayre
I have a select that populates with a int,string id/value combo. To get the s:select to select the proper option I had to crate another value in my action (int myId). This would be set to the id of the option to select. Then I had to set the name attribute of my select to myId (name=myId). On

Re: Invoking action method from javascript

2008-02-29 Thread Richard Sayre
you can say, document.location.href = 's:url action=myRemoveAction?myId=' + myId; This will cause the whole page to refresh, so you should probably have a prepare method if you have any data that needs to be populated on that page (ie your table). I personally would use Ajax to make the call,

Re: Struts 2 and SOA

2008-02-27 Thread Richard Sayre
Thank you everyone for your input. I will research a little further to see how I am going to do this. On Tue, Feb 26, 2008 at 5:17 PM, Randy Burgess [EMAIL PROTECTED] wrote: From: Richard Sayre [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org Date: Tue, 26 Feb

Struts 2 and SOA

2008-02-26 Thread Richard Sayre
If I have a struts application, is it posssible to expose some of the functionality as a Web Service? After reading some SOA documents on the Sun website, it is possible to expose servlets as web services. Is this possible with Strus and J2EE? Is there a document that I can read on it? Are there

Re: Struts 2 and SOA

2008-02-26 Thread Richard Sayre
Could you elaborate a bit. Would the POJO contain the Business logic for calling My DAO and other classes? Would the POJO replace the action functionality? Then my action would use a POJO to do all of the work? So any logic in MyAction.save() would go into POJO.save() which would then be

  1   2   3   4   5   >