From: Bender, James [mailto:[EMAIL PROTECTED] > I am trying to display a value from a requestAttribute in an <html-el:text > ...> but I can't get it to work. Here is my code: > <html-el:text: property="searchType" > value="<%=request.getAttribute("searchType")%>"/> > > I recieve the error: > "Attribute searchType has no value" > Someone told me I have to do something more like this: > <html-el:text property="searchType" value="${searchType}"/> > > but where would I define the variable searchType that is > accessed there?
You wouldn't, you'd set the property of the Form bean and let Struts handle it. If you need to pre-populate the form, you do that in the Action by calling setSearchType() on your Form bean. Then when you forward to the JSP, Struts will fill in the value. Can you explain more about your situation? I'm making some assumptions that may not be correct. In general there's no need to touch the 'value' attribute of the tags that render HTML form elements. -- Wendy Smoak Application Systems Analyst, Sr. ASU IA Information Resources Management --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]