On Thu, 5 Feb 2004, Chris Daly wrote:

> yes.  i have an application with an include header.jsp file, and its using
> the <c:redirect/> tag to go to the remote site then nothing happens in
> terms of header.jsp tag, this is missing from the browser page and appears
> to return nothing.

That's not surprising. The redirect goes back to the browser, which will
then request that page directly. Any output from the original request will
be discarded, and replaced by the response from the redirected-to URL.

> in terms of the <c:import> tag it works ok if the url is simply entered
> into teh browser but if teh url is in an include tag then any relative
> image references are not to the imported url (which would be ok), but to
> the header include it seems.

Is the page you're trying to include plain HTML, or is it also a JSP page?
I'm wondering if there's something going on in a JSP page related to the
original request URL that might be confusing things.

--
Martin Cooper


>
> cheers
>
> At 08:19 05.02.2004 -0500, you wrote:
> >Hang on, you lost me with the redirect problem. Are you saying that a JSP with
> >something like:
> >
> ><c:redirect url="http://java.sun.com/"/>
> >
> >isn't working for you? I don't understand what you mean by, "the app doesn't
> >recognise it".
> >
> >Quoting Chris Daly <[EMAIL PROTECTED]>:
> >
> > > thanks,
> > >
> > > i tried this on opera 6 for windows and it does not compute the base URI of
> > >
> > > the document per Section 14.14 of rfc2616.  i tried using the jstl redirect
> > >
> > > tag but the app doesn't recognise it the header returns a blank and whats
> > > within the body tags takes up the space. it looks like a frameset within
> > > the header.jsp page is the only option.  any other ideas ?
> > >
> > > cheers
> > >
> > > chris
> > >
> > >
> > > At 12:14 04.02.2004 -0500, you wrote:
> > > >I've never used the IO taglib so I can't comment on it's abilities. The
> > > quick
> > > >test I performed with JSTL's <c:import> failed to do what I think you're
> > > >asking
> > > >for (even when setting the Content-Location header). If you have access to
> > > >either the Amaya or Opera browsers (as pointed to in the link I provided),
> > > you
> > > >can verify if this is a browser issue. As for <base>:
> > > >
> > > >http://www.htmlhelp.com/reference/html40/head/base.html
> > > >
> > > >Quoting Chris Daly <[EMAIL PROTECTED]>:
> > > >
> > > > > hi
> > > > >
> > > > > what i've done is imprt teh i/o tag library from
> > > > > http://jakarta.apache.org/taglibs/doc/io-doc/intro.htmland and am
> > trying
> > > to
> > > > >
> > > > > use an existing include jsp to pull in the remote url and all relative
> > > > > image links using the <io:request> tag.  I'm now looking at the jstl
> > > and
> > > > > url related actions and the <c:import> tag - would this work where
> > > > > <io:request> hasn't ?
> > > > >
> > > > > what do you mean by a resource that uses a base element - can you give
> > > an
> > > > > example ?
> > > > >
> > > > > cheers
> > > > >
> > > > > chris
> > > > >
> > > > >
> > > > > At 09:10 04.02.2004 -0500, you wrote:
> > > > > >In theory, you might be able to do this by setting the
> > > Content-Location
> > > > > header
> > > > > >to match the resource you're importing. In practice, however, this
> > > doesn't
> > > > >
> > > > > >seem
> > > > > >to be too well supported:
> > > > > >
> > > > > >http://jigsaw.w3.org/HTTP/CL/
> > > > > >
> > > > > >Have you tried imorting a resource that uses a <base> element to see
> > > if
> > > > > >that works?
> > > >
> > > >--
> > > >Kris Schneider <mailto:[EMAIL PROTECTED]>
> > > >D.O.Tech       <http://www.dotech.com/>
> >
> >--
> >Kris Schneider <mailto:[EMAIL PROTECTED]>
> >D.O.Tech       <http://www.dotech.com/>
> >
> >---------------------------------------------------------------------
> >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]

Reply via email to