On 7/28/05, Marco Mistroni <[EMAIL PROTECTED]> wrote: > > Hello Wendy, > I missed one point of your statement.. > > >> <logic:present name="${sessionScope.results}"> > > >Even if you're going to use an expression, the 'name' attribute should > >still > >evaluate to the _name_ of the bean, not the bean itself. > > http://struts.apache.org/userGuide/struts-logic.html#present > > what do you mean? If I store the bean under the attribute name 'result', > why > the above EL is wrong?
What you want is: <logic:present name="results" scope="session"> This will check for a bean stored under the name 'results' in session scope. ${sessionScope.results} evaluates to the bean itself. The logic tag receives *that bean* where before it received a String. I believe that the logic tag would then convert that bean to a String and look for an object stored under that name, instead. Instead of dealing with all of this, just try the following JSTL: <c:if test="${not empty sessionScope.results}"> -- Jeff --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]