Re: [s2] Is it possible to have seperate validtion files for each method without using wildcards.

2007-09-13 Thread Zoran Avtarovski
We use conditional validation by placing a method string our model and using
that as a conditional check during validation.

Z.

> Is it possible to have seperate validtion files for each method.
> 
> Bascially it would be very nice to be able to have
> 
> 
> 
> 
> and be able to have seperate validations for both methods instead of
> using the alias.
> 
> 
> 
> 
> This approach seems to be a more elegant way of validating as at the
> moment you have to use a wildcard hack to accomplish it.
> 
> __
> Ufi Limited 
> Registered in England No.  3980770
> Registered Office:  Dearing House, 1 Young Street, Sheffield, S1 4UP
> 
> learndirect Solutions Ltd
> Registered in England No. 5081669
> Registered Office:  Dearing House, 1 Young Street, Sheffield, S1 4UP
> 
> UFI Charitable Trust
> Registered in England No.  3658378
> Registered Charity No.  1081028
> Registered Office:  Dearing House, 1 Young Street, Sheffield, S1 4UP
> 
> This email has been scanned by the MessageLabs Email Security System.
> 
> __



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[s2] Is it possible to have seperate validtion files for each method without using wildcards.

2007-09-12 Thread David Harland
Is it possible to have seperate validtion files for each method.

Bascially it would be very nice to be able to have 




and be able to have seperate validations for both methods instead of
using the alias.


 

This approach seems to be a more elegant way of validating as at the
moment you have to use a wildcard hack to accomplish it.

__
Ufi Limited 
Registered in England No.  3980770 
Registered Office:  Dearing House, 1 Young Street, Sheffield, S1 4UP 

learndirect Solutions Ltd 
Registered in England No. 5081669 
Registered Office:  Dearing House, 1 Young Street, Sheffield, S1 4UP 

UFI Charitable Trust 
Registered in England No.  3658378 
Registered Charity No.  1081028 
Registered Office:  Dearing House, 1 Young Street, Sheffield, S1 4UP 

This email has been scanned by the MessageLabs Email Security System.

__

Action mapping order and using wildcards

2005-05-05 Thread Allistair Crossley
Hi,

My scenarion is that I need all URLs into our domain to route to the struts 
controller. Furthermore, we do not want to add new action mappings when we come 
up with new pages. Our "pages" are actually database driven by the inbound URL, 
e.g

http://www.domain.com/this/is/a/page
http://www.domain.com/so/is/this

When we add new "pages" in the database, we want those immediately available on 
the site without new action mappings, without restarts and so fourth.

My plan is as follows. My web.xml drills through everything with 


  controller
  /*


Then in the struts-config a wildcard will allow us to capture everything



In the action we can then call getPath and we have the path the user used to 
tie-up with the database to get our page.

Great.

The problem seems to be that now that I want to add a more specific action 
mapping, e.g



the request http://www.domain.com/view is being picked up by the /** wildcard 
action mapping even though it appears in struts-config before the wildcard.

My question therefore is, do struts-config action mappings not get loaded for 
matching in order of appearance? and if not, any tips on how to get around this 
problem?

Thanks, Allistair.


 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Using WildCards

2004-09-30 Thread Don Brown
Unfortunately, set-property is processed at config parsing time,
rather than runtime, so it is not possible to use wildcard replacement
in it.

Don


On Thu, 30 Sep 2004 14:59:17 -0300 (ART), Jose Alecio Carvalho
<[EMAIL PROTECTED]> wrote:
>  Hi! I'm having some troubles using WildCards. I have
> a Action declaration like this:
> 
>  type="alecio.presentation.web.action.{1}OperationAction"
> 
> name="OperationForm"
> validate="true"
> scope="request"
> input="{1}HomePage"
> parameter="operation"
> className="alecio.tech.presentation.web.struts.OperationActionMapping">
>   
>  value="structure{1}Model"/>
>  
>   
>   
> 
> 
> The WildCard for this declaration works fine with all
> the items, except the one which is into the
> :
> 
> " value="structure{1}Model"/>"
> 
> It doesn't replace the flag. How can i do such a
> thing?
> 
> thanks!
> 
> Alecio
> 
> 
> ___
> Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora! 
> http://br.acesso.yahoo.com/
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Using WildCards

2004-09-30 Thread Jose Alecio Carvalho
 Hi! I'm having some troubles using WildCards. I have
a Action declaration like this:


  

 
  
  



The WildCard for this declaration works fine with all
the items, except the one which is into the
: 

""

It doesn't replace the flag. How can i do such a
thing?

thanks!

Alecio





___ 
Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora! 
http://br.acesso.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]