I tried c:redirect (JSTL, standard release 1.0) inside a jsp page (let's call
it redirect.jsp, and it works fine.
Here's the simple redirect tag inside that redirect.jsp
<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>
<c:redirect url="http://www.apache.org"/>

However, if I pass that jsp page as part of a struts template jsp page.
It doesn't work.

Here's my template.jsp
<%@ taglib uri="/WEB-INF/tld/struts-template.tld" prefix="template" %>
<template:get name="body"/>

Here's the jsp page that uses template.jsp and passes redirect.jsp as component
of the template
<%@ taglib uri="/WEB-INF/tld/struts-template.tld" prefix="template" %>
<template:insert template="template.jsp">
  <template:put name="body" content="redirect.jsp"/>
</template:insert>
This jsp page only gives blank empty page on the browser.

Is this a problem of the taglib, or a problem at struts?
Can anyone recommend a workaround? Basically I want to redirect the page to
another adress, but I want this page as part of the application's template (I
chose to use Struts in this case).

Thank you.

=====
Cliffano Subagio

http://www.sold.com.au - SOLD.com.au
- Find yourself a bargain!

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

Reply via email to