et voila!  that did the trick, now i feel silly not to have thought of it.

thanks!

just for posterity, specifically what i'm doing is:

<stripes:url var="url" beanclass="${actionBean.class.name}"/>

<stripes:link beanclass="${some.other.class}"/>
  <stripes:param name="targetUrl" value="${url}"/>
</stripes:link>

and then some.other.class eventually resolves thus,

return new RedirectResolution(getTargetUrl(), false);

returning you to where you were before, modulo the original bean's
state, i guess.

thanks again!


Joel



On Wed, Aug 13, 2008 at 1:04 PM, Poitras Christian
<[EMAIL PROTECTED]> wrote:
> Usually, I jave an action bean like yours.
> (I always have a default handler, this will help you)
>
>
> @UrlBinding("/foo")
> public class Foo extends ActionBean {
>  @DefaultHandler
>  public resolution bar() {
>    return new ForwardResolution("/baz.jsp");
>  }
> }
>
> Then in the jsp.
> <stripes:url var="url" actionBean="mypackge.Foo">
> </stripes:url>
> <a href="${url}">
>   Access Foo
> </a>
>
>
> Christian
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joel Truher
> Sent: Wednesday, August 13, 2008 3:09 PM
> To: [email protected]
> Subject: Re: [Stripes-users] UrlBinding => sourcePage?
>
> No.  Sorry, I realize a little more detail would help. I'm really just trying 
> to keep the origin URL for the start of a subflow, for example, registration. 
>  So I put the source page into a field called targetUrl, and when the subflow 
> is done, the final state redirects to the targetUrl.  The bugzooky 
> application works this way.  I'm just having trouble combining that idea with 
> bound Urls.  Is there a "standard"
> way to do it?
>
>
> On Wed, Aug 13, 2008 at 11:24 AM, Poitras Christian <[EMAIL PROTECTED]> wrote:
>> Are you using <stripes:link> tag to get http://host/foo?
>>
>> Christian
>>
>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On Behalf Of Joel
>> Truher
>> Sent: Wednesday, August 13, 2008 1:59 PM
>> To: Stripes Users List
>> Subject: [Stripes-users] UrlBinding => sourcePage?
>>
>> Hi,
>>
>> Apologies in advance for the newbie question.  I'm using UrlBinding for 
>> clean URLs, and I can't figure out how to get the actual request URL.  Both 
>> of these:
>>
>> pageContext.request.requestURL
>>
>> actionBean.context.sourcePage
>>
>> return the jsp page URL, not the request URL.
>>
>> So, e.g.:
>>
>> @UrlBinding("/foo")
>> public class Foo extends ActionBean {
>>  public resolution bar() {
>>    return new ForwardResolution("/baz.jsp");  } }
>>
>> what I want is
>>
>> http://host/foo
>>
>> but what I get is
>>
>> http://host/baz.jsp
>>
>> Again, apologies for the newbie nature of my question.  Can anyone help me?  
>> Thanks!
>>
>>
>> Joel
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge 
> Build the coolest Linux based applications with Moblin SDK & win great prizes 
> Grand prize is a trip for two to an Open Source event anywhere in the world 
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to