hi cameron!
no, i don't think its the spelling - I put it into a session variable - its works.
i just can not get it via the expression jason suggested.
thanks
jp
11.12.2003 15:13:14, Cameron Braid <[EMAIL PROTECTED]> wrote:
>
>
> From: Cameron Braid <[EMAIL PROTECTED]>
>
> Organization:Datacodex Pty Ltd
> To: [EMAIL PROTECTED]
> Subject: Re: [OS-webwork] pointing action calling pages
> Date: Fri, 12 Dec 2003 00:13:14 +1000
>
>
>
> String referrer = ServletActionContext.getRequest().getHeader("Referer");
> ctx.getValueStack().setValue("currentPage", referrer);
>
> I think that your problem is with the spelling of the header hey name "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.
> - ctx.getValueStack().setValue("currentPage", ServletActionContext.getReque
> - <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().
>
>
> 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 SourceFor
>
>
> 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.pd
>
>
> ------------------------------------------------------- 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