aspose file tools*
The moose likes Struts and the fly likes error while trying to set the disabled attribute of html:radio using the scriptlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "error while trying to set the disabled attribute of html:radio using the scriptlet" Watch "error while trying to set the disabled attribute of html:radio using the scriptlet" New topic
Author

error while trying to set the disabled attribute of html:radio using the scriptlet

sourabh chhabra
Greenhorn

Joined: Mar 22, 2012
Posts: 3
i am trying to set the disabled attribute of html:radio using the scriptlet <=% %>

but i am getting this error

javax.servlet.jsp.JspException: ServletException in '/abcRequest.do?mode=loadRefPage': Unable to compile class for JSP: An error occurred at line: 256 in the jsp file: /form/abc.jsp The method setDisabled(boolean) in the type BaseHandlerTag is not applicable for the arguments (String) 253:



please help.

Shankar Tanikella
Ranch Hand

Joined: Jan 30, 2011
Posts: 329

Hi Saurabh,
Do not use scriplets. Try defining list size using struts tags as shown below.
example:



Have Fun with Java
little,little.. little by little makes a lot..
 
Consider Paul's rocket mass heater.
 
subject: error while trying to set the disabled attribute of html:radio using the scriptlet