Save India From Corruption - Anna Hazare.
Save India From Corruption - Anna Hazare.
patt rich wrote:If I send a Javax.servlet.http.HttpServletRequest from a servlet to another simple Java class
Ravi Kiran Varre wrote: why don't you use a jsp page inside scriptlet you can do all your stuff and redirect it to where you want .
(Not to my web page)
patt rich wrote:The reason for using Reflection :- Actually the name of the receiving class "receivingClassName" will be decided only at run time in my project. Out of my 10 classes which are available, anyone of them can be taken the value of this "receivingClassName".
The reason for forwarding the HTTPRequest-Response as it is : - In the method 'loadRequestData', I want to redirect this request to a different URL, where this URL is again fetched from outside sources like properties files, depending on the name of the class. That's why I am trying to send the request as it is:
So I guess you are not recommending to send the request-response as it is right?
patt rich wrote:I am not exactly sure how to aswer your thoughts from the first paragraph. Out of my 10 classes, each half is implementing different intefaces.
like saving the request in a database etc
Consider Paul's rocket mass heater. |