File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Nested quotes in tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Nested quotes in tag" Watch "Nested quotes in tag" New topic
Author

Nested quotes in tag

Art Vandelay
Ranch Hand

Joined: Dec 27, 2009
Posts: 49
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?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61437
    
  67

You cannot embed a custom tag as the attribute value of another custom tag.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Art Vandelay
Ranch Hand

Joined: Dec 27, 2009
Posts: 49
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
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61437
    
  67

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

Joined: Dec 27, 2009
Posts: 49
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
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61437
    
  67

 
Don't get me started about those stupid light bulbs.
 
subject: Nested quotes in tag