hi 
i know how to call servlets from html forms
i also know how to call them from a class using urlconnection - if they are running (= if the server is up)
but now, for testing purpose, i NEED to call my servlets from a "normal" class, while the server can be down
i just want to call this function :
doGet(HttpServletRequest request, HttpServletResponse response)
from another class ... but the "HttpServletRequest" is an interface, i can't "create" one
the only implementing class is HttpServletRequestWrapper but you need to have a non-null HttpServletRequest to build one
so if anyone has any idea, please tell me !
------
please review FAQ183-874 - this will help you to get the best out of tt
[ "you" is not someone in particular - don't take it too personnal ]
i know how to call servlets from html forms
i also know how to call them from a class using urlconnection - if they are running (= if the server is up)
but now, for testing purpose, i NEED to call my servlets from a "normal" class, while the server can be down
i just want to call this function :
doGet(HttpServletRequest request, HttpServletResponse response)
from another class ... but the "HttpServletRequest" is an interface, i can't "create" one
the only implementing class is HttpServletRequestWrapper but you need to have a non-null HttpServletRequest to build one
so if anyone has any idea, please tell me !
------
please review FAQ183-874 - this will help you to get the best out of tt
[ "you" is not someone in particular - don't take it too personnal ]