I am using Tomcat.
Question: Could the <jsp:useBean> tag be implemented as a custom action?
More generally: Can a custom action make an object available to the JSP
script,
without requiring the page to grab the variable out of the pageContext?
Here are examples of what I have, vs. what I would like to see. Any
thoughts?
1. what I have:
<me:loop vector="<%=stuff%>" item="aThing">
<jsp:useBean id="aThing" class="package.Thing" scope="page">
<%// OR: Thing aThing = pageContext.getAttribute("aThing"); %>
<%=aThing.getRelatedWidget().getName()%><br>
</me:loop>
2. what I would like to see:
<me:loop vector=stuff item="aThing">
<%=aThing.getRelatedWidget().getName()%><br>
</me:loop>
It is actually 2 seperate issues:
a. can you pass variables into the action without using ugly <% %> tags?
b. can you get around having the script suck the resulting item out of
the pageContext?
any help is appreciated,
Harris
[EMAIL PROTECTED]
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html