Because I was dealing with multiple List that a simple iterate tag could not handle. I have since added extra logic to the action in the getter methods to handle what I needed which perhaps is a better solution. It would be nice for future reference to be able to have an instance of my action in scriptlet code that I can call however I please. This is of course not a good coding practice but I find it useful to do complex things in the jsp through scriptlet code before writing a full fledged custom tag.
I used this technique often in Struts 1 by using the bean tag to get an instance of my ActionForm like this... <bean:define name="invoiceForm" id="invoiceForm" scope="session"/> <% List invoiceLevels = invoiceForm.getInvoiceLevels(); <!-- now use complex logic to determine how the display the invoice based on the levels --> ... %> I was just hoping there was a similar way of doing this in Struts 2. newton.dave wrote: > > --- kkjacks <[EMAIL PROTECTED]> wrote: >> I am interested in the actual writing of custom tags >> and I also hoped that by learning how to do this it >> would help facilitate my previous unanswered > question >> of how to access the action through scriptlet code > in >> the jsp. > > Ah; sorry. > > I'd probably just look at the source of the custom > tags that come with S2 then and any of several generic > tutorials on the web (and recall that under JSP 2.0 > you can write custom tags in JSP; there are one or two > good articles at onjava.com regarding that). > > That said, the stack is a request attribute under > (ServletActionContext.STRUTS_VALUESTACK_KEY (IIRC, > that's actually from memory). > > But why do you want to access the stack from scriptlet > code? > > d. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Know-of-any-good-custom-tag-tutorials-for-struts-2--tf4435689.html#a12662547 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]