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