You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jacob Hookom <ho...@uwec.edu> on 2002/08/02 00:06:07 UTC

Request Dispatcher

If I grab a request dispatcher, can I append extra parameters to be used
at the destination?

Original request: /app/RDServlet?id=3446

RequestDispatcher rd =
_context.getRequestDispatcher("/jsp/handler.jsp?ar=html");
rd.forward();

Is this legit to do?

Jacob Hookom 
Comprehensive Computer Science 
University of Wisconsin, Eau Claire 



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.380 / Virus Database: 213 - Release Date: 7/24/2002
 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Request Dispatcher

Posted by Jacob Hookom <ho...@uwec.edu>.
I wrote some test cases and figured out that you cannot append
parameters, but you can change their properties, so if you do:

/xmlwrapper/newsTest.html?contentType=44&id=59550

I can regexp and forward

/content/news.jsp?contentType=html&id=59550

Jacob Hookom 
Comprehensive Computer Science 
University of Wisconsin, Eau Claire 


-----Original Message-----
From: Mike Jackson [mailto:mjackson@cdi-hq.com] 
Sent: Thursday, August 01, 2002 5:08 PM
To: Tomcat Users List
Subject: RE: Request Dispatcher

I don't think so, at least I've never been able to do it.  What I've
done is
added
attributes to the request (see the javadocs for details).  Attributes
only
work
with objects, but that's both an advantage and a disadvantage.

--mikej
-=-----
mike jackson
mjackson@cdi-hq.com

> -----Original Message-----
> From: Jacob Hookom [mailto:hookomjj@uwec.edu]
> Sent: Thursday, August 01, 2002 3:06 PM
> To: Tomcat Users List
> Subject: Request Dispatcher
>
>
> If I grab a request dispatcher, can I append extra parameters to be
used
> at the destination?
>
> Original request: /app/RDServlet?id=3446
>
> RequestDispatcher rd =
> _context.getRequestDispatcher("/jsp/handler.jsp?ar=html");
> rd.forward();
>
> Is this legit to do?
>
> Jacob Hookom
> Comprehensive Computer Science
> University of Wisconsin, Eau Claire
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.380 / Virus Database: 213 - Release Date: 7/24/2002
>
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>



--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.380 / Virus Database: 213 - Release Date: 7/24/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.380 / Virus Database: 213 - Release Date: 7/24/2002
 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Request Dispatcher

Posted by Mike Jackson <mj...@cdi-hq.com>.
I don't think so, at least I've never been able to do it.  What I've done is
added
attributes to the request (see the javadocs for details).  Attributes only
work
with objects, but that's both an advantage and a disadvantage.

--mikej
-=-----
mike jackson
mjackson@cdi-hq.com

> -----Original Message-----
> From: Jacob Hookom [mailto:hookomjj@uwec.edu]
> Sent: Thursday, August 01, 2002 3:06 PM
> To: Tomcat Users List
> Subject: Request Dispatcher
>
>
> If I grab a request dispatcher, can I append extra parameters to be used
> at the destination?
>
> Original request: /app/RDServlet?id=3446
>
> RequestDispatcher rd =
> _context.getRequestDispatcher("/jsp/handler.jsp?ar=html");
> rd.forward();
>
> Is this legit to do?
>
> Jacob Hookom
> Comprehensive Computer Science
> University of Wisconsin, Eau Claire
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.380 / Virus Database: 213 - Release Date: 7/24/2002
>
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>