Don’t look where you fall, but where you slipped
Adam Zedan wrote:However which import statement would i need to to get HttpServletResponse.. ?? thanks
Paul Clapham wrote:
Adam Zedan wrote:However which import statement would i need to to get HttpServletResponse.. ?? thanks
Notice there's a link in your post? Follow it to the API docs for HttpServletResponse. (I just posted the same link.)
Don’t look where you fall, but where you slipped
Adam Zedan wrote:I cant seem to add import javax.servlet.http maybe cause its a jsf project ... any hints ..
Paul Clapham wrote:
Adam Zedan wrote:I cant seem to add import javax.servlet.http maybe cause its a jsf project ... any hints ..
Hint: Explain the problem. Otherwise we don't know whether the "h" key on your keyboard is broken (so you can't type that) or what.
Don’t look where you fall, but where you slipped
Paul Clapham wrote:But you already seemed to understand that you had to import the HttpServletResponse class; you didn't do that. You implied that there was some reason you couldn't do that; I asked why not. Evidently I didn't ask clearly enough. Why haven't you imported that class?
Don’t look where you fall, but where you slipped
Paul Clapham wrote:Come on, it's not that complicated. The name of the type is HttpServletResponse and it's in the javax.servlet.http package. So the fully qualified name of the type is javax.servlet.http.HttpServletResponse and that means the code to import the type is
Don’t look where you fall, but where you slipped
Adam Zedan wrote:I wish it was that simple , but it seems as if you don't totally understand my problem...
let me remind you this is a dynamic project using java server faces 2.0 and I just added a POJO not a servlet!!
Paul Clapham wrote:
Adam Zedan wrote:I wish it was that simple , but it seems as if you don't totally understand my problem...
That's true.
let me remind you this is a dynamic project using java server faces 2.0 and I just added a POJO not a servlet!!
Well, that isn't really a reminder because you never said that before.
However that does make sense. If you have a POJO then it shouldn't be messing about with the servlet response. Your IDE (I assume you're using one because you mentioned a "project") is acting in good taste there.
Don’t look where you fall, but where you slipped
Adam Zedan wrote:
so any idea on how i could access the response object in a pojo , after all in a JSF project arent all the objects(beans) pojos ??
Education won't help those who are proudly and willfully ignorant. They'll literally rather die before changing.
What could go wrong in a swell place like "The Evil Eye"? Or with this tiny ad?
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|