struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Christopher <tim.christop...@gmail.com>
Subject Re: JSP only page flow
Date Wed, 23 Feb 2005 01:26:39 GMT
If you want people to be stuck into going though: link1 > link2 >
link3, etc...  Then check out
http://www.livinglogic.de/Struts/demoApp.html .  I've not used it
before as I've never had the need but it made it's way into my
bookmarks by sounding interesting.... :o)


On Tue, 22 Feb 2005 16:42:09 -0700, Eric Lemle <eric.lemle@ihc.com> wrote:
> return mapping.findForward("myPage"); //from struts-config.xml  aka
> global forwards.
> 
> or if you are doing dynamic forwards then...
> 
> return new ActionForward(request.getParameter("forwardPage"));
> 
> return new ActionForward(request.getParameter("forwardAction"));
> 
> or in the session
> 
> return new
> ActionForward(request.getSession().getAttribute("forwardPage"));
> 
> does that help?
> 
> 
> Eric D. Lemle
> Senior Programmer / Analyst
> Intermountain Health Care
> 36 South State Street, Suite 1100
> Salt Lake City, Utah 84111
> United States of America (USA)
> (801) 442-3688 -- e-mail: Eric.Lemle@IHC.com
> 
> >>> werner@sonoma.edu 2/22/2005 4:34:47 PM >>>
> Which part are you agreeing with? Setting the hidden field to be
> 'pageB.jsp' and having the Action return
> (mapping.findForward(request.getParameter("page"))?
> 
> - This wouldn' put all the page flow in one file though.
> 
> Eric Lemle wrote:
> 
> >sure you just forward to a .jsp or an Action.
> >
> >
> >Eric D. Lemle
> >Senior Programmer / Analyst
> >Intermountain Health Care
> >36 South State Street, Suite 1100
> >Salt Lake City, Utah 84111
> >United States of America (USA)
> >(801) 442-3688 -- e-mail: Eric.Lemle@IHC.com
> >
> >
> >
> >
> >>>>werner@sonoma.edu 2/22/2005 4:15:43 PM >>>
> >>>>
> >>>>
> >Hi,
> >    I want to follow the Struts model and have all my page flow be in
> 
> >struts-config. However, I have a couple of JSP-only pages that
> forward
> >
> >to each other. Is there a way to set this flow up? A -> B->C.
> >
> >An example I have is of a search page -> results -> edit individual
> >result.
> >
> >I thought of setting a hidden field in each page that could get used
> as
> >
> >the 'forward' attribute in the form, but that would leave those
> values
> >
> >in the JSP page, not struts-config.
> >
> >- Nic.
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >For additional commands, e-mail: user-help@struts.apache.org
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >For additional commands, e-mail: user-help@struts.apache.org
> >
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message