On 1/7/06, Eric Rank <[EMAIL PROTECTED]> wrote: > My goal is to retrieve data, which a jsp will spill out. I'm trying to > do it by writing a simple Action subclass to get the data and send it > along. The way I'm doing it isn't working. > > My action mapping looks like this: > > <action > path="/records" > type="app.actions.RecordsAction" > forward="/pages/records.jsp" />
Welcome! There's quite a bit of information in the DTD itself: http://struts.apache.org/dtds/struts-config/1_2/ Click on 'action' and then scroll up a bit to read the comments. For "forward", it says: Exactly one of "forward", "include", or "type" must be specified. Instead of the forward attribute, try using a nested (or global) <forward name="could-be-anything" path="/pages/records.jsp" /> element. And yes, setting attributes in the request or session and retrieving them in the JSP is a reasonable thing to do. Take a look at JSTL if you aren't already using it. -- Wendy --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]