RE: dynamic forward to different pages from ActionClass

2003-07-24 Thread Gino LV. Ledesma

--- Michael Ruppin [EMAIL PROTECTED] wrote:
 I posted similar code today, just replace
 forwardfrommapping.getPath() with your action mapping
 path:
 

http://www.mail-archive.com/struts-user%40jakarta.apache.org/msg74345.html
 
 as did Wendy, yesterday:
 

http://www.mail-archive.com/struts-user%40jakarta.apache.org/msg74221.html
 
 m
 

A question I'd like to raise from Wendy's original post.
She mentioned:

So, does the code above send anyone into screaming fits of
Don't DO that!? I'm not entirely sure what Action
Chaining _is_ but I think I might be doing it.

As the struts configuration only allows for static mapping
(which is useful most of the times), is there a propery
(that is, struts-endorsed) way of redirecting/forwarding to
other pages with dynamic construction of parameters (or at
the very least, passing request parameters)?

I thought of a servlet-to-servlet forward (defining an
action-mapping to another servlet), but didn't know how to
transfer 'state' from the calling servlet to the called
servlet. I've heard about ActionChaining, but from what I
understand (from very brief initial reading), the action
chain is processed immediately (with no user intervention).


Gino LV. Ledesma
Ateneo de Manila University
Philippines

// Programmer's Excuse #1: It works on my machine.

=


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



RE: dynamic forward to different pages from ActionClass

2003-07-23 Thread Wendy Smoak
 i want to forward the request to the page from where it came,( i have this
 info in session) how can i do it, this must be dynamic

I recently discovered that you can construct your own ActionForward object,
you don't have to rely on mapping.findForward() to return one.  If you've
got the path you need in the session, use it with one of the ActionForm
constructors and return that from your Action's execute method.

I'm not sure this is the best way to do it, but it does work...

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM 


RE: dynamic forward to different pages from ActionClass

2003-07-23 Thread Ashish Kulkarni
Hi ,

Do u have a example code of doing this, it will be a
great start for me

Regards
Ashish
--- Wendy Smoak [EMAIL PROTECTED] wrote:
  i want to forward the request to the page from
 where it came,( i have this
  info in session) how can i do it, this must be
 dynamic
 
 I recently discovered that you can construct your
 own ActionForward object,
 you don't have to rely on mapping.findForward() to
 return one.  If you've
 got the path you need in the session, use it with
 one of the ActionForm
 constructors and return that from your Action's
 execute method.
 
 I'm not sure this is the best way to do it, but it
 does work...
 
 -- 
 Wendy Smoak
 Applications Systems Analyst, Sr.
 Arizona State University, PA, IRM 
 


=
A$HI$H

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



RE: dynamic forward to different pages from ActionClass

2003-07-23 Thread Michael Ruppin
I posted similar code today, just replace
forwardfrommapping.getPath() with your action mapping
path:

http://www.mail-archive.com/struts-user%40jakarta.apache.org/msg74345.html

as did Wendy, yesterday:

http://www.mail-archive.com/struts-user%40jakarta.apache.org/msg74221.html

m

--- Ashish Kulkarni [EMAIL PROTECTED]
wrote:
 Hi ,
 
 Do u have a example code of doing this, it will be a
 great start for me
 
 Regards
 Ashish
 --- Wendy Smoak [EMAIL PROTECTED] wrote:
   i want to forward the request to the page from
  where it came,( i have this
   info in session) how can i do it, this must be
  dynamic
  
  I recently discovered that you can construct your
  own ActionForward object,
  you don't have to rely on mapping.findForward() to
  return one.  If you've
  got the path you need in the session, use it with
  one of the ActionForm
  constructors and return that from your Action's
  execute method.
  
  I'm not sure this is the best way to do it, but it
  does work...
  
  -- 
  Wendy Smoak
  Applications Systems Analyst, Sr.
  Arizona State University, PA, IRM 
  
 
 
 =
 A$HI$H
 
 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site
 design software
 http://sitebuilder.yahoo.com
 

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


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Re: dynamic forward to different pages from ActionClass

2003-07-23 Thread lyl
Hi,there.

This is not a struts question. Can anyone answer me how to
convert utf-8 to html entities.
-- 
lyl [EMAIL PROTECTED]


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



RE: dynamic forward to different pages from ActionClass

2003-07-23 Thread Andrew Hill
Its impolite to hijack topic threads like that for a totally unrelated
question.
Create a new thread with an appropriate subject line.

Read this:
http://www.catb.org/~esr/faqs/smart-questions.html


-Original Message-
From: lyl [mailto:[EMAIL PROTECTED]
Sent: Thursday, 24 July 2003 13:17
To: Struts Users Mailing List
Subject: Re: dynamic forward to different pages from ActionClass


Hi,there.

This is not a struts question. Can anyone answer me how to
convert utf-8 to html entities.
--
lyl [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]