Re: Using jsp tag in Value attribute of textfield tag in Struts2

2008-04-10 Thread Tauri Valor
I get the following error : According to TLD or attribute directive in tag file, attribute value does not accept any expressions I could get the value using html tag '>' Thanks, Tauri. Tauri Valor wrote: > > Hi > > Is there a way to include value for textfield t

Using jsp tag in Value attribute of textfield tag in Struts2

2008-04-09 Thread Tauri Valor
Hi Is there a way to include value for textfield tag in struts2 , Im trying the following : But I get tld error.. Please let me know how I could use jsp tag in the textfield tag, or let me know an alternative... Thanks in Advance, Tauri. -- View this message in context: http://w

Re: Struts2 Annotation based Validation

2008-03-26 Thread Tauri Valor
Lukasz, I tried as you advised. I get the default error message 'Please enter a value for first name ' which is in the "message" . Im expecting the error messaage from the properties file. I think Im placing my properties file in the wrong location. And therefore my validation returns me the d

Re: Struts2 Annotation based Validation

2008-03-26 Thread Tauri Valor
Thanks again. I tried the following: In my action: @RequiredStringValidator(key = "error.message", message = "") public String getFirstName() { return firstName; } I created the properties file just under my action with the name "MyActionName.properties" with th

Re: Struts2 Annotation based Validation

2008-03-26 Thread Tauri Valor
Hi Is it possible for me to have multilingual Validations using Annotation Based Validations in Struts2 ? Please let me know how I can achieve this . Thanks, Tauri. Tauri Valor wrote: > > Thanks Lukasz > > > > Lukasz Lenart wrote: >> >>> >> &

Re: Struts2 Annotation based Validation

2008-03-26 Thread Tauri Valor
Thanks Lukasz Lukasz Lenart wrote: > >> > > By default s:password tag don't shows value of your password, you can > change such behaviour by adding attribute showPassword=true, but you > should consider security issue. > > > Regards > -- > Lukasz > > http://www.linkedin.com/in/lukaszlena

Re: Struts2 Annotation based Validation

2008-03-18 Thread Tauri Valor
Thanks Lukasz it worked for textfields using But I have the same problem when I use it for this is my listbox: And my password fields:

Re: Struts2 Annotation based Validation

2008-03-18 Thread Tauri Valor
,parsed] cached copy not yet stale; using cached. Does it have anything to do with caching of the page? Thanks, Tauri. Tauri Valor wrote: > > Hi Lukasz, > > Thanks for responding.. > &

Re: Struts2 Annotation based Validation

2008-03-18 Thread Tauri Valor
Hi Lukasz, Thanks for responding.. Snippet of Jsp: First Name

Re: Struts2 Annotation based Validation

2008-03-18 Thread Tauri Valor
Thanks Jeromy and Lukasz! I could manage to get the field specific error messages using : firstName I have a new problem, when validating the page I get error messages as desired. Eg: Mandatory field validation giv

Re: Struts2 Annotation based Validation

2008-03-17 Thread Tauri Valor
Thanks Lukasz! I tried request.getAttribute("actionerror") and request.getAttribute("fielderror") in my jsp but it did not work. Am I doing it the wrong way ? Lukasz Lenart wrote: > > Hi, > > Error messages are stored in request, you have to subclass > ActionSupport and add some mech

Struts2 Annotation based Validation

2008-03-17 Thread Tauri Valor
Using Annotation based Validation, I want to try the following: The Validation Error message can be retrieved in our jsp using : Do I have any alternative method of using the above tags ? For eg. can I retrieve the error using session.getAttribute(actionerror) ? Are actionerror and fielde

Re: Struts2 URL problem

2008-03-16 Thread Tauri Valor
Thanks Jeromy I will try your approach and let you know. Jeromy Evans - Blue Sky Minds wrote: > > At this point I'd either > a) accept it, because it's unlikely to cause really problems or ever be > noticed by a real user. It's just scrappy > b) create a custom ActionMapper derived from the

Re: Struts2 URL problem

2008-03-16 Thread Tauri Valor
work also > try the "/" namespace. > > If that doesn't work, there's also some poorly documented options for > the default ActionMapper. > Try setting the struts property > "struts.mapper.alwaysSelectFullNamespace" to true. It may be the on

Re: Struts2 URL problem

2008-03-12 Thread Tauri Valor
ank/example/somecrap/HelloWorld.action > > If there's no match in a package namespace it falls back to the default > package and matches a little to generously. > > You may be able to avoid it by creating a package with an empty > namespace containing no actions. Not sure about that o

Struts2 URL problem

2008-03-12 Thread Tauri Valor
Hi I have the following problem with url in my web application: I run my app using Struts2 and Tomcat6. Context name of webapp: MY_WEB Namespace in my package tag of struts-config.xml: package name="register" namespace="/register" extends="tiles-default" Mapping of Action class in my struts