Do you know examples of when the "referer" header doesn't
exist? Is it a servlet engine thing? I'm extremely curious because I depend on
the "RefererResult" quite a bit. I'm very interested in knowing ahead of time in
what situations that header value won't exist. FYI, on Tomcat and Oracle 9i,
"referer" as a key works fine.
Thanks, Drew From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cameron Braid Sent: Thursday, December 11, 2003 6:13 AM To: [EMAIL PROTECTED] Subject: Re: [OS-webwork] pointing action calling pages ctx.getValueStack().setValue("currentPage", referrer); I think that your problem is with the spelling of the header hey name "referer" should be "Referer" Note also that this header doesn't always exist. Cameron Jan-Peter Hagenmüller wrote: hi! thanks for so far! i got the calling url and tried to put it onto the stack in my validate() then i tried to get it via _expression_: - ctx.getValueStack().getContext().put("currentPage", ServletActionContext.getRequest().getHeader("referer")); or - ctx.getValueStack().setValue("currentPage", ServletActionContext.getRequest().getHeader("referer")); then - <result name="success" type="dispatcher">${currentPage}</result> => brings me to the root path - means "don't know 'currentPage' " i think ? :-) i use webwork2 and believe it is comparable with ActionContext.getContext().put(key,value) thanks jp 11.12.2003 00:51:07, "Jason Carreira" <[EMAIL PROTECTED]> wrote:You can use an _expression_ there, like this: <result name="success" type="dispatcher">${currentPage}</result> Which will evaluate currentPage against the value stack-----Original Message----- From: Jan-Peter Hagenmüller [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 10, 2003 6:19 PM To: [EMAIL PROTECTED] Subject: [OS-webwork] pointing action calling pages Hi, any form at any page can call any actions - but how can i point the calling page with a result desciption like below? <action name="helpSearchAction" class="action.HelpSearchAction"> <result name="success" type="dispatcher"> "current page" </result> </action> with no <result...s an empty page is shown, empty "current page" ends with NPE (see bug report http://jira.opensymphony.com/secure/ViewIssue.jspa?key=WW-331)thanks for hints! jp ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here:http://sourceforge.net/donate/ _______________________________________________Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork -- Any damn fool can write code that a computer can understand... The trick is to write code that humans can understand. [Martin Fowler http://www.martinfowler.com/distributedComputing/refactoring.pdf] |
- RE: [OS-webwork] pointing action calling pages Jason Carreira
- Re: RE: [OS-webwork] pointing action calling pa... Jan-Peter Hagenmüller
- Re: [OS-webwork] pointing action calling pa... Cameron Braid
- Re: [OS-webwork] pointing action callin... Jan-Peter Hagenmüller
- RE: [OS-webwork] pointing action callin... Drew McAuliffe
- RE: [OS-webwork] pointing action calling pages Jason Carreira