Re: [appfuse-user] simple redirect in Struts2 from index.jsp

2007-11-09 Thread Rob Staveley (Tom)
The Functions.java code is effectively what I have in my JSP. That's actually reassuring. Perhaps I am doing the right thing :-) Ealden Escañan wrote: > > On Nov 9, 2007 8:39 PM, Rob Staveley (Tom) <[EMAIL PROTECTED]> wrote: >> >> I was after a redirect, but having said that would you be able t

Re: [appfuse-user] simple redirect in Struts2 from index.jsp

2007-11-09 Thread Ealden Escañan
On Nov 9, 2007 8:39 PM, Rob Staveley (Tom) <[EMAIL PROTECTED]> wrote: > > I was after a redirect, but having said that would you be able to access the > value stack using OGNL in combination with ? > > My challenge is getting a page to redirect to a URL, which the action > determines. It is variab

Re: [appfuse-user] simple redirect in Struts2 from index.jsp

2007-11-09 Thread Rob Staveley (Tom)
I was after a redirect, but having said that would you be able to access the value stack using OGNL in combination with ? My challenge is getting a page to redirect to a URL, which the action determines. It is variable. My trick worked, but it looks ugly and I'd like to "do the right thing", if

Re: [appfuse-user] simple redirect in Struts2 from index.jsp

2007-11-09 Thread Ealden Escañan
On Nov 9, 2007 7:55 PM, Rob Staveley (Tom) <[EMAIL PROTECTED]> wrote: > > I wasn't comfortable pulling in JSTL tags to do this (at any rate I couldn't > seem to reference the JSTL core, when I tried in my project), so I did the > following: There's - it doesn't redirect, but maybe it's good enoug

Re: [appfuse-user] simple redirect in Struts2 from index.jsp

2007-11-09 Thread Rob Staveley (Tom)
I wasn't comfortable pulling in JSTL tags to do this (at any rate I couldn't seem to reference the JSTL core, when I tried in my project), so I did the following: <% response.sendRedirect((String)com.opensymphony.xwork2.ActionContext.getContext().getValueStack().findValue("url")); %> ...where th

Re: [appfuse-user] simple redirect in Struts2 from index.jsp

2007-10-29 Thread Ron Anderson
This guy has some useful info as well. http://www.vitarara.org/cms/struts_2_cookbook/post_and_redirect Ron - Original Message From: Matt Raible <[EMAIL PROTECTED]> To: users@appfuse.dev.java.net Sent: Monday, October 29, 2007 3:39:46 PM Subject: Re: [appfuse-user] simple redir

Re: [appfuse-user] simple redirect in Struts2 from index.jsp

2007-10-29 Thread Matt Raible
You could use the same thing we use in index.jsp: Matt On 10/29/07, kla <[EMAIL PROTECTED]> wrote: > > I'm assuming there's an easy equivalent for Struts2 but I can't figure it > out. I need to immediately redirect the user to my 'list' action when they > go to the index.jsp page. Is there an

[appfuse-user] simple redirect in Struts2 from index.jsp

2007-10-29 Thread kla
I'm assuming there's an easy equivalent for Struts2 but I can't figure it out. I need to immediately redirect the user to my 'list' action when they go to the index.jsp page. Is there an equivalent for the html tag's redirect in Struts2? I thought maybe would do it but it doesn't seem to work.