• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Nested quotes in tag

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I have the following code:



'myItem' is the value of the option and must also act as the selector for the correct message property., but unfortunately this keeps giving a JasperException saying "equal symbol expected". I hav ethe feeling that it has something to do with the nested quotes. Any idea where my problem is?
 
Sheriff
Posts: 67754
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You cannot embed a custom tag as the attribute value of another custom tag.
 
Art Vandelay
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bear Bibeault wrote:You cannot embed a custom tag as the attribute value of another custom tag.


Thanks for the quick response.

Do you mean that it is not possible to embed the fmt:message tag into the form: option tag?
I tried c:set to temporarily store the result of the fmt:message tag, but unfortunately this did not solve the problem. Any idea if there is a workaround for what i'm trying to do?
 
Bear Bibeault
Sheriff
Posts: 67754
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Art Vandelay wrote:Do you mean that it is not possible to embed the fmt:message tag into the form: option tag?


That is correct.

I tried c:set to temporarily store the result of the fmt:message tag, but unfortunately this did not solve the problem.


Why not? Simply saying "it doesn't work" isn't useful.

Perhaps a thorough examination of the <fmt:message> tag might reveal the answer.
 
Art Vandelay
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bear Bibeault wrote:

Art Vandelay wrote:Do you mean that it is not possible to embed the fmt:message tag into the form: option tag?


That is correct.

I tried c:set to temporarily store the result of the fmt:message tag, but unfortunately this did not solve the problem.


Why not? Simply saying "it doesn't work" isn't useful.

Perhaps a thorough examination of the <fmt:message> tag might reveal the answer.


I solved the problem by using the 'var' attribute of fmt:message to temporarily store the message. Thanks for the pointer!
 
Bear Bibeault
Sheriff
Posts: 67754
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic