Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

about html:cancel

 
Abhay Ram
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65115
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.
 
Stefan Evans
Bartender
Posts: 1779
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic