• Post Reply Bookmark Topic Watch Topic
  • New Topic

html:checkbox disable property  RSS feed

 
omkar patkar
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I am using following technologies in my web application:-

1) jdk1.4
2) Tomcat 4.14
3) Struts 1.2.8
4) Spring 2
5) iBatis
6) Servlet spec 2.3
7) Not sure about JSP spec but...i guess its 1.2 ...as i am using TOMCAT 4

In my jsp page, i am using the <html:checkbox> tag whose disable property must be set dynamically depending upon a the value of a boolean variable set into the session the code is somewhat as follows(BASICALLY THE VALUE FOR THE DISABLED ATTRIBUTE MUST BE AN EXPRESSION ...this is my intension):-

--------------------------------------------------------------
JSP

--------------------------------------------------------------

Now the variable :-

${sessionScope.SESSION_USER.customer.customerPrivilege.companyServiceAvailable}
is a boolean variable

...so according to my assumption, the boolean RTExpression value must be set ..... but when the page is rendered, the checkbox DOES NOT get disabled. Adding to this, even the disabled property is not rendered, when i verify the view source code of the jsp page.

I have checked the "HTML" tld that i am using in the jsp page which is :-
<%@ taglib uri="/tags/struts-html" prefix="html"%>

which points to struts-html.tld in the WEB-INF directory ....even the tld dictates that expressions are allowed as value of the disabled property of the checkbox tag.

----------------------------------------------------------------

-------------------------------------------------------------------

.... but still i am not able to set the boolean expression value in the "disabled" property of the <html:checkbox> tag.

How can i solve my problem ?

Million thanks in advance
 
omkar patkar
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey ... please does any one have any idea about it ?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!