Re: @FieldExpressionValidator calling action's method

2008-08-02 Thread Pierre Thibaudeau
Sorry to hear it didn't work. I am having my own share of problems with that ExpressionValidator, and I found one useful suggestion in the following doc: http://www.opensymphony.com/xwork/wikidocs/ExpressionValidator%20Tips.html Look for the section entitled "Use the validation message for debuggi

Delete Confirmation in Struts2

2008-08-02 Thread hisameer
Hi I am having a problem in getting the confirmation of a delete operation. My requirement is that: I have a list of user and I have a DELETE link for each and evey user in the list. I already defined a delete action mapping for the user but before deleting the user I want to get confirmation f

Issue with Url mapping with struts-action-extension=""

2008-08-02 Thread Haulyn R. Jason
Hi,all I set struts-action-extension="" for no extension as "action" or "do" by default for struts2, and mapping all url to struts2 dispatcher as "/*". But, the problem is I can not access any jsp, html,css and js files. The page display:there are no action mapping for XXX.jsp action. Should any on

Re: @FieldExpressionValidator calling action's method

2008-08-02 Thread Hrvoje Ban
On Sat, Aug 2, 2008 at 9:17 PM, Pierre Thibaudeau <[EMAIL PROTECTED]> wrote: > Since it's "expression" is an OGNL expression, have you tried instead: > > @FieldExpressionValidator(expression = "usernameAvailable", message = "...") > > which would attempt to find, in turn, getUsernameAvailable() and

Re: @FieldExpressionValidator calling action's method

2008-08-02 Thread Pierre Thibaudeau
Since it's "expression" is an OGNL expression, have you tried instead: @FieldExpressionValidator(expression = "usernameAvailable", message = "...") which would attempt to find, in turn, getUsernameAvailable() and then isUsernameAvailable()... I would be curious to know if that works. My two cen

@FieldExpressionValidator calling action's method

2008-08-02 Thread Hrvoje Ban
I placed validation code for one of my fields inside action's method and I'm trying to call it using OGNL expression: @Validation public class RegistrationAction extends ActionSupport { private String username; public boolean isUsernameAvailable() {

Re: custom converter takes String representation of long ID and replaces with Object - convertFromString not being called

2008-08-02 Thread Pierre Thibaudeau
2008/7/29 [EMAIL PROTECTED] <[EMAIL PROTECTED]> > [...] First, might I make the assumption that type > converters and validators can be represented as beans. Reason being is > because I need to be able to do dependency injection via spring. Converters as beans: that's not a problem. I have a s

Re: how to set classpath for servlet-api.jar, jsp-api.jar and struts.jar for Ubuntu

2008-08-02 Thread Gabriel Belingueres
Struts are just jar files. From Eclipse POV, it is just another User Library or J2EE Module Dependency. You may find more help in an Eclipse specific mailing list/forum. 2008/8/2 Narasimha Raju Naidu <[EMAIL PROTECTED]>: > thanks for your reply. i installed eclipse but inorder to strat struts > ap

FileUploadInterceptor not always working

2008-08-02 Thread matthieu martin
Hi all, I am working with file uploads and use the corresponding interceptor. This is working very well but not constantly. I added to my action the three setter methods along with their corresponding variables. I upload my files, on after the other, and at some point my variable of type File wh

Re: how to set classpath for servlet-api.jar, jsp-api.jar and struts.jar for Ubuntu

2008-08-02 Thread Narasimha Raju Naidu
thanks for your reply. i installed eclipse but inorder to strat struts application what are the steps required any reference sites, please mention. waiting for your reply. Regrads... On 8/2/08, Gabriel Belingueres <[EMAIL PROTECTED]> wrote: > > Install yourself a nice looking IDE like eclipse,

Re: how to set classpath for servlet-api.jar, jsp-api.jar and struts.jar for Ubuntu

2008-08-02 Thread Gabriel Belingueres
Install yourself a nice looking IDE like eclipse, netbeans or from any other vendor. They handle classpaths and Tomcat configurations with a few clicks of your mouse. 2008/8/2 Narasimha Raju Naidu <[EMAIL PROTECTED]>: > hi to all, > > i am using ubuntu OS and recently i installed tomcat and starti

RE: Can't obtain object in POJO using AJAX and problem with validation

2008-08-02 Thread Francisco Exposito Aguilera
Hi, the correct answer was the last one. After set showLoadingText="false" it works properly in IE and Firefox. I hadn't tested it on Firefox and it worked before making the change. Thanks a lot... > Date: Sat, 2 Aug 2008 20:59:18 +1000 > From: [EMAIL PROTECTED] > To: user@struts.apache.org >

Re: Struts 2.1 & AjaxAnywhere

2008-08-02 Thread Shoaib Gauhar
I did achieve the desired functionality but not with ajax anywhere. Rather i used Javascript and DWR to make it REFRESH free. Search google for DWR and displaytag it will provide you some examples. If you dont find any, you can always contact me. Shoaib dynamicd wrote: > > Hey Shoib, > > I ha

Re: Can't obtain object in POJO using AJAX and problem with validation

2008-08-02 Thread Jeromy Evans
Hi Francisco, Issue number 2 takes precedence over Issue number 1 as if there's no user info available, then validation fails, errors appear on every field and the fields are empty. Which implies the properties are not being set on your action (you can verify that). Which implies Dojo is no

Re: [Friday] Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present

2008-08-02 Thread Milan Milanovic
Well, actually no. I work through my application 30 mins. with my session o.k., but when I came to redirect action it dissapear. I will create test application with nearly empty action class and jsp-s to try if redirect action to another namespace really delete session, as it happes to me. I chec

Can't obtain object in POJO using AJAX and problem with validation

2008-08-02 Thread Francisco Exposito Aguilera
Hi, I define in my menu.jsp page two . On the left the menu which always appears. On the right, the part which is updated after every action. Then I have another jsp with a form, the xml validation file and the POJO. The action definition is: /src/jsp/crear/usuarioCrear.jsp