Re: dynamic forwards

2005-09-20 Thread Michael Jouravlev
Yep, you can either create a new ActionForward, or you can use
wildcard mapping, if your forwarded location depends on input
parameters in certain pattern:
http://struts.apache.org/userGuide/building_controller.html#action_mapping_wildcards

Michael.

On 9/20/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> sorry, figured it out..i was looking at the mapping class...but you can
> just create a new ActionForward with the path as the constructor arg.
> 
> Marc
> 
> > Hi,
> >
> > I have an Action servlet which at development time doesn't know what it's
> > forwards will be. They are determined at runtime (plugin type framework is
> > used).
> >
> > Is there anyway i can forward to views from the action servlet being
> > defined at run time? i tried using the request dispatcher's forward()
> > method, but it doesn't do anything in struts.
> >
> > Any help is appreciated..thank you
> >
> > Marc Dumontier
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: dynamic forwards

2005-09-20 Thread marc
sorry, figured it out..i was looking at the mapping class...but you can
just create a new ActionForward with the path as the constructor arg.

Marc

> Hi,
>
> I have an Action servlet which at development time doesn't know what it's
> forwards will be. They are determined at runtime (plugin type framework is
> used).
>
> Is there anyway i can forward to views from the action servlet being
> defined at run time? i tried using the request dispatcher's forward()
> method, but it doesn't do anything in struts.
>
> Any help is appreciated..thank you
>
> Marc Dumontier
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



dynamic forwards

2005-09-20 Thread marc
Hi,

I have an Action servlet which at development time doesn't know what it's
forwards will be. They are determined at runtime (plugin type framework is
used).

Is there anyway i can forward to views from the action servlet being
defined at run time? i tried using the request dispatcher's forward()
method, but it doesn't do anything in struts.

Any help is appreciated..thank you

Marc Dumontier


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Dynamic forwards?

2004-09-24 Thread Hubert Rabago
Aside from the JS solution, you can also return an action forward with
a modified path:

// in 1.2.x
ActionForward result = new ActionForward(mapping.findForward("masterJsp"));
result.setPath(result.getPath() + "#XX");
return result;

- Hubert

On Fri, 24 Sep 2004 14:28:01 -0700, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> From: "Tom McCobb" <[EMAIL PROTECTED]>
> > I would like to be able to re-position on the record last worked on.  I
> was
> > thinking that appending a bookmark (keyed on the index number of the
> detail
> > item in the list) to the forward would work nicely, but I do not know how
> to
> > pass the index to the forward, like path="/master.jsp#XX".
> 
> I do it with a bit of JavaScript:
> 
> 
>  
>document.location = "#";
>  
> 
> 
> If I need the page to jump, then 'anchor' is set as a request attribute in
> the Action code.
> 
> --
> Wendy Smoak
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Dynamic forwards?

2004-09-24 Thread Wendy Smoak
From: "Tom McCobb" <[EMAIL PROTECTED]>
> I would like to be able to re-position on the record last worked on.  I
was
> thinking that appending a bookmark (keyed on the index number of the
detail
> item in the list) to the forward would work nicely, but I do not know how
to
> pass the index to the forward, like path="/master.jsp#XX".

I do it with a bit of JavaScript:


  
document.location = "#";
  


If I need the page to jump, then 'anchor' is set as a request attribute in
the Action code.

-- 
Wendy Smoak


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Dynamic forwards?

2004-09-24 Thread Tom McCobb
I have a scrollable div section on a page displaying detail records.  If
certain fields on the record are manipulated, I call an update action.  When
the screen refreshes after the update, the display always repositions on the
first record in the div section.  If someone is working at the bottom of the
list, he has to scroll back to where he was.

I would like to be able to re-position on the record last worked on.  I was
thinking that appending a bookmark (keyed on the index number of the detail
item in the list) to the forward would work nicely, but I do not know how to
pass the index to the forward, like path="/master.jsp#XX".

Can this be done?

T. McCobb