This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Struts and the fly likes about html:cancel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "about html:cancel" Watch "about html:cancel" New topic
Author

about html:cancel

Abhay Ram
Greenhorn

Joined: Dec 14, 2010
Posts: 7
hi everybody
i using these syntax but its not working properly
i tried the following code

1)<html:cancel onclick='CancelForm("<bean:write name="employeeLeave" property="employeeCode"/>");' ></html:cancel>
2)<html:cancel onclick="CancelForm('<bean:write name="employeeLeave" property="employeeCode"/>');"></html:cancel>

3)<html:cancel onclick="CancelForm("<bean:write name='employeeLeave' property='employeeCode'/>");" ></html:cancel>

i tried all that but still not working can you tell me why??
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63202
    
  69

Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Stefan Evans
Bartender

Joined: Jul 06, 2005
Posts: 1517
    
    6
You cannot have custom tags as part of an attribute to another custom tag.
ie it is illegal to have the <bean:write> tag where you have it, because it is part of the html:cancel's onclick attribute.
The following would work I think:


 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: about html:cancel
 
It's not a secret anymore!