This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft 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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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: 60077
    
  65

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: 1016
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 agree. Here's the link: http://aspose.com/file-tools
 
subject: about html:cancel
 
Similar Threads
Equal Symbol Expected?
Unable to insert a bean:write value that has a space
Iterate ArrayList and call javascript menthod according to it's value on JSP
URL Encoding in "a href"
enable/disable textbox