Howard,
I tried the following:
HttpServletRequest req = getRequest();
String page = "http://" + req.getLocalAddr() + ":8080/" +
req.getContextPath() + "/myStrutsPage.jsp";
return new URL(page);
But, that returned http://127.0.0.1:8080/myApp/myStrutsPage.jsp instead
of http://localhost:8080/myApp/myStrutsPage.jsp and that caused my
struts app to think my session had timed out. I was hoping that if I
created a proper Link, Tapestry would generate the proper URL for me :-)
I'll go hunting,
Ciao,
Jonathan
On 03/01/2009 20:22, Howard Lewis Ship wrote:
You can return a URL no problem. The trick is to generate a proper
URL even when behind a firewall.
On Fri, Jan 2, 2009 at 9:51 AM, Jonathan O'Connor<ninki...@eircom.net> wrote:
Hi,
it must be too much Christmas cheer, but I am not sure how to jump to a
non-Tapestry URL in the same web app.
A little background: We have an old application written in Struts 1.1. I
have written my own Login page, called the old code to the user validation
and updating of the session.
This all works ala Kent Tong's eBook on Tap4. Now I want to jump to main
struts page of my app.
My onSuccess() method needs to return a Link or a URL, but according to the
docs, the URL should be used for completely external addresses (e.g.
google.com).
Can I inject a Link (LinkImpl is in the internal package, and so unusable)?
Or should I generate a relative URL?
Thanks and Happy New Year to one and all,
Jonathan O'Connor
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org