RE: c:choose not evaluating correctly

2005-05-31 Thread Andy
Thanks, but I still get the same result, it's as if the 'test' function just refuses to work. Here's the test page I'm using - %@ page contentType=text/html;charset=UTF-8 language=java % %@ taglib uri=/tags/struts-bean prefix=bean % %@ taglib uri=/tags/struts-html prefix=html % %@ taglib

RE: c:choose not evaluating correctly

2005-05-31 Thread Andy
Hi Martin, That evaluates to false all the time. When userSession does not exist, and when it does exist and username is not empty. Is it necessary to use sessionScope.mybean.myproperty syntax ? I'm beginning to think this must be some other problem. None of the below variations evaluate to

Dynamically adding components to pages

2005-05-31 Thread Marius Botha
Hi there, Hope someone can help me. I have a requirement where my system needs to prompt users for certain information at certain times in a process. To do this I need to be able to add components to a page at run time based on a user's permissions. E.g. if the user is supposed to specify a date

c:out problem

2005-05-31 Thread Andy
I have another problem ! (what is going on today?) Why can't I print out the value of a variable using c:out ? The below example was copied from http://javaalmanac.com/egs/javax.servlet.jsp.jstl.core/attr.html c:set var=name1 value=value1 scope=page / c:set var=com_mycompany_name2

Re: c:out problem

2005-05-31 Thread Rahul P Akolkar
See Question 1 on Taglibs Wiki FAQ [ http://wiki.apache.org/jakarta-taglibs/FrequentlyAskedQuestions ] -Rahul Andy [EMAIL PROTECTED] wrote on 05/31/2005 09:29:37 AM: I have another problem ! (what is going on today?) Why can't I print out the value of a variable using c:out ? The below

RE: c:out problem

2005-05-31 Thread Andy
Thanks, *grin*, I'll check the FAQ first next time. -Original Message- From: Rahul P Akolkar [mailto:[EMAIL PROTECTED] Sent: 31 May 2005 14:22 To: Tag Libraries Users List Subject: Re: c:out problem See Question 1 on Taglibs Wiki FAQ [

RE: c:choose not evaluating correctly

2005-05-31 Thread Rahul P Akolkar
A jsp:useBean declaration, that changes things ;-) On 5/31/05, Andy [EMAIL PROTECTED] wrote: snip/ I can see lots of horrible conditional glue logic in my future. No, really, atleast not because of whats discussed in this thread. I would: 1) Set the session attribute in the Struts layer only

RE: c:choose not evaluating correctly

2005-05-31 Thread Andy
Ahh I now I understand, useBean is redundant with EL, when you're not interested in instantiating beans. Your example worked perfectly. Thanks. -Original Message- From: Rahul P Akolkar [mailto:[EMAIL PROTECTED] Sent: 31 May 2005 14:48 To: Tag Libraries Users List Subject: RE: c:choose