Dave Newton-4 wrote: > > --- shadman <[EMAIL PROTECTED]> wrote: >> but I canât seem to find any good non-Spring >> examples of passing a selection parameter into the >> Action to retrieve a specific record for display on >> another JSP. > > I'm not sure what Spring has to do with this except > that the DAO/service would be injected in a different > way, yes? > > Correct, Spring is not issue - just trying to explain what and why, is > all. Like a said, for comparison only. But, most S2 examples use Spring. > >> if (this.paramsMap.size() > 0) { >> if (this.paramsMap.containsKey("id")) { >> String idStr = >> CommonUtils.StrArr2Str((String[]) >> this.paramsMap.get("id")); >> this.id = new Integer(idStr); >> } >> } > > Just out of curiosity, why not use the type conversion > stuff and skip all this? > > I'm a newbie to S2, didn't know I could do that yet. Would rather, I'm > sure. > >> I get this error message: >> >> No result defined for action >> com.att.etpi.eval.struts2.actions.DepartmentAction >> and result input. > > Do you have a result defined for "input"? I didn't see > one. It would appear as though some validation > somewhere is failing hence it's trying to take you > back to the input result. > > d. > > 1st, thanks for the reply: > This is what I understood from another post, must have a result input > specified. I didn't have any validation, and earlier testing the > result-input didn't work for me (meaning I must have had a problem). I > cleaned and retested in Eclipse 3x, still failed. I did seem to stumble > upon the right thing to do by accident. Added "<result > name="input">jsps/errors.jsp</result>". So, my assumption is that its > required in case some error occurs; and not used if no error occurs. > > Thanks, Dave. > > shadman > > ____________________________________________________________________________________ > Don't pick lemons. > See all the new 2007 cars at Yahoo! Autos. > http://autos.yahoo.com/new_cars.html > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/-S2--%E2%80%93-No-result-defined-for-action-ERROR-tf3779469.html#a10688896 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]