> 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}"/>

That's exactly what you should be doing
 
> but where would I define the variable searchType that is accessed 
> there?

"searchType" should be saved as an attribute of (preferably) your request
object. Actually, a local variable should also work, you can define it using
the <c:set...> JSTL tag.

Actually, you shouldn't need to specify a "value" here at all. The
<html-el:text...> tag will get the default value from your form bean.


--
Tim Slattery
[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to