Ahhh yes. Actually, I did check out the DTD a couple of days ago. I remember it saying how you can only put in one "forward" "include" or "type". I just didn't connect how I would set a "type" and then specify a forward as the child node. Now it works just fine.
I knew it was probably something simple. I appreciate your help! Thanks, Eric On 1/7/06, Wendy Smoak <[EMAIL PROTECTED]> wrote: > 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. > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]