Re: Form Bean Validation problem

2002-02-09 Thread Pavel Nejedly
On Sat, Feb 09, 2002 at 04:29:46AM -0800, cool dude wrote: # Hi, #Here's a small problem that I'm facing. I have a # form which has an integer field, say a cost of some # item. Now, I need to do the validation for this # form-field to make sure that the user does not enter a # non-numeric

Re: nesting struts tags

2002-02-07 Thread Pavel Nejedly
On Thu, Feb 07, 2002 at 03:41:06AM +1100, rob wrote: # What is the appropriate way to nest tags in struts? I've seen this posted # before but couldn't find a scriptlet free answer so I'm posting myself. # # I have a collection through which I'm iterating with the logic:iterate tag # each item

Re: How to put useBean data in HTML attribute?

2002-02-05 Thread Pavel Nejedly
# Richard Yee [EMAIL PROTECTED] on 02/05/2002 12:30:18 AM # To do what you want, try this: # logic:iterate name=myBean property=userList id=currentUser # % String ref = admin_userForm.jsp?user_id= + currentUser; % # html:link href=%= ref %%= currentUser %/html:linkbr # /logic:iterate How about

Re: error display

2002-02-05 Thread Pavel Nejedly
On Tue, Feb 05, 2002 at 12:12:40PM -0500, Henry Lu wrote: # I did. I include # # html:errors/ # # in a jsp file. But when validate() function finds error, the jsp page # displays something like: # # ul # /ulhr # # on the screen. # # Why? Have you provided the messages for all the keys

Re: Changing ActionForms in an Action

2002-02-05 Thread Pavel Nejedly
On Tue, Feb 05, 2002 at 09:29:38AM -0700, Ace wrote: # Can an Action class perform() forward a different ActionForm to the # forwarded jsp # than the one it receives? [...] # (Yes I know the Action can stuff anything into # the session # or request but this is kind of a non-standard way

Re: error display

2002-02-05 Thread Pavel Nejedly
On Tue, Feb 05, 2002 at 12:30:25PM -0500, Henry Lu wrote: # Here is my code: # errors.add(ActionErrors.GLOBAL_ERROR, # new ActionError(error.id.required, id=123)); then you have to provide message for the key error.id.required. check the content of the file you

Re: error display

2002-02-05 Thread Pavel Nejedly
On Tue, Feb 05, 2002 at 01:03:18PM -0500, Henry Lu wrote: # Here is my ApplicationResource.properties file used ./classes # directory # # errors.header=ul # errors.footer=/ulhr # errors.id.required=id is required. # ---