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 'input type=text..value=%= ...%'
Thanks,
Tauri.
Tauri Valor wrote:
Hi
Is there a way to include value for textfield
Hi
Is there a way to include value for textfield tag in struts2 , Im trying the
following :
tds:textfield name=firstName label=*First Name size=15
value=%=freshUser.getFirstName() %//td
But I get tld error..
Please let me know how I could use jsp tag in the textfield tag, or let me
Thanks Lukasz
Lukasz Lenart wrote:
tds:password name=pwd label=Your Password//td
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
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:
tds:password name=pwd label=Your Password//td
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 the
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
Thanks Jeromy and Lukasz!
I could manage to get the field specific error messages using :
s:fielderror
s:paramfirstName/s:param
/s:fielderror
I have a new problem, when validating the page I get error messages as
Hi Lukasz,
Thanks for responding..
Snippet of Jsp:
form name=myForm method=post action=MyAction.do validate=true/
tr
td
width=115First Name/td
td
,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..
Snippet of Jsp:
form name=myForm method=post action=MyAction.do validate=true/
tr
Thanks Lukasz it worked for textfields using s:textfield
But I have the same problem when I use it for s:password
this is my listbox:
tr
td s:select label=Country name=country
headerKey=1
headerValue=Please Select
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
Using Annotation based Validation, I want to try the following:
The Validation Error message can be retrieved in our jsp using :
s:actionerror /
s:fielderror /
Do I have any alternative method of using the above tags ?
For eg. can I retrieve the error using session.getAttribute(actionerror)
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 mechanism to
it in struts.properties or a const in struts.xml.
Hope that helps,
Jeromy Evans
Tauri Valor wrote:
Thanks Jeromy!
Ive tried creating a package with empty name space ie :
package name=register namespace=/ extends=tiles-default
then the following url :
http://localhost:8080/MY_WEB
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
that one...
Tauri Valor wrote:
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
16 matches
Mail list logo