RE: html:radio problems
Hi Chris, Make sure you have getFlag() and setFlag() methods in your User bean. The error says that it can't find the getFlag() method. In the example you gave for property=name, I'm sure you have getName() and setName methods in your User bean. Hope this helps, Lucas -Original Message- From: Christopher Book [mailto:[EMAIL PROTECTED]] Sent: Friday, November 30, 2001 11:36 AM To: '[EMAIL PROTECTED]' Subject: html:radio problems Hi, I'm having a problem using the html:radio tag using another bean. For my text fields, I define an object bean called User and set the value using: html:text name=User property=name/ This sets the value of the text field to whatever the getName() method of my form returns. When I try to do the same thing with my radio buttons: html:radio name=User property=flag value=TRUE/ true html:radio name=User property=flag value=FALSE/ false I get the following exception: javax.servlet.ServletException: No getter method available for property flag for bean under name User I can use text boxes, selects, and textareas using this method and they all work properly, so why does this not work with radio buttons? Chris Book -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Escaped HTML characters in bean:write/
sure chris, there is an attribute that says filter just put filter=false and you're all set. lucas -Original Message- From: Chris Birch [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 27, 2001 2:29 PM To: [EMAIL PROTECTED] Subject: Escaped HTML characters in bean:write/ Hi, I have a simple CRUD struts application which stores text in a database. The text stored is often something like: Struts is a bbrilliant/b framework The idea is that simple html formatting can be applied to the text when it is output in a JSP. The text above gets stored in the DB without any problems, selects on the database show the information in there is exactly as was typed in, also, simple System.out.println on a ResultSet of that data show it as above. However, in my JSP I output the text from a bean property using bean:write / and in the html source I see that my and have become lt; gt; I actually want the markup to work as markup and not be escaped like this. Is it bean:write thats doing this, if so, is there a way to turn it off? Regards, Chris -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Redirecting under TOMCAT-UNIX
Hi everyone, I'm wondering if any of you experience the same problem with me when trying to do redirection under TOMCAT-UNIX. I keep getting the page cannot be displayed error when i do the ActionForward.setSetRedirect(true) and return the ActionForward object to from the perform(). Is there any other setting or alternative that I can do to do redirection under struts? Thanks guys, Mimpin Halim IT Specialist Management Information System Information Technology Services UH Manoa
logic:iterator indexId?
Hi Everyone, Anybody knows how to use the indexId in the logic:iterator tag? Will it give us indexed html form element? Please hell... Thanks, Lucas