This week's book giveaways are in the Scala and Android forums.
We're giving away four copies each of Machine Learning Systems: Designs that scale and Xamarin in Action: Creating native cross-platform mobile apps and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

html:checkbox disable property  RSS feed

 
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 ?
 
I got this tall by not having enough crisco in my diet as a kid. This ad looks like it had plenty of shortening:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!