RE: Struts and forward to non-html content

2002-08-29 Thread Craig R. McClanahan



On Thu, 29 Aug 2002, Vinit Carpenter wrote:

> Date: Thu, 29 Aug 2002 17:48:06 -0500
> From: Vinit Carpenter <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> Subject: RE: Struts and forward to non-html content
>
> Hi Emmanuel and thank you.  Does that mean that Struts CANNOT forward to a
> non jsp-servlet-action without having to redirect and cause a round-trip?
> Thanks
>

You can forward to any servlet or JSP resource that is accessible through
a RequestDispatcher.forward() call.  Basically, that means you just need
to specify a context-relative (module-relative in 1.1, unless you say
contextRelative="true") path that starts with a slash, and make sure you
have a coresponding servlet mapping.

Forwarding to a static resource works in *most* containers (it certainly
does in Tomcat), but isn't required to be supported by the spec -- you
might need to write a trivially simple servlet that just copies the static
resource out to the response.

Craig


> -Original Message-
> From: Emmanuel Boudrant [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 29, 2002 5:12 PM
> To: Struts Users Mailing List
> Subject: Re: Struts and forward to non-html content
>
>
> I think, If you wan't to forward to a non jsp-servlet-action, you need to
> use a redirection with
> setting the attribute redirect=true:
>
> 
>
> -Emmanuel
>
>  --- Vinit Carpenter <[EMAIL PROTECTED]> a écrit : > Hi there.  I have a
> question about Struts
> and forwarding to non-html content
> > such as servlets, JSP's and HTML pages.  In a project that I am currently
> > working on I am using Struts (1.0.2) under WebLogic 6.1 SP3 with VXML
> (Voice
> > XML) and JSP's.  I've noticed that I can't forward to a VXML file with an
> > extension of .vxml from struts.  I get a 404 error with no other
> > information, even with full debug on.  When I try to forward to a JSP, it
> > works flawlessly.  Also, if I redirect to a VXML page it works fine.  Is
> > there something in struts "forward" that requires forwarding to JSP's
> only?
> >
> >
> > Thank you
> >
> > --Vinny
> >
> >
> >
> > *DISCLOSURE STATEMENT*
> > This transmission may contain information which is confidential,
> proprietary
> > and privileged.  If you are not the individual or entity to which it is
> > addressed, note that any review, disclosure, copying, retransmission or
> > other use is strictly prohibited.  If you received this transmission in
> > error, please notify the sender immediately and delete the material from
> > your system.  This transmission is for informational purposes only, and is
> > not intended as an offer or solicitation for the purchase or sale of any
> > financial instrument or as an official confirmation of any transaction.
> Any
> > information regarding specific investments or other products is not
> > warranted as to completeness or accuracy and is subject to change without
> > notice.
> >
>
> ___
> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
> Yahoo! Mail : http://fr.mail.yahoo.com
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
>
>
> *DISCLOSURE STATEMENT*
> This transmission may contain information which is confidential, proprietary
> and privileged.  If you are not the individual or entity to which it is
> addressed, note that any review, disclosure, copying, retransmission or
> other use is strictly prohibited.  If you received this transmission in
> error, please notify the sender immediately and delete the material from
> your system.  This transmission is for informational purposes only, and is
> not intended as an offer or solicitation for the purchase or sale of any
> financial instrument or as an official confirmation of any transaction.  Any
> information regarding specific investments or other products is not
> warranted as to completeness or accuracy and is subject to change without
> notice.
>


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




RE: Struts and forward to non-html content

2002-08-29 Thread Vinit Carpenter

Hi Emmanuel and thank you.  Does that mean that Struts CANNOT forward to a
non jsp-servlet-action without having to redirect and cause a round-trip?
Thanks

-Original Message-
From: Emmanuel Boudrant [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 5:12 PM
To: Struts Users Mailing List
Subject: Re: Struts and forward to non-html content


I think, If you wan't to forward to a non jsp-servlet-action, you need to
use a redirection with
setting the attribute redirect=true:



-Emmanuel

 --- Vinit Carpenter <[EMAIL PROTECTED]> a écrit : > Hi there.  I have a
question about Struts
and forwarding to non-html content
> such as servlets, JSP's and HTML pages.  In a project that I am currently
> working on I am using Struts (1.0.2) under WebLogic 6.1 SP3 with VXML
(Voice
> XML) and JSP's.  I've noticed that I can't forward to a VXML file with an
> extension of .vxml from struts.  I get a 404 error with no other
> information, even with full debug on.  When I try to forward to a JSP, it
> works flawlessly.  Also, if I redirect to a VXML page it works fine.  Is
> there something in struts "forward" that requires forwarding to JSP's
only?
> 
> 
> Thank you
> 
> --Vinny
> 
> 
> 
> *DISCLOSURE STATEMENT*
> This transmission may contain information which is confidential,
proprietary
> and privileged.  If you are not the individual or entity to which it is
> addressed, note that any review, disclosure, copying, retransmission or
> other use is strictly prohibited.  If you received this transmission in
> error, please notify the sender immediately and delete the material from
> your system.  This transmission is for informational purposes only, and is
> not intended as an offer or solicitation for the purchase or sale of any
> financial instrument or as an official confirmation of any transaction.
Any
> information regarding specific investments or other products is not
> warranted as to completeness or accuracy and is subject to change without
> notice.
>  

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




*DISCLOSURE STATEMENT*
This transmission may contain information which is confidential, proprietary
and privileged.  If you are not the individual or entity to which it is
addressed, note that any review, disclosure, copying, retransmission or
other use is strictly prohibited.  If you received this transmission in
error, please notify the sender immediately and delete the material from
your system.  This transmission is for informational purposes only, and is
not intended as an offer or solicitation for the purchase or sale of any
financial instrument or as an official confirmation of any transaction.  Any
information regarding specific investments or other products is not
warranted as to completeness or accuracy and is subject to change without
notice.



Re: Struts and forward to non-html content

2002-08-29 Thread Emmanuel Boudrant

I think, If you wan't to forward to a non jsp-servlet-action, you need to use a 
redirection with
setting the attribute redirect=true:



-Emmanuel

 --- Vinit Carpenter <[EMAIL PROTECTED]> a écrit : > Hi there.  I have a question 
about Struts
and forwarding to non-html content
> such as servlets, JSP's and HTML pages.  In a project that I am currently
> working on I am using Struts (1.0.2) under WebLogic 6.1 SP3 with VXML (Voice
> XML) and JSP's.  I've noticed that I can't forward to a VXML file with an
> extension of .vxml from struts.  I get a 404 error with no other
> information, even with full debug on.  When I try to forward to a JSP, it
> works flawlessly.  Also, if I redirect to a VXML page it works fine.  Is
> there something in struts "forward" that requires forwarding to JSP's only?
> 
> 
> Thank you
> 
> --Vinny
> 
> 
> 
> *DISCLOSURE STATEMENT*
> This transmission may contain information which is confidential, proprietary
> and privileged.  If you are not the individual or entity to which it is
> addressed, note that any review, disclosure, copying, retransmission or
> other use is strictly prohibited.  If you received this transmission in
> error, please notify the sender immediately and delete the material from
> your system.  This transmission is for informational purposes only, and is
> not intended as an offer or solicitation for the purchase or sale of any
> financial instrument or as an official confirmation of any transaction.  Any
> information regarding specific investments or other products is not
> warranted as to completeness or accuracy and is subject to change without
> notice.
>  

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: