Hmm. At worst, if your app is configured (and it simply doesn't recognize your tile) you should get either a 404 or a "white screen of death". With the trace provided, I would suspect some other unrelated problem in LogonAction.execute() such as a null form or something similar. Walk through the action with a debugger and see where the error really occurs.
--David > -----Original Message----- > From: Aaron Southwell [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 03, 2004 12:49 PM > To: Struts Users Mailing List > Subject: RE: Tile definitions used as forwards and action input > > > Thanks for that. It's difficult to know how much you know sometimes. > > Meanwhile, I still have a problem with the input mapping. I > took the logon page from the struts example. > When the user puts in an invalid password they should return > to the logon page. > However, when my action hits this code it fails: > > return ( mapping.getInputForward() ); > > mapping.getInputForward() equals: > > > forwardActionConfig[path=/Logon,input=app.logonDefinition,name > =logonForm,scope=session,type=com.mybdr.actions.LogonAction > > I then get: > > {...RequestProcessor] Unhandled Exception thrown: class > java.lang.NullPointerException > from > LogonAction.execute(Unknown Source) > > Any ideas? > > Regards, > > Aaron > > -----Original Message----- > From: Hibbs, David [mailto:[EMAIL PROTECTED] > Sent: 03 March 2004 16:36 > To: Aaron Southwell; Struts Users Mailing List > Subject: RE: Tile definitions used as forwards and action input > > > > > > Can anyone explain where tile definitions can be used in > > action mappings (see below)? I have had trouble when I use > > ActionError to return to the input page. > > Answers below. > > > Also, I see examples of definitions starting with a '.'. Is > > this important/relevant? > > More of a standard/best practice than important or relevant to your > first question. > > > Action using defintion as "input" as well as forward path. > > Should work. > > > Can links be set to defintions? > > > > <html:link action="app.extractDefinition" > > > No, you need an action of some kind that will forward to a definition. > Most people use DefinitionDispatcherAction. See > http://jakarta.apache.org/struts/api/org/apache/struts/tiles/a ctions/Definit ionDispatcherAction.html Otherwise you end up with a basic link to a document with your tile name, which if you stop and think about it makes sense. So you'll end up with a 404. > This didn't seem to work and I had to use: > > <html:link href="/ToExtract" > > > and: > > <action path="/ToExtract" forward="app.extractDefinition" /> That'll work, too. You also can't declare a global forward to a tile and expect to have it work correctly, though, so don't try it. =) > I have read a lot but haven't found a clear outline to using > defintions in Struts. Yeah, I noticed that, too. But I managed to figure it out--and it looks like you're halfway there. =) David Hibbs, ACS Staff Programmer / Analyst American National Insurance Company --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

