aspose file tools
The moose likes Tomcat and the fly likes Conversion of  RequestFacade into ApplicationHttpRequest request Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "Conversion of  RequestFacade into ApplicationHttpRequest request" Watch "Conversion of  RequestFacade into ApplicationHttpRequest request" New topic
Author

Conversion of RequestFacade into ApplicationHttpRequest request

swapnil vedpathak
Greenhorn

Joined: Mar 15, 2006
Posts: 8
Hi,
my appplication involves communicating an Jsp page on server from Stand-alone Java Program,which is on my local machine.In this application,i am getting the value of Request object in the form of "org.apache.catalina.connector.RequestFacade@b40443" instead i want to receive the request as "org.apache.catalina.core.ApplicationHttpRequest@3f3b9b".So is it possible to convert the Request Type?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56214
    
  13

RequestFacade implement ServletRequest, so you can simply cast the object if you need to.

In order to be able to cast to an HttpServletRequest you'd need an HttpRequestFacade instance. Is it possible that your instance is an HttpRequestFacade down-casted to a RequestFacade?


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Conversion of RequestFacade into ApplicationHttpRequest request
 
Similar Threads
Assignment 1.1 corrections
java.lang.NullPointerException
Repitive calls to the Backing Beans on Submit
Is it necessary to synchronize HttpServletRequest object
XML Generation with Freemarker Templates.