struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karr, David" <David.K...@wamu.net>
Subject RE: <logic> tag and <%= %> HELP!
Date Fri, 24 Jan 2003 21:33:54 GMT
This might work better for you:

<logic:present name="details" scope="request">
    <bean:write name="details" property="value"/>
</logic:present>

-----Original Message-----
From: Khalid K. [mailto:groups@maikada.com] 
Sent: Friday, January 24, 2003 1:21 PM
To: struts-user@jakarta.apache.org
Subject: <logic> tag and <%= %> HELP! 

Regardless of the value of <logic:present> tag, the expression
<%=details.getValue()%>  gets evaluated.

Does <%= %>  take precedence over <logic:present> or any custom tag
??????

example:

<logic:present name="details" scope="request">
    <%=details.getValue() %>
</logic:present>

the scriplet between the tag get executed regardless of outcome of the
logic tag. So, if details is NOT in request, form, I get an error:
"details does not exist..."  etc...

Any help would be appreciated! 

Khalid


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message