Pesquisar neste blogue
terça-feira, 22 de dezembro de 2015
Struts 2 and TLD issues.
According to TLD or attribute directive in tag file, attribute value does not accept any expressions
I have been rather plagued by this error on the last few days when using Struts2 till. By chance i came across https://almeidamike.wordpress.com/2010/03/12/struts-solving-according-to-tld-or-attribute-directive-in-tag-file-attribute-value-does-not-accept-any-expressions/ .
So if you are having some difficulties accessing parameters of the request or other values be sure to enable debug as specified in https://struts.apache.org/docs/debugging-struts.html and find the correct path to your value.
Credits to the owner of https://almeidamike.wordpress.com/author/almeidamike/.
Examples:
${someField} becomes %{#attr.someField}. Acessing request parameters would be for instance %{#parameters.someField}.
Subscrever:
Enviar feedback (Atom)
Sem comentários:
Enviar um comentário