Not sure why Rahul sent you a reference to your own question. Sort of encourages strange iterations! ///;-) Just kidding!
In my opinion, using custom tags for this purpose is not the best way to go. Custom tags are meant to decouple code from markup. I would (A) either use a controller/navigation switch for this (B) or use some logic on the page for this, e.g. <c:if>, etc. On 5/31/05, Rahul Akolkar <[EMAIL PROTECTED]> wrote: > [ http://marc.theaimsgroup.com/?l=taglibs-user&m=111756793724193&w=2 ] > > -Rahul > > > On 5/31/05, Marius Botha <[EMAIL PROTECTED]> wrote: > > 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 for the process to continue, I need > > to provide a calendar control; and if the user needs to enter a name, then > > provide a textbox. I have developed my own custom tags that I would want to > > use but I have the following questions: > > > > 1. How do I reuse my components in such an environment? I suppose I would > > need to provide a StringBuffer or something to my component to write to > > (how?) and then call the doStartTag(), etc. methods manually? > > 2. How do I implement this in the JSP, seeing as the html/tags would have to > > be inserted at a certain stage. Has anyone done this before or can you give > > me any pointers? > > > > Much appreciated. > > > > Marius Botha > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- "You can lead a horse to water but you cannot make it float on its back." ~Dakota Jack~ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]