Problem in JSTL

Hi friends

I want to disable textbox. So I am using setAttribute in session.

I use scriplets code everything comes properly. I want to use jstl tags.

See Normal Scriplet Code :

<html:text styleClass="searchSelectBoxFive" property="timeBetAlmAlerts" disabled='<%=((Boolean)session.getAttribute("isDisabled")).booleanValue()%>'/>

I want to use same code in JSTL tags

<html:text styleClass="searchSelectBoxFive" property="timeBetAlmAlerts" disabled=''><c:out value='${isDisabled}'/>" />

This code is not working properly. Please tell another way.

Please.

Regards

Pooja

[667 byte] By [sherin_poojaa] at [2007-11-27 3:49:34]
# 1
You have a closing tag after the disabled element:<html:text styleClass="searchSelectBoxFive" property="timeBetAlmAlerts" disabled=''><c:out value='${isDisabled}'/>" />Try removing it.
ChristopherAngela at 2007-7-12 8:53:27 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

That isn't the cause, I think. The message parser of this forum software doesn't like tight nested hook tags.

For example, the forum parses the following:

List<List><String>>

while I typed (spaces inserted for illustration, think them away):

List< List <String> >

Try it out yourself using the 'preview' button ;)

Anyway, if you have EL, you can remove the c:out tag and just use ${isDisabled ? 'disabled=true' : ''}.

BalusCa at 2007-7-12 8:53:27 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
<html:text styleClass="searchSelectBoxFive" property="timeBetAlmAlerts" disabled="${isDisabled}" />Try that
josephquinn80a at 2007-7-12 8:53:27 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...